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

Thread: textureCube

  1. #1
    Intern Newbie
    Join Date
    Apr 2004
    Posts
    45

    textureCube

    .. can't find how to use textureCube .. do i have to create an specific texture in my opengl application .. or just using texture2d ??

    thx

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2002
    Location
    Austria
    Posts
    328

    Re: textureCube

    OpenGL Specification V1.051, page 54:

    vec4 textureCube (samplerCube sampler, vec3 coord [, float bias] )
    vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod)
    There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

    There is another theory which states that this has already happened...

  3. #3
    Intern Newbie
    Join Date
    Apr 2004
    Posts
    45

    Re: textureCube

    .. this is what i found .. and i'm trying it this way .. but .. surprisingly it don't work .. so i'm interested in how it works in detail .. normally the access to a cube map is by using a 3d vector .. depending on the main axis it's possible to look up in a normal 2d texture .. this is how i understood all the stuff .. so what i'm doing in my implementation is loading a normal 2d image of an sliced cube .. create a texture object .. unit .. all the normal gl stuff and set the uniform samplerCube .. the question in detail is .. to the texCube() gllang funktion really take the 3d vector calculate the coresponding 2d coordinates in an normal texture .. or have i to use an cube texture in my opengl code .. catchword: EXT_texture_cube_map ..

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Jan 2001
    Location
    NVIDIA, Austin, TX
    Posts
    555

    Re: textureCube

    Yes, you need to use a cubemap texture.

Posting Permissions

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