Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: how to determine the maximum texture size?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    3

    how to determine the maximum texture size?

    I am trying to determine what is my maximum texture size:

    glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE_EXT,result);

    The number returned back is 512. What does this number mean? Does it mean I can only have upto 512bytes of texture data?

    Thanks.

  2. #2
    Intern Newbie
    Join Date
    Jul 2004
    Location
    Bangalore
    Posts
    37

    Re: how to determine the maximum texture size?

    Originally posted by pchiu:
    I am trying to determine what is my maximum texture size:

    glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE_EXT,result);

    The number returned back is 512. What does this number mean? Does it mean I can only have upto 512bytes of texture data?

    Thanks.
    params returns one value, a rough estimate of the largest 3D texture that the GL can handle. If the GL version is 1.2 or greater, use GL_PROXY_TEXTURE_3D to determine if a texture is too large.

  3. #3
    Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    368

    Re: how to determine the maximum texture size?

    The number returned means the size of the texture in pixels (in our case a square or cube texture). Of course you can change dimensions (for example 1024x64 instead of 512x512). Try searching for the red book to see what's written regarding this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •