Depth Testing + alpha blending
hi,
I made a small opengl program and I would be happy to the following effect in. I happen to use the line glDisable(GL_DEPTH_TEST) instead of glEnable(GL_DEPTH_TEST) which gave a cool looking effect. But I don''t want to totally skip the polygons which would have been drawn with glEnable(GL_DEPTH_TEST)but render them with alpha blending. Is that possible?
Big Thx
yot
you could try it 
and yes you can...
-----------------------------
DaHeR.RailgunMaster

and yes you can...
-----------------------------
DaHeR.RailgunMaster
hi,
sorry but I''m not really used to depth testing in that way
Do you have an idea how?
yot
sorry but I''m not really used to depth testing in that way

Do you have an idea how?
yot
what do you mean by how?
Mabe I didn''t get you right, you want to blend objects without disabling the depth tesing, right? in that case simply enable blending and the blending function without chaning the depth test value... then draw your objects... its recommended to draw far objects first...
-----------------------------
DaHeR.RailgunMaster
Mabe I didn''t get you right, you want to blend objects without disabling the depth tesing, right? in that case simply enable blending and the blending function without chaning the depth test value... then draw your objects... its recommended to draw far objects first...
-----------------------------
DaHeR.RailgunMaster
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement