Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:03:29+00:00 2026-05-26T12:03:29+00:00

Every technique that I’ve found or tried to render outline in OpenGL uses some

  • 0

Every technique that I’ve found or tried to render outline in OpenGL uses some function that is not avaliable on OpenGL ES…

Actually what I could do is set depthMask to false, draw the object as a 3 pixels wide line wireframe, reenable the depthMask and then drawing my object. It doesnt work for me because it outline only the external parts of my object, not the internals.

The following image shows two outlines, the left one is a correct outline, the right one is what I got.

enter image description here

So, can someone direct me to a technique that doesn’t is avaliable on OpenGL ES?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:03:30+00:00Added an answer on May 26, 2026 at 12:03 pm

    Haven’t done one of these for a while, but I think you’re almost there! What I would recommend is this:

    • Keep depthMask enabled, but flip your backface culling to only render the “inside” of the object.
    • Draw the mesh with that shader that pushes all the verts out along their normals slightly and as a solid color (your outline color, probably black). Make sure that you’re drawing solid triangles and not just GL_LINES.
    • Flip the backface culling back to normal again and re-render the mesh like usual.

    The result is that the outlines will only be visible around the points on your mesh where the triangles start to turn away from the camera. This gives you some nice, simple outlines around things like noses, chins, lips, and other internal details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In CarTrackr project , It use some technique that creates only 1 repository instance
Every project invariably needs some type of reporting functionality. From a foreach loop in
Every time I create an object that has a collection property I go back
I am developing a page that request the data every specific duration (10 secs)
For some of the customers that we develop software for, we are required to
It is well-known that STL classes do not use virtual methods anywhere (and STL
Design patterns are great in that they distill a potentially complex technique into something
I want to deploy a client application that uses Oracle's ODP.net but I don't
I have always hoped and assumed that it is not - that set theory
The background to this question is that I need to use some user session

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.