PDA

View Full Version : transparent color



04-02-2003, 01:24 AM
Being new to OepnGL what do i need to do (or where can I look for an informed response) to make a color on a texture transparent? Can somepost post some sample code? TIA!

nexusone
04-02-2003, 06:05 AM
Best way is to create a transparency map and use the Alpha channel as a mask. This way you don't have to worry about what color you are using in you texture.

nehe.gamedev.net has a tutor on it, I think it is around tutor 33.



Originally posted by applap:
Being new to OepnGL what do i need to do (or where can I look for an informed response) to make a color on a texture transparent? Can somepost post some sample code? TIA!