Advertisement

Transperancy question

Started by December 09, 2000 11:08 PM
3 comments, last by Wiz74 23 years, 11 months ago
Hi all, hopefully this will be a nice simple little question. I was wondering how you can make a textured object in front non-transparent, while having the textured objects at the back transparent? Thank you very much.
Just another Corporate slave trying to release himself into the OpenGL void.
You just rendering them different. The texture does not change only how you display it.
Advertisement
See the NeHe tutorial nr 8 about blending. Remember to disable writing to the z-buffer if you can see trough a polygon.
The order in which you draw to the screen will affect how they appear on the screen. If you render a transparent texture first, then enable depth testing and draw your solid object, the solid object should cover the transparent object.
Sorry guys I haven''t had the chance to have a look for awhile. Got a week off over xmas but, so hopefully will then. Thanks for all the help though, its muchly appreciated

Just another Corporate slave trying to release himself into the OpenGL void.

This topic is closed to new replies.

Advertisement