Go Back   AC3D Forums > General > AC3D Suggestions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11th May 2005, 04:09 AM   #1
Gernot
Member
Expert member
 
Gernot's Avatar
 
Join Date: Mar 2004
Location: Germany
Posts: 75
Default 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
Gernot is offline   Reply With Quote
Old 11th May 2005, 04:45 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default

Well you can just set everything to be one sided and look for holes or, if your object is very complicated, try this:
  • select all surfaces and make sure they are 1-sided (press '1S').

    Press control+c and then control+v to copy and paste a duplicate in the same position.

    use Surface->flip-normals to reverse the new surfaces

    set a bright color that you are not using e.g. yellow.

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.
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 04:36 PM.


AC3D Forum
(C) Inivis Limited 2020