O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing Skybox with seamless cube mapping

Cube mapping is a texturing technique used in 3D graphics to fill the background of a scene with a given set of images. This technique reduces the number of objects required to draw a scene in order to make the scene look populated (the scene looks bigger). It is commonly used in gaming to render sky horizons, rooms, mountains, day/night effect, reflection, and refraction.

A cube map is achieved by wrapping six sets of images on six faces of the cube; these images perfectly stitch with each other on the edges. In the cube mapping technique, the viewer or camera is always in the center of the cube. When camera displaces in the 3D space, the cubes are also displaced with respect to it. This way, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required