PDA

View Full Version : max texture sizes



hoshi55
05-25-2002, 01:20 AM
hi

does anyone know how large textures may be on
voodoo 4/5
tnt2
radeon
geforce
?

thx
eik

Bob
05-25-2002, 03:11 AM
Here (http://www.delphi3d.net/hardware/listreports.php) .

Relic
05-28-2002, 03:57 AM
Hardcoded constants are unreliable. The maximum texture size may for example vary with selected screen resolution.
You need to query glGetIntegerv(GL_MAX_TEXTURE_SIZE, &i); and adapt to that if your desired textures were bigger.


[This message has been edited by Relic (edited 05-28-2002).]

knackered
05-28-2002, 04:44 AM
I thought you had to use proxy textures to find that out - or is that just to find out if you've enough memory for the texture?

V-man
05-28-2002, 05:06 PM
Originally posted by knackered:
I thought you had to use proxy textures to find that out - or is that just to find out if you've enough memory for the texture?


IIRC, the glGetInteger is a way to see what the maximum supported size is.
The proxy method will tell you if a specific texture (format and all) will upload or fail.

for example 1024 x 1024 x 16 might be supported but 1024 x 1024 x 32 might not and 1024 x 512 x 32 might, ...(just making up some numbers here)
V-man