upside-down textures
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
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
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.
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
Popular Topics
Advertisement