[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: opengl and textures
xarvh@lombardiacom.it wrote:
It works, but with a different texture, loaded in the same way.
Could it be that the 'broken' texture is not an exact power-of-two
in each direction?
That's a common error.
OpenGL textures have to be 1,2,4,8,16,32,64,128,256,512,1024 or 2048
pixels in each direction (some hardware can deal with 4096 too).
You can't have maps that are (say) 123x457 pixels. You *can* have
128x512.
---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1@airmail.net> WorkEmail: <sjbaker@link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net http://tuxaqfh.sf.net
http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----