PDA

View Full Version : problem loading texture



saosin
05-08-2010, 06:09 PM
I'm having problems seeing the textures of an application, the application works fine in another computers but in mine it doesn't load all the texture.

Some textures are loaded but others are missing, anyone know how can i fix this? or is this a problem of my computer?

textures extension is .tga

Thanks in advance

ZbuffeR
05-09-2010, 12:28 AM
Do all working textures have power-of-two dimensions ?
Like 512*256 ?
Do you check the maximum texture size supported by your GL implementation ?

saosin
05-09-2010, 10:06 AM
Hi! Thanks for your response

That was the problem, Not all the textures had power of two dimensions.
However it's strange that the same code and same textures were working in other computers but in mine weren't.

Regards,
saosin

ZbuffeR
05-09-2010, 10:30 AM
That is because supporting Non-Power-Of-Two is only available as an optional extension on OpenGL before version 2.0 and you are supposed to check for that.
http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt

remdul
05-09-2010, 12:17 PM
*never mind*