View Full Version : Depth Test
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.
Heh, so I have been told, just have no idea how to actual code that http://www.opengl.org/discussion_boards/ubb/frown.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.