PDA

View Full Version : Semi-transparent poly...



gamerixe
07-13-2003, 06:52 PM
Im doing a simple water effect(poly with multitexturing,2 layers of water moving in diffcdirection),my problem is that im turning on Blending to see in the water but I only want it to be semi-transparent so I'll still see the water textures...any hint?

Thank for your precious help! http://www.opengl.org/discussion_boards/ubb/smile.gif

Poons
07-20-2003, 08:26 PM
maybe you just add an alpha channel to your textures. or to you want an opengl related solution?

07-21-2003, 01:47 AM
Maybe you should take a look on that :




glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE);
or
glBlendFunc(GL_ONE, GL_SRC_ALPHA);
glColor4ub(255, 255, 255, 128); // set the alpha channel to semi transparent


Hope this help.

Steve.