View Full Version : Drawing lines on top
02-20-2001, 06:48 AM
I'm working on an app that draws many polys and lines. I want certain lines to draw on top of everything else. How do I do this? Right now I have
glVertex3d(v1x, v1y, v1z);
glVertex3d(v2x, v2y, v2z);
glVertex3d(v3x, v3y, v3z);
glVertex3d(v4x, v4y, v4z);
It's drawing the line underneath everything.
Thanks for your help.
02-20-2001, 06:58 AM
If you disable depth testing (glDisable(GL_DEPTH_TEST)), any new line will be drawn over the old ones. That however disables the z-test, so also object that you would like not to see might be drawn then.
02-20-2001, 08:33 AM
I think you might find glPolygonOffset to be of use.
02-20-2001, 10:06 AM
Yeah, DFrey, you're always falling in my back with your idiotic answers. Geez. http://www.opengl.org/discussion_boards/ubb/smile.gif Well, just cleaned my room (or how'd you say?). Gives a great flair and feeling. You should clean your room as well! http://www.opengl.org/discussion_boards/ubb/smile.gif Well, I'm a bit unclean in the other time...
02-20-2001, 10:07 AM
Oh, say, Stephanie, what's your age? http://www.opengl.org/discussion_boards/ubb/smile.gif
02-20-2001, 10:23 AM
Thanks to everyone for all the help. I think I have it.
Just out of curiosity, why is my age relevant?
02-21-2001, 03:29 AM
Well, your name appeared to be feminine...
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.