Time for action – nothing but blue sky

The following image shows a simple example of six images that make up a game's background panorama: you see the top (blue sky), the bottom (the ground), and four sides (a snow-covered mountain at the horizon).

Time for action – nothing but blue sky

The trick with skies is that you project these six textures onto the insides of a gigantic cube that encompasses your whole scene. This popular approach of faking a background is called environment mapping. When we use a six-image CubeMap to simulate a sky, we refer to the box as SkyBox.

You can create your own SkyBox from a vacation photo or poster in a graphic editor:

  1. Take six matching square snapshots ...

Get jMonkeyEngine 3.0 Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.