Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: of 16 and 32 bit textures

  1. #1
    Junior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Ocoee, Florida, USA
    Posts
    155

    of 16 and 32 bit textures

    Again this is directed primarily at Matt

    Does keeping all textures the same format provide any benefits? I've discussed this with my artist and he has no problem sticking solely to one format (either 16 or 32) but does it hurt to mix the two? And how big is the cost of using 32bit textures over 16bit textures? Obviously 32bit textures take more bandwidth, but if we go with 16bit textures we'll use twice as many! Hmm... I think I'll start compiling all this information in a faq

    I cant express enough how much I love you guys!!! You help me SOOOO much!! Thank you!!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Sep 2000
    Location
    Santa Clara, CA
    Posts
    1,463

    Re: of 16 and 32 bit textures

    16-bit textures help exactly as much as you would expect -- they take half the memory, they take half as long to download, and they require half as much memory bandwidth.

    - Matt

  3. #3
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: of 16 and 32 bit textures

    >>ive same format provide any benefits? I've discussed this with my artist and he has no problem sticking solely to one format.<<

    what graphic file format supports 16bit textures??

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: of 16 and 32 bit textures

    The question is not what fileformat uses 16-bit texture, the question is what parameters you use when uploading the texture. You can load a 32-bit texture as usual, but select the internal format GL_RGBA4 when uploading the texture with glTexImage2D for example. That will upload the texture as 16-bit RGBA.

  5. #5
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,444

    Re: of 16 and 32 bit textures

    Originally posted by zed:
    >>ive same format provide any benefits? I've discussed this with my artist and he has no problem sticking solely to one format.<<

    what graphic file format supports 16bit textures??
    TGA for instance.

  6. #6
    Member Regular Contributor
    Join Date
    Oct 2000
    Location
    England
    Posts
    288

    Re: of 16 and 32 bit textures

    tga's and bitmaps...
    ...pretty obscure file formats, I know, but useful nonetheless
    --kieran

  7. #7
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: of 16 and 32 bit textures

    are u sure they support 16 bit textures eg data in R4G4B4A4 or R5G5B5 etc.
    i havent checked but i thought they were limited to 8,24,32 + maybe 64 bit.

  8. #8
    Junior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Ocoee, Florida, USA
    Posts
    155

    Re: of 16 and 32 bit textures

    I just checked and photoshop allows saving targas in a 16bit format. I'm not sure, internally exactly how the alpha is done.

  9. #9
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,444

    Re: of 16 and 32 bit textures

    I think it's R5G6B5.

  10. #10
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    21

    Re: of 16 and 32 bit textures

    the loading time for decreasing the texture color bit data from 32 bit to 16 bit may a thing to consider if you are loading many, many textures at once. Someone mentioned 64bit textures, heheh... 64bit color would take a whole freaking lot of computation. Plus the eye can't see more colors that 32bit. But maybe doing things in 64bit would provide more accuracy.
    Another thing about having the alpha channel in 16bit files. There is none, but it tries to use colors that are close to the original ones in the alpha channel. So pictures with a lot of alpha and normal color would appear worse quality in 32 bit.
    "Witness my perfection"

Posting Permissions

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