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 2 of 2

Thread: texture mapping X1 R5 G5 B5 bitmaps

  1. #1
    Guest

    texture mapping X1 R5 G5 B5 bitmaps

    I dont know how to texture map a bitmap which is saved like this in Photoshop. For 24 bpp bitmaps i pass GL_RGB to gluBuild2DMipMaps but when I pass GL_RGB for a X1 R5 G5 B5 image it isnt dispalyed correctly. Please help.

  2. #2
    Guest

    Re: texture mapping X1 R5 G5 B5 bitmaps

    that looks like a DXT1 dds format. theres clearly 1 bit of x, or transparent alpha, so its not strictly a rgb image. load the dds, and either convert it to rgb manually, or use one of gl's compressed format type extensions (GL_COMPRESSED_RGBA_S3TC_DXT1_EXT).

    spec:
    http://oss.sgi.com/projects/ogl-samp...ssion_s3tc.txt

Posting Permissions

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