Jump to content
  • Advertisement


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


MAsking & 3d world

This topic is 6111 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

// (am a rookie @ OpenGL, (only 4 days ) For masking & blending, the DEPTH_TEST is disabled, but i want a masked, blended, translucent object in a moveable 3d world. How do i acheive this? Coz if i display the tranlucent object (last) without disabling depth test, only the mask appears & not the texture. On the other hand if i do it after disabling DEPTH_TEST certain abjects in the rendered world also become translucent. Plz HELP! Thanx in advance.

Share this post

Link to post
Share on other sites
glDepthMask(0); instead of glDisable(GL_DEPTH_TEST);
glDepthMask(1); instead of glEnable(GL_DEPTH_TEST);

Hope this can help you.....

Take Care!

- -- ---[XaOs]--- -- -

[ project fy ]

Edited by - XaOs on October 23, 2001 2:14:05 PM

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!