MAsking & 3d world
// (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.
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement