OpenGL and 2D Image Alpha Channel

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
Dataleap
Posts: 8
Joined: Thu Apr 22, 2004 1:21 pm

OpenGL and 2D Image Alpha Channel

Post by Dataleap »

Hi,

I'm new to Irrlicht and 3D in general so I apologize if I don't use the right term for everything.
My problem is when I try to draw a 2D image with a alpha channel (to make transparency) in OpenGL. I tried to use Software render and it worked fine. I have yet to test with Directx.

Check my image and you will see what my problem is. The alpha channel color is not black and I get some weird black things around my image. The image format is BMP. I read on other post problem with transparency with PNG and TGA but not BMP.

Image
kakTuZ
Posts: 12
Joined: Sun Mar 14, 2004 7:28 pm
Location: Hannover (Germany)

Post by kakTuZ »

perhaps you can use a color Key

Code: Select all

virtual void irr::video::IVideoDriver::makeColorKeyTexture  (  video::ITexture *    texture,  
  core::position2d< s32 >    colorKeyPixelPos 
 ) 
Dataleap
Posts: 8
Joined: Thu Apr 22, 2004 1:21 pm

Post by Dataleap »

I already done that to make the alpha channel. Check my post in the bug forum about image quality for the rendering of an image with every api.
Post Reply