Skip to main content
GameDev.net gamedev.net
🔒 Locked

Weird question...

Started by xria Jul 1, 2004 at 6:42 PM 0 replies 300+ views
Original Post
xria
xria
What i want to do is have a few tiles on the ground in my floor where they will ALWAYS been drawn on top of anything that walks over them. I know this sounds weird and it's hard to explain why I need it, but i basically want to draw objects in their normal 3d positions, but without regards to depth sorting, so those particular objects will always be drawn on top, even if another object comes between it and the camera. How can I do this most efficiently?
WarAmp
WarAmp
The easiest way is to do either:

glDepthFunc(GL_ALWAYS);

or

glDisable(GL_DEPTH_TEST);



make sure to restore to the previous state when you are finished.
Waramp.Before you insult a man, walk a mile in his shoes.That way, when you do insult him, you'll be a mile away, and you'll have his shoes.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.