Results 1 to 2 of 2

Thread: getting compressed cubemap faces

  1. #1
    Member Newbie
    Join Date
    Jul 2002
    Location
    Guildford, UK
    Posts
    36

    getting compressed cubemap faces

    Suppose you have support for GL_ARB_texture_compression, GL_ARB_texture_cube_map, GL_EXT_texture_compression_s3tc.

    Is it valid to get the compressed faces back from the GL using

    GetCompressedTexImageARB( face,
    lod,
    img );

    where face is one of
    TEXTURE_CUBE_MAP_POSITIVE_X_ARB
    TEXTURE_CUBE_MAP_POSITIVE_Y_ARB
    etc.

    if you have the cubemap bound to GL_TEXTURE_CUBE_MAP_ARB???

    I'm doing this to stream out a DXT1 cubemap into a packed file, but when I stream it back in the cubemap looks wrong (I can see what looks like an edge between the faces on my geometry). This edge isn't visible when I load directly from the original DDS file.

    I've checked the code, and it streams out the faces in the same order that it streams them back in. I save the packed file and read it on the same system (tested on both GeForce4Ti4600 and Radeon9700) and always see the same thing.

    I've removed mipmaps so I only have one image per face, but still see the edge.

    The addressing modes also appear to be the same.

    I'm quite willing to accept I'm doing something wrong, but it's bugging me.

    Any ideas?


    Cheers,


    Mark

    <edit: typo>

    [This message has been edited by markfcsl (edited 08-02-2003).]

  2. #2
    Member Newbie
    Join Date
    Jul 2002
    Location
    Guildford, UK
    Posts
    36

    Re: getting compressed cubemap faces

    OK, it was my test app that was wrong. You can read compressed cubemap faces back from the GL.

    It was using a multitextured geometry, with the cube map in texunit1, and another similar texture in texunit0.

    The edge that I could see was from texunit0.

Similar Threads

  1. Clear a single cubemap in a cubemap Array
    By livin_amuk in forum OpenGL: Advanced Coding
    Replies: 20
    Last Post: 09-13-2017, 08:25 AM
  2. Front faces, back faces and edge-on faces
    By sam_hawker in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-23-2017, 07:24 AM
  3. Attaching a single cubemap from a cubemap array as a FBO
    By cyatxfx in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-29-2014, 03:08 AM
  4. Using CubeMap faces as 2D textures
    By RGHP in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-10-2007, 05:33 AM
  5. Using an fbo to render to cubemap faces
    By Rodan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-12-2007, 08:21 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