O'Reilly logo

jMonkeyEngine 3.0 Beginner's Guide by Ruth Kusterer

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

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 ...

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