View Full Version : Depth Test

02-09-2001, 07:11 PM
If I have a shaded object...and lines around (not on) this object, how would I use the depth test features in openGL to show the lines behind the object, but make them dashed instead?

Can you give a code example of how the depth test stuff goes? Thanks!


02-09-2001, 07:30 PM
Maybe you should render lines two times - solid with glDepthFunc(GL_LEQUAL)and dashed with glDepthFunc(GL_GREATER) and render them after shaded object.

Randy, http://www.geocities.com/udodenko

02-09-2001, 07:39 PM
Heh, so I have been told, just have no idea how to actual code that http://www.opengl.org/discussion_boards/ubb/frown.gif