The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

cube map textures.

I am having some issues with cube map textures. Could you please help me in solving this out.

1) when I call glCopyTexSubImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i ,0,0,0,0,0,128,12, I am expecting half of each surface of cube texture replaces with the subtexture(from the framebuffer). where my originol texture array is 256x256 of size. If I call file_glCopyTexSubImage2D(GL_TEXTURE_CUBE_MAP_POSIT IVE_X + i ,0,0,0,0,0,256,256), the whole cube is replaced with the subtexture. I am not able to see old texture. which is correct behaviour I think.

Could you please tell me why it is like this? I am not ablr to change half of the cube map texture.

2) When I call glCompressedTexImage2D() or glcompressedtexsubimage2d for cubemap. I am expecting whole complete compressed Image data on each surface of cube. but It just using half of or part of compressed texture for rendering whole surface of cube.
I mean my compressed image is having scene with sky and trees, than on cube I am just getting sky only.... no trees.