PDA

View Full Version : textures mapping is wrong...



Electop
03-09-2005, 10: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.

T101
03-09-2005, 11: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.

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