Results 1 to 4 of 4

Thread: How large size does glTexImage3D support?

  1. #1
    Member Contributor
    Join Date
    May 2006
    Posts
    55

    How large size does glTexImage3D support?

    When I set one dimension size of 3D texture to 1024,The texture seems wrong. All texture have the same color which is the first index color I setted.Why?

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Slovakia
    Posts
    9

    Re: How large size does glTexImage3D support?

    It is GPU dependent.
    You can try this in OpenGL code:
    GLint max3dsize=0;
    glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &max3dsize);

    Or any program for checking your GPU (e.g OpenGL extension viewer)
    http://www.realtech-vr.com/glview/download.html

    miso

  3. #3
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: How large size does glTexImage3D support?

    You need to query glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &size).
    Todays HW can support up to 512^3, but that doesn't mean you can load that!
    For one byte per texel 512^3 already needs 128MB and available texture memory is limited.
    You would have to use proxy textures to check if it fits.
    That is why 3D volume rendering is normally done with smaller volume bricks.

    Add glGetError calls during debugging.
    Read the OpenGL 2.0 spec.
    Search the internet for volume bricking.

  4. #4
    Member Contributor
    Join Date
    May 2006
    Posts
    55

    Re: How large size does glTexImage3D support?

    Thank you. I think I will go further in Volume Rendering domain.

Similar Threads

  1. GLSL: out array size too large?
    By imported_paul_g_griffiths in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-22-2017, 02:15 PM
  2. Replies: 1
    Last Post: 02-17-2015, 11:38 AM
  3. glTexImage3D memory size problem on AMD gpu
    By BalazsBago in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-30-2014, 05:31 AM
  4. Large Texture Support and/or Paging Techniques
    By pleopard in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 07-19-2005, 02:31 PM
  5. Replies: 10
    Last Post: 09-01-2002, 08:52 PM

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