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).
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:
- Take six matching square snapshots ...
Get jMonkeyEngine 3.0 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.