11th May 2005, 04:09 AM | #1 |
Member
Expert member
Join Date: Mar 2004
Location: Germany
Posts: 75
|
Backface highlighting
Hi,
I have to be very pecise about normal directions for game programming, It's always a lot of work getting normals corrected after work - don't know why they are not correct btw, but that might be my fault. The normal vertices are sometimes a bit difficult if you have slim objects, the normals of the oppositing surfaces point out, making it look as if it were good. Now, if you could offer a more, where you draw only the front faces (GL_FACE_CULL), and then draw all the backfaces, with inverted material color, it would be very obvous to see which triangles are still wrong order. Do you know what I mean? Could you implement such a mode? Best regards, Gernot
__________________
www.GLBasic.com |
11th May 2005, 04:45 AM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Well you can just set everything to be one sided and look for holes or, if your object is very complicated, try this:
Now, if you can see yellow surfaces, those are the areas where your surface normals probably need flipping. You'll need to remove the duplicate of course. |
|
|