TinyGL 16-bit textures in MorphOS 3.10
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    I'm trying to minimize the VRAM usage, and since the DXTn compressor is still produces artifacts on higher mip levels, I thought of using 16-bit textures as a fallback. I'm using GL_RGBA4 and GL_RGB5 internal formats to be specific. The problem is that I don't see any difference in VRAM usage and visually the textures look the same, which suggest that they are still in RGB/RGBA. I also tried setting the TGLLOWQTEXTURES environment variable, which used to force every texture into 16-bit, but it didn't have any effect either. My question is, was the 16-bit texture support removed, or is there some bug that prevents the resampling of the texture into the requested format?
    This is just like television, only you can see much further.
  • »03.06.18 - 08:35
    Profile Visit Website
  • MorphOS Developer
    bigfoot
    Posts: 508 from 2003/4/11
    It's always good to mention what hardware you're using, as drivers differ between hardware. I'm gonna assume you're using R300-based hardware. The R300 driver doesn't presently support any 16 bit texture formats. The texture formats supported by the R300 driver are:

    GL_RGBA,
    GL_BGRA,
    GL_COMPRESSED_RGBA_S3TC_DXT3_EXT,
    GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,
    GL_LUMINANCE,
    GL_ALPHA,
    I rarely log in to MorphZone which means that I often miss private messages sent on here. If you wish to contact me, please email me at [username]@asgaard.morphos-team.net, where [username] is my username here on MorphZone.
  • »08.06.18 - 14:07
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    I'm using R200 (Mac Mini G4 RV280), which used to support 16-bit textures. At least I remember using TGLLOWQTEXTURES with it, but that was probably before the TinGL overhaul. Is it possible to supply my own mipmaps without using gluBuild2DMipmaps? glTexImage2D always tries to set level 0, no matter what argument I pass to it.

    [ Edited by BSzili 09.06.2018 - 10:17 ]
    This is just like television, only you can see much further.
  • »09.06.18 - 08:04
    Profile Visit Website