Archived

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

Arunan

MAsking & 3d world

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