Skip to main content
gamedev.net
🔒 Locked

targa files

Started by hello_there Nov 21, 2003 at 6:53 PM 4 replies 300+ views
Original Post
hello_there
hello_there
what dimensions do tga file need to be? because i have a 328 by 94 tga file and it doesn''t work but a 64 by 64 one does.
____________How could hell be worse?
pinacolada
pinacolada
All OpenGL textures need to have sizes that are powers of 2.

Although I think this changed in the most recent version?
hello_there
hello_there
k any idea why it isn''t working then?
____________How could hell be worse?
benjamin bunny
benjamin bunny
quote:
Original post by pinacolada
All OpenGL textures need to have sizes that are powers of 2.

Although I think this changed in the most recent version?


Only through a specific extension, and with restrictions at that.

quote:

k any idea why it isn't working then?

Perhaps you should read the spec for glTexImage2D before trying to use it.

[edited by - benjamin bunny on November 21, 2003 9:01:51 PM]
Wudan
Wudan
Yeah, when I was working on my Texture Loading system, I didn''t understand the examples I was reading until I read up on glTexImage2D - it sits there like a quiet, unassuming line of code, but is the most important one ... in some ways.
MazyNoc
MazyNoc
glGetError gives you feedback about thinks like that..

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.