Hi,
Have you tried creating the image as a true grayscale image? To do that you would create the image like so:
Code:
image->setImage(size,size,1,1,GL_LUMINANCE,GL_UNSIGNED_BYTE,new unsigned char[size*size],osg::Image::USE_NEW_DELETE);
Then you would set each pixel value using a single byte:
Code:
unsigned char *pixel = image->data(x,y);
*pixel = 255;
If you need the image to be created as RGBA then you can either post the code you are using or email it to me at
lashkari@worldviz.com.
Also, make sure that the computer which is experiencing this problem is set to 32-bit color mode in the graphics card settings. It might be set to 16-bit.