View Full Version : textures mapping is wrong...

03-09-2005, 09:40 PM
hi everyone

I did textures mapping Image.
but, The color of image was wrong.
what's the matter?
I need your help your advice.
thank you.

03-09-2005, 10:22 PM
Are you using your own image loading code?
Are you passing the correct encoding when you upload the texture to the hardware?

E.g. if you load a BMP file as RGB and then upload it you may into a little problem: BMP stores the bytes in the order BGR. In other words: red and blue are swapped.

03-22-2005, 04:01 AM
can you please post your code?
there are too many cases in which this problem occurs.