[osg-users] Problem loading RGBA bmp.

2013-03-12 Thread Peterakos
Hello. I try to load a bmp image and set it to a texture. When i render the model with the texture (using shaders), even though the rgb channels are passed fine, the alpha channel is always 1. When the image is loaded (using readImageFile), the pixel format is GL_RGBA (which is correct). But the

Re: [osg-users] Problem loading RGBA bmp.

2013-03-12 Thread Aurelien Albert
Hi, Alpha channel is not supported by all image file format. For example PNG support it, JPEG doesn't. I'm not sure the BMP format support alpha channel (or maybe no all variant of BMP format) Cheers, Aurelien -- Read this topic online here:

Re: [osg-users] Problem loading RGBA bmp.

2013-03-12 Thread Ulrich Hertlein
Hello nameless stranger, On 13/03/13 1:19, Peterakos wrote: I try to load a bmp image and set it to a texture. When i render the model with the texture (using shaders), even though the rgb channels are passed fine, the alpha channel is always 1. Can you make your BMP file available? I have a