Results 1 to 4 of 4

Thread: 16-bit textures

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2000
    Posts
    13

    16-bit textures

    des this makes to to store textures in vidoe ras as 16 bit ?

    cfg.r_texturebits = 16;

    if (cfg.r_texturebits == 32) glTexImage2D(GL_TEXTURE_2D, level, GL_RGBA8, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, image);
    if (cfg.r_texturebits == 16)
    {
    glTexImage2D(GL_TEXTURE_2D, level, GL_RGBA4, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, image);
    }

    the I mage so I saw no visual difference betwwen textures then is is 32 and 16 bit. Or I'm wrong.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: 16-bit textures

    Were you in a 16 bit color mode when testing each type of texture? Because it is likely, that your OpenGL driver is automatically downsampling 32 bit textures to RGBA4 while in a 16 bit color mode. Or the reverse could also be true. If you were in a 32 bit color mode, the 16 bit texture could be upsampled to 32 bits and stored as RGBA8. The internal format parameter as I understand it, is just a request. The driver can choose to ignore it. Someone correct me if I'm offline here, please.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2000
    Posts
    13

    Re: 16-bit textures

    yep. I found that this works, and some textures are looking worse (16-bit). But it's was so trange that making 16 bit and 32 bit textures is so simple, too simple:]].

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: 16-bit textures

    This is for DFrey, I recently installed an ATI expert (rage pro 128 16mb) and there is an option in the opengl tab on the driver to always convert 32bit textures to 16bit. There is also these commands - enable page flipping, disable dithering when alph blending, enable KTX buffer region extensions?, force 16bit Z-buffer, wait for vertical sync, subpixel precision(2/4) and a slider bar for fuzzyness vs sharpness. So it looks like several things in opengl can be driver driven(?).
    Tim
    Reality is for idiots only the best over come it!

Similar Threads

  1. Applying textures to a sphere. I know nothing about textures.
    By ElFlautas in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-28-2018, 03:47 AM
  2. model textures being redirected to font textures
    By Tcll5850 in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 09-07-2014, 10:43 PM
  3. FBO Attached Textures Reused as Shader Source Textures
    By Rennie Johnson in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-22-2012, 09:43 PM
  4. Lots of small textures or fewer large textures?
    By jlamanna in forum OpenGL: Advanced Coding
    Replies: 30
    Last Post: 01-12-2004, 03:53 AM
  5. are GL_COLOR_INDEX textures converted to RGBA-Textures?
    By TB-Rex in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 12-18-2000, 06:34 AM

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