transparency
OK, this is a difficult question for me...
I want to draw a fire in a 3D-Engine, so I can''t disable the depth buffer. But without disabling it, the transparent parts are not really transparent ;-(
So you can''t see the second fire-texture through the transparent parts...
SnAkE''s Programming Resources
There has to be someone who already solved this problem, cause I can''t believe that noone ever tried to do this. It''s not that special...
Somehow these 3D-Shooters have to do their transparecies...
SnAkE''s Programming Resources
Somehow these 3D-Shooters have to do their transparecies...
SnAkE''s Programming Resources
You could try messing with GL_ALHPA_TEST, it wouldn''t give you the same results, but it would fix your problem (AFAIK)
Celeron ][ 566 @ 850256MB PC-100 CAS2 RAMDFI PA-61 Mainboard (250MB memory bandwidth sucks, it should be 500MB)ATI Radeon 32MB DDR LEWindows 98SE
I think you should use masking. I had the problem with my particle system and implemented masking. It solved the problem.
NeHe''s tutoital 20.
NeHe''s tutoital 20.
You have to disable depthbuffer WRITING during your transparent surfaces. Do keep READING the depthbuffer. Should work. No idea how it works in code though...
hth
hth
quote: Original post by ThamasTah
You have to disable depthbuffer WRITING during your transparent surfaces. Do keep READING the depthbuffer. Should work. No idea how it works in code though...
The answer to that (in OpenGL) is glDepthMask(0) to disable writing and glDepthMask(1) to enable writing.
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://druidgames.cjb.net/
Thax everyone who tried to help me...
glDepthMask is the right function. In combination with blending it looks quite cool!
You can see the results on my hp (3D-Engine)...
SnAkE''s Programming Resources
glDepthMask is the right function. In combination with blending it looks quite cool!
You can see the results on my hp (3D-Engine)...
SnAkE''s Programming Resources
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement