MAsking & 3d world

Started by
0 comments, last by Arunan 22 years, 6 months ago
// (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.
Advertisement
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
- -- ---[XaOs]--- -- -[ Project fy ||| CyberTux ]

This topic is closed to new replies.

Advertisement