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: can i save memory by loading 16 or 8bit textures ?

  1. #1
    Junior Member Regular Contributor
    Join Date
    Dec 2002
    Posts
    156

    can i save memory by loading 16 or 8bit textures ?

    or do i have to use 24 bit ?
    go vegan

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2003
    Posts
    4

    Re: can i save memory by loading 16 or 8bit textures ?

    it depends on what you use as type. int requires normaly less memory than long, etc. (This can however be machine-dependend, but a long will never be bigger than an int, a float will never be bigger than a double)

  3. #3
    Intern Contributor
    Join Date
    Jan 2003
    Posts
    82

    Re: can i save memory by loading 16 or 8bit textures ?

    In general: Yes 16Bit or 8Bit textures save memory. I would not use 8Bit textures anymore simply because of the colourtable hazle.

    Of course lower precision means more banding.

    BTW 24bit textures are uploaded into the videomemory as 32bit textures.

    You may want to look into compressed textures.

  4. #4
    Junior Member Regular Contributor
    Join Date
    Dec 2002
    Posts
    156

    Re: can i save memory by loading 16 or 8bit textures ?

    compression sounds good.
    how to use it ?
    go vegan

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: can i save memory by loading 16 or 8bit textures ?

    GL_ARB_texture_compression .

    Or google for "opengl texture compression tutorial". I'm sure you'll get lots of hits.

Posting Permissions

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