Page 1 of 1

OpenGL and 2D Image Alpha Channel

Posted: Thu Apr 22, 2004 1:39 pm
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

Posted: Fri Apr 23, 2004 8:56 am
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 
 ) 

Posted: Fri Apr 23, 2004 11:57 am
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.