Jump to content
  • Advertisement

Archived

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

yot

Depth Testing + alpha blending

This topic is 5838 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
Advertisement
hi,

sorry but I''m not really used to depth testing in that way
Do you have an idea how?

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!