Page 2 of 2
Posted: 18 Sep 2007, 05:20
by trepan
change:
glDepthTest(true)
to:
glDepthTest(false)
in the lua code
Posted: 18 Sep 2007, 05:53
by Warlord Zsinj
That will set them to always render in that style, though, not just when they are occluded by a feature?
Posted: 18 Sep 2007, 06:15
by chillaaa
Maelstrom says that is the case.
Posted: 19 Sep 2007, 21:48
by rattle
That way it always get's rendered on top.
Posted: 20 Sep 2007, 01:56
by Warlord Zsinj
Yeah, I was after not always rendering on top, otherwise proper occlusion is not quite possible just yet. I suppose it would be reasonably difficult to decide whether or not a unit is being obscured from the camera.
Posted: 20 Sep 2007, 02:06
by trepan
invert the depth test
glDepthTest(GL.GREATER)
(don't forget to set it back to GL.LEQUAL) when you are done