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

Thread: Oh, that's textures.

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    Russia
    Posts
    3

    Oh, that's textures.

    I wanna to put on background hi-res picture.
    But in opengl only 256*256 pictures are allowed.
    I know that putting bigger is possible, but worry about memory.
    How to use hi-res pictures?

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    Russia
    Posts
    3

    Re: Oh, that's textures.

    i'm russian, so my english is no good.
    Sorry!

  3. #3
    Intern Newbie
    Join Date
    Nov 2003
    Location
    Gliwice, Slaskie, Poland
    Posts
    45

    Re: Oh, that's textures.

    It is not true. You may use bigger textures than 256x256. I guess my Radeon9600Pro can handle even 4096x4096 textures. Make sure they are power of two and try to load them. Use compressed textures (there is some extension I can remember now) if you wanna save some memory (this can even improve performance in the case of bigger textures ;-) )

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    628

    Re: Oh, that's textures.

    I'm pretty sure the minimum size is 64x64. All vendors provide much higher texture which you can retrieve with GL_MAX_TEXTURE_SIZE thuru glGet.
    Expect 256x256 on old cards (3+ years), 2048x2048 on radeons (not sure of that), 4096x4096 on geforces.
    Professional video cards have much better support. I heard there are 6 year old cards which can handle 64k x 64k textures but I never checked this.

    If you cannot load a single texture, load multiple ones and apply them correctly on your mesh. Simple way: break apart the mesh and adjust texture coordinates.

  5. #5
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    Russia
    Posts
    3

    Re: Oh, that's textures.

    Thanks, i tried and i'v got a result.
    Thanks very much!!!

Posting Permissions

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