Archived

This topic is now archived and is closed to further replies.

Depth Testing + alpha blending

This topic is 5501 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites