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
    Member 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
    Senior Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    369

    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.

Similar Threads

  1. Get maximum texture size
    By sanchiski in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-14-2012, 07:05 PM
  2. maximum supported texture size
    By appdeveloper in forum OpenGL: Windows
    Replies: 4
    Last Post: 10-12-2009, 09:41 AM
  3. How to determine size of memory available for VBO's
    By byhisdeeds in forum OpenGL: User Software
    Replies: 8
    Last Post: 12-07-2006, 05:51 PM
  4. What is the maximum size of texture allowed?
    By BigShooter in forum OpenGL: Basic Coding
    Replies: 19
    Last Post: 08-06-2003, 08:44 AM
  5. Minimum and maximum size of 1d texture
    By Gorg in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-04-2002, 01:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean