Transperancy question
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.
December 10, 2000 01:52 AM
You just rendering them different. The texture does not change only how you display it.
December 10, 2000 04:11 AM
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement