How to set Alpha pixel to RGB of imported 2D-pic?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ming
Posts: 11
Joined: Thu May 04, 2006 4:16 pm

How to set Alpha pixel to RGB of imported 2D-pic?

Post by ming »

In CDX if you set the RGB to 0,0,0(Black) ,it will display alpha color(transparent) while the picture was showing. I knew that tga type can do this in irrlicht but how about other types like GIFF , BMP, PNG ?
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, I don't see where this library comes in here. So if you have a texture which has no alpha value you can lock the image and directly access the bitmap that way. Not check the format (16bit or 32bit) and set the alpha bits accordingly.
Post Reply