In this tutorial we add a sky box to an outdoor scene.
DOWNLOAD THE DEMO AND SOURCE CODE
Sky boxes are used to surround a 3D scene with a distant vista. The camera can never reach the edge of the sky box, making it look like it is infinitely far away. Sky boxes are used to give the “sky” in a 3D scene a nice appearance, rather than being a solid colour or having to enclose a world with solid walls.
Sky boxes are made up of 6 textures. The Irrlicht SDK comes with some sample sky box textures, or you can make your own with programs like Terragen. Hazel Whorley has created a number of beautiful sky box textures with Terragen, which you can download from her site.
Adding a sky box to an Irrlicht 3D scene is very easy. To demonstrate we will add a sky box to the terrain that was created in a previous tutorial that can be found here.
The ISceneManager addSkyBoxSceneNode function takes 6 parameters, one texture for each side of the cube that makes up a sky box.
ENGINEMANAGER.GetSceneManager()->addSkyBoxSceneNode(
ENGINEMANAGER.GetVideoDriver()->getTexture ("../../media/up.jpg"),
ENGINEMANAGER.GetVideoDriver()->getTexture ( "../../media/down.jpg" ),
ENGINEMANAGER.GetVideoDriver()->getTexture ("../../media/west.jpg"),
ENGINEMANAGER.GetVideoDriver()->getTexture ("../../media/east.jpg"),
ENGINEMANAGER.GetVideoDriver()->getTexture ("../../media/north.jpg"),
ENGINEMANAGER.GetVideoDriver()->getTexture ("../../media/south.jpg"));
And that’s it. With that one function call you have added a sky box to the scene. As you can see a good looking skybox can add a huge amount of depth to a scene.
In addition to the sky box textures on Hazel Whorelys site, a Google image search for sky box will also pull up a few nice textures that you can use.

Get Up to Programming Speed With Online Tutorials...
Here is a look at some great free frameworks to get started developing themes for WordPress....
The concept of software development isn't that new to our generation. But still there are so ma...
In my humble opinion, CMS Drupal has come the most close to the concept of "ideal CMS". A lot o...
Setting up WiFi services for a large event can be difficult...
In this tutorial we add mouse interactivity to the scene....
In this tutorial we allow the view of the isometric scene to be moved with the mouse....
In this tutorial we show the height of an isometric object by adding a shadow....
In this tutorial we modify the appearance of the isometric cube at runtime....
In this tutorial we add some animated isometric boxes to the scene....