PDA

View Full Version : drawing trough - over other polies??



11-07-2003, 01:01 PM
http://www.infofeast.com/delfi/preview/the_problem.jpg

here is the problem, the slope is a polygon
assembled object, the flat surface you can see
intersects into that object with the red marked
area, but how could i draw the object still there, but give the camera illusuion that it is actualy above the slope?

i cannot yaw the objects. they are billboard - like 2D sprites.

11-07-2003, 01:03 PM
erm, ignore the green rectangle.. it does nothing..

mogumbo
11-07-2003, 01:34 PM
glDisable(GL_DEPTH_TEST);

11-08-2003, 10:35 AM
thanx, i never knew depth test is used for that http://www.opengl.org/discussion_boards/ubb/smile.gif

can be this switched on / off when drawing?

zeckensack
11-08-2003, 02:31 PM
You can't change arbitrary render state inside a glBegin/glEnd (or during glDrawArrays/glDraw[Range]Elements, obviously). Otherwise, everything can be changed, that's why it's called a state machine. There's no distinct "init phase" or something.