Users browsing this thread: 1 Guest(s)
Strange Effects in 3D Space
#18
Contrary to what I said earlier, I meant disable GL_DEPTH_TEST.

Basically what happens is this. In most 3D engines, everything, regardless of drawing order, gets drawn in 3D space, as in, when something is supposed to be in front of something, it will be drawn in front of it, even if that object is drawn later.

However, if GL_DEPTH_TEST is disabled, or any equivalent of that, it doesn't take into account the depth of said object, it will always draw the object on top regardless. OpenGL has built-in functions for it, the easiest is disabling the depth test.

All thanks to Minecraft modding.

EDIT: It still moves in a 3D plane though, even if depth test is disabled. As in, it moves as normal, only always drawn on top.
Big sigs are for scrubs.
Thanked by:


Messages In This Thread
Strange Effects in 3D Space - by Koopaul - 06-11-2011, 02:23 AM
RE: Strange Effects in 3D Space - by Kitsu - 06-11-2011, 02:31 AM
RE: Strange Effects in 3D Space - by Koopaul - 06-11-2011, 02:38 AM
RE: Strange Effects in 3D Space - by Kitsu - 06-11-2011, 02:43 AM
RE: Strange Effects in 3D Space - by Koopaul - 06-11-2011, 02:50 AM
RE: Strange Effects in 3D Space - by triptych - 06-11-2011, 12:37 PM
RE: Strange Effects in 3D Space - by DioShiba - 06-11-2011, 01:08 PM
RE: Strange Effects in 3D Space - by Kriven - 06-11-2011, 02:54 AM
RE: Strange Effects in 3D Space - by GaryCXJk - 06-11-2011, 04:26 AM
RE: Strange Effects in 3D Space - by Rökkan - 06-11-2011, 01:48 PM
RE: Strange Effects in 3D Space - by Vipershark - 06-11-2011, 04:36 PM
RE: Strange Effects in 3D Space - by Koopaul - 06-11-2011, 06:06 PM
RE: Strange Effects in 3D Space - by Vipershark - 06-11-2011, 06:32 PM
RE: Strange Effects in 3D Space - by Kitsu - 06-11-2011, 06:45 PM
RE: Strange Effects in 3D Space - by Vipershark - 06-11-2011, 06:50 PM
RE: Strange Effects in 3D Space - by Koopaul - 06-11-2011, 07:00 PM
RE: Strange Effects in 3D Space - by Vipershark - 06-11-2011, 08:03 PM
RE: Strange Effects in 3D Space - by GaryCXJk - 06-11-2011, 08:04 PM
RE: Strange Effects in 3D Space - by RétroX - 06-11-2011, 09:40 PM
RE: Strange Effects in 3D Space - by Koopaul - 06-11-2011, 11:45 PM
RE: Strange Effects in 3D Space - by nong97 - 06-16-2011, 10:24 PM

Forum Jump: