I am using paletted textures. In the final output I am not getting the original image colors. The black color is changed to blue. The blue color to black. The white to green. what could be the reason.
Further the image is inverted. Kindly help me.
Try one of two things.
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); /* Or GL_DECAL for the last parameter)
or set your material/color to 1,1,1,1 before drawing your object(s).
Thanks for your support.I have tried the things what you have mentioned but nothing improved. Can you figure it out ???
I’ve never tried to use palletted textures before, but are you absolutely certain your data is being read in correctly?
perhaps the data is BGR instead of RGB