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 4 of 4

Thread: Max. texture size

  1. #1
    Guest

    Max. texture size

    Hello,

    does anybody know why the size of a texture bitmap is limited to 256 pixels for s and t?

    I need a bigger one, may be 1024 ore more.

    My workaround - composing just a 512 pixel bitmap out of 4 tiles with 256 pixels each - is slowing down the program dramatically despite using a display list. The reason for the slow speed is the calls to glBindTexture().

    Any ideas - i would be lucky

    sincerely yours,

    Walter

  2. #2
    Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Karlsruhe, Germany
    Posts
    486

    Re: Max. texture size

    The maximal texture size is driver- and hardware dependent. Nowadays most cards support 2048x2048 textures, GF3 even 4096x4096.

    -Lev

  3. #3
    Intern Contributor
    Join Date
    Apr 2000
    Location
    Salt Lake City, UT
    Posts
    55

    Re: Max. texture size

    Is there a function call that will return the maximum size texture allowed by your setup?

  4. #4
    Guest

    Re: Max. texture size

    You can try glGetIntegerv with GL_MAX_TEXTURE_SIZE but I am not sure if this will give the "right" limitation. Perhaps will it return the memory limitation? The answer can also easy be calculated by trying 512, 1024, 2048 and so on. You should get an error if the texture can not be created.

Posting Permissions

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