PDA

View Full Version : color differences



Sajjad
04-02-2001, 12:59 AM
Hi,

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.

sajjad

Deiussum
04-02-2001, 07:38 AM
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).

Sajjad
04-02-2001, 08:24 AM
Thanks for your support.I have tried the things what you have mentioned but nothing improved. Can you figure it out ???

Deiussum
04-03-2001, 08:28 AM
I've never tried to use palletted textures before, but are you absolutely certain your data is being read in correctly?

zed
04-03-2001, 04:36 PM
image inverted?
perhaps the data is BGR instead of RGB