upside-down textures

Started by
3 comments, last by Don_PhrostByte 19 years, 11 months ago
Hello, I''m trying to load textures with DevIL''s ilutGLLoadImage(), but it seems to be loading them upside-down. Anyone know how to flip an opengl texture after it''s been loaded? This is causing problems with md2 command lists, you get a head for a chest and arms for legs :D
Advertisement
hmm... sounds like your texture coords are flipped (I''m pretty sure that DX and OpenGL use a different mapping scheme, so make sure it''s not a mix up like that ) It shouldn''t be a problem with DevIL, ''cause I use it for my textures in GL and it works great
"Game Programming" in an of itself does not exist. We learn to program and then use that knowledge to make games.
yea that''s the first thing I thought of, but the md2 looks fine in other programs and I''m not changing them at all in mine.
Invert the texture on y, other programs do that too.
Quote from my code:
text_coord_pointer.v=1.0f-(float)file_text_coord_pointer.v/(float)file_header.skinHeight;<br>    </pre>     <br>   

This topic is closed to new replies.

Advertisement