I've been racking my brain trying to figure out a problem for the last few days. All I want to do is load an image, any image (jpg,bmp,ect...), and then be able to add an alpha channel to the pixel data, and put either the red,green,or blue values into the alpha channel, then set all the r,g,b values to 0. I cannot figure out how to do it or get access to the right data after loading a texture.
Could somebody please help!!!!
please help!!!! need to add alpha channel to image
Re: please help!!!! need to add alpha channel to image
take a look at the texture manipulation section in the source code for the avi reader in this thread http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=927soconne wrote:I've been racking my brain trying to figure out a problem for the last few days. All I want to do is load an image, any image (jpg,bmp,ect...), and then be able to add an alpha channel to the pixel data, and put either the red,green,or blue values into the alpha channel, then set all the r,g,b values to 0. I cannot figure out how to do it or get access to the right data after loading a texture.
Could somebody please help!!!!
also, take a look at the png loader source code in this thread http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=517, which reads in the alpha channel from a 32bit or 24bit .png image