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

11-07-2003, 12:01 PM

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, 12:03 PM
erm, ignore the green rectangle.. it does nothing..

11-07-2003, 12:34 PM

11-08-2003, 09: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?

11-08-2003, 01: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.