PDA

View Full Version : Cube Mapping textures are flipped



d_christop
10-07-2005, 12:56 AM
Hi,
Can anyone explain to me why ehwn using the ARB_texture_cube_map extension to cube map an object the images that should be provided have to flipped?

Thank you
Dimi

Zulfiqar Malik
10-07-2005, 08:38 AM
Maybe you should try to read in detail how cube maps are actually created. Imagine a cube with x, y and z axes pointing in some direction with their origin being the center of the cube. Now project these axes on each side of the cube and "unwrap" the cube, you will get the idea why textures need to be flipped. Alternatively you can just look at some article that shows an "un-wrapped" cube with axes vectors on each unwrapped face, and you'll get the idea :) .