PDA

View Full Version : blend one color in a texture



Liso
03-06-2001, 06:13 AM
How can I make one color of a texture not be visible?.
Tnx.

Liso.
Linux has you...

NOAH IV
03-06-2001, 08:17 AM
First you have to load the texture as RGBA and them set the alpha value of the pixels with the color you want to transparent 0 (fully transperant).

This worked for me.

Liso
03-06-2001, 02:28 PM
ok, this is the idea, but with which glfunctions can i do it??,
Tnx.
Liso.
Linux has you...

Deiussum
03-06-2001, 05:11 PM
You'll have to check the color of each pixel and set the alpha value accordingly yourself. OpenGL doesn't provide a function to do that automatically for you.

P.S.

Linux will never have me!! http://www.opengl.org/discussion_boards/ubb/smile.gif

[This message has been edited by Deiussum (edited 03-06-2001).]