PDA

View Full Version : Depthbuffer and clear areas on a texture



WhatEver
08-20-2002, 02:53 PM
Is there any way to make a 100% transparent area on a texture get ignored by the depthbuffer? This would be VERY cool.

I notice in Q3 that grates and stuff draw correctly and I doupt they draw from furthest to nearest.

PH
08-20-2002, 02:56 PM
The alpha test can be used for that ( in fact, that's what Q3 uses for that particular effect ).

WhatEver
08-20-2002, 05:17 PM
Yay! Thanks!

I will have to play with that http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif!

WhatEver
08-21-2002, 12:58 PM
Here's one for ya. Is it possible in OpenGL to stop from writing to the depth buffer when the alpha is less than say 0.9f yet still draw the pixel? If this is possible then I wouldn't have to manually disable the depth test when objects are suppose to be semi transparent.