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: max number of texture ?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jan 2002
    Location
    France
    Posts
    134

    max number of texture ?

    Hello

    I think of an application which would use a very large number of small textures (64x64). Is there any limit to the number of textures that can be generated through glgentextures ?
    As glgentextures return 16bit index, I assume it is 65536 ?

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: max number of texture ?

    The index is 32bit on all usual architectures, so you probably won't run into that limit. Still, consider packing your textures as tiles in a larger one(for example 256 small textures in one 1024x1024). This will allow you to save performance on binding large number of textures.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jan 2002
    Location
    France
    Posts
    134

    Re: max number of texture ?

    Ah right... Yes 32bit is pretty cool. I was rather wondering about some hardware limitation (other than available memory) but you haven't heard of such things (and that's great). Unfortunately I won't be able to tiles them due to how the application is designed, but binding shouldn't be a problem (only a few binds at each frame).

Posting Permissions

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