Depth Testing + alpha blending

Started by
2 comments, last by yot 21 years, 4 months ago
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
Advertisement
you could try it

and yes you can...

-----------------------------

DaHeR.RailgunMaster
____________________________________MSN | AIM | YIM | ICQ
hi,

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
____________________________________MSN | AIM | YIM | ICQ

This topic is closed to new replies.

Advertisement