Textures are mirrored (DevIL/LibPNG)

Started by
11 comments, last by thorpe 19 years, 8 months ago
Quote:Original post by thorpe
Thing is, everything worked properly before when I had my own bmp read code. When I call glu functions, the textures get mirrored and I want to be able to use glu (and have proper coordinates). I suspect you have to call some DevIL function but I can't find any good example code.


Out of interest, did you remember that BMP format stores the data from bottom to top and therefore invert the order of the rows in your loader ?

If you didn't then you must have adjusted the texture coordinates to fix it which would make all the DevIL loaded images appear to be flipped top to bottom.
Advertisement
Dunno, I've deleted my BMP handling code :) It worked fine together with glu calls though so I think it was correct and that DevIL is wrong (by default).
Johan Torp - http://www.destruction.nu
TomasH: Thanks for the tip! Didn't work at all though :/
Johan Torp - http://www.destruction.nu

This topic is closed to new replies.

Advertisement