# what are the limits on texture size for opengl

**URL:** <https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759>\
**Category:** OpenGL: Advanced Coding\
**Created:** [May 31, 2001, 9:59pm UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759 "2001-05-31T21:59:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dodgyposse](https://community.khronos.org/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dodgyposse](https://community.khronos.org/u/dodgyposse)\
**Post date:** [May 31, 2001, 9:59pm UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/1 "2001-05-31T21:59:00Z")

</div>

I have been told conflicting information and need to know what the limitations/contraints actually are for textures in openGl.

I thought they had a limit of 256x256  
and the dimensions must be in powers of 2…  
correct?

dd

---

<div class="post-metadata">

**Author:** ![Zeno](https://community.khronos.org/letter_avatar_proxy/v4/letter/z/57b2e6/32.png) [@Zeno](https://community.khronos.org/u/Zeno)\
**Post date:** [May 31, 2001, 10:27pm UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/2 "2001-05-31T22:27:00Z")

</div>

OpenGL says texture dims must be a power of 2, but says nothing about max texture size. That is up to the implementation.

For instance, TNT2 - GF2 has max texture size of 2048x2048. GF3 is 4096x4096. If I recall, the voodoos used to be 256x256.

Incidentally, nvidia also has an extension for non power of 2 texturemaps now, but I’m not sure what hardware supports it.

– Zeno

---

<div class="post-metadata">

**Author:** ![Michail\_Bespalov](https://community.khronos.org/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@Michail\_Bespalov](https://community.khronos.org/u/Michail_Bespalov)\
**Post date:** [May 31, 2001, 11:00pm UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/3 "2001-05-31T23:00:00Z")

</div>

Use GetIntegerv(GL\_MAX\_TEXTURE\_SIZE,) to query max supported 2d/1d texture size.  
GL\_MAX\_3D\_TEXTURE\_SIZE for 3d textures.  
GL\_MAX\_CUBE\_MAP\_TEXTURE\_SIZE\_ARB for cube maps.

NVIDIA documentation says that, the rectangular textures are supported in HW by gf1/gf2/gf3.

---

<div class="post-metadata">

**Author:** ![dodgyposse](https://community.khronos.org/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@dodgyposse](https://community.khronos.org/u/dodgyposse)\
**Post date:** [May 31, 2001, 11:05pm UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/4 "2001-05-31T23:05:00Z")

</div>

Am i also correct in saying, that if the texture dimensions are greater than that supported by the implementation, and auto-scale is employed?

dd

---

<div class="post-metadata">

**Author:** ![pocketmoon](https://community.khronos.org/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@pocketmoon](https://community.khronos.org/u/pocketmoon)\
**Post date:** [May 31, 2001, 11:18pm UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/5 "2001-05-31T23:18:00Z")

</div>

nope- you’ll get no textures rendered ![](http://www.opengl.org/discussion_boards/ubb/smile.gif)

Watch out using 2048 though - ATI’s cards only go up to 1024 IIRC.

---

<div class="post-metadata">

**Author:** ![Tim\_Stirling](https://community.khronos.org/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Tim\_Stirling](https://community.khronos.org/u/Tim_Stirling)\
**Post date:** [June 1, 2001, 12:52am UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/6 "2001-06-01T00:52:00Z")

</div>

The only constraints on size is that textures up to 64\*64 has to be supported.

The glu function to build mip-maps automaticly re-scales non power of 2 textures but wont limit the size, but that is easy to do by checking like Michail Bespalov and using gluScale.  
Tim

---

<div class="post-metadata">

**Author:** ![Humus](https://community.khronos.org/user_avatar/community.khronos.org/humus/32/47_2.png) [@Humus](https://community.khronos.org/u/Humus)\
**Post date:** [June 1, 2001, 1:40am UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/7 "2001-06-01T01:40:00Z")

</div>

> Originally posted by pocketmoon:  
> [b]nope- you’ll get no textures rendered ![](http://www.opengl.org/discussion_boards/ubb/smile.gif)

> Watch out using 2048 though - ATI’s cards only go up to 1024 IIRC.[/b]

Don’t know about earlier cards but Radeon does 2048 too.

---

<div class="post-metadata">

**Author:** ![ET3D](https://community.khronos.org/letter_avatar_proxy/v4/letter/e/97f17d/32.png) [@ET3D](https://community.khronos.org/u/ET3D)\
**Post date:** [June 1, 2001, 3:21am UTC](https://community.khronos.org/t/what-are-the-limits-on-texture-size-for-opengl/36759/8 "2001-06-01T03:21:00Z")

</div>

AFAICR, the Rage 128 also supports 2048x2048. The Rage Pro and derivatives only support 1024x1024. But it will probably bog down in any app that uses them, anyway ![](http://www.opengl.org/discussion_boards/ubb/smile.gif)
