PDA

View Full Version : Polygon Stipple



jmikhael
10-24-2003, 08:24 PM
Is there any way to draw the front face of a polygon solid and the back face stippled? Or to draw the front face one color and the back face a different color? I don't want to draw the front face filled and the back face with just lines because it might make it look like I have missing elements in my mesh. I just want a good way to visually identify if an element is facing the wrong direction in my model.

mikael_aronsson
10-24-2003, 09:13 PM
Hi !

You can use:
glMaterialfv( GL_FRONT, ...); and
glMaterialfv( GL_BACK, ...);

To have different materials on front and back facing triangles.

Mikael


[This message has been edited by mikael_aronsson (edited 10-25-2003).]