View Full Version : blend one color in a texture
How can I make one color of a texture not be visible?.
Tnx.
Liso.
Linux has you...
NOAH IV
03-06-2001, 07: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.
ok, this is the idea, but with which glfunctions can i do it??,
Tnx.
Liso.
Linux has you...
Deiussum
03-06-2001, 04: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).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.