3 | | This tutorial will show you how to create a simple Skybox for Orxonox. You will mainly use Blender for creating the actual Skybox and a small script for integrating it into Orxonox. First, please download [http://www.orxonox.net/attachment/wiki/SkyboxCreation/skybox.blend?format=raw skybox.blend] and [http://www.orxonox.net/attachment/wiki/SkyboxCreation/rename.sh?format=raw rename.sh] that are attached to this page. |
| 3 | This tutorial will show you how to create a simple Skybox for Orxonox. You will mainly use Blender for creating the actual Skybox and a small shell script for integrating it into Orxonox. You will probably need to run Linux for that. First, please download [http://www.orxonox.net/attachment/wiki/SkyboxCreation/skybox.blend?format=raw skybox.blend], [http://www.orxonox.net/attachment/wiki/SkyboxCreation/venusmap3.jpg?format=raw venusmap3.jpg], |
| 4 | [http://www.orxonox.net/attachment/wiki/SkyboxCreation/venusbump2.jpg?format=raw venusbump2.jpg] and [http://www.orxonox.net/attachment/wiki/SkyboxCreation/rename.sh?format=raw rename.sh] that are attached to this page. Put them all in the same folder. This is important, since the paths to the textures are stored in the .blend file. Otherwise, you will probably not see any textures in the sample scene. |
5 | | || Open the file skybox.blend with Blender. In this Blender scene, you can create your Skybox. Later, the Skybox will look as if you were sitting in the origin of the Blender scene. You can see the camera at the origin now already. Feel free to create planets, suns or whatever entities you would like. A basic star background will be rendered automatically. [[BR]][[BR]] Make sure ypu don't touch the camera or its animation.||[[Image(camera.png)]]|| |
6 | | || ||[[Image(output.png)]]|| |
7 | | || ||[[Image(anim.png)]]|| |
| 6 | || Open the sample scene skybox.blend with Blender. In this Blender scene, you can create your Skybox. Later, the Skybox will look as if you were sitting in the origin of the Blender scene. You can see the camera at the origin now already. Feel free to create planets, suns or whatever entities you would like. A basic star background will be rendered automatically. [[BR]][[BR]] Make sure you don't touch the camera or its animation.||[[Image(camera.png)]]|| |
| 7 | || If your scene is finished, it will be only a few minutes until the skybox is integrated into the game. Press F10 to switch to the Scene menu. Choose an appropriate output folder on the Output tab. In the picture, I chose "box", which is also the default setting in the sample scene.||[[Image(output.png)]]|| |
| 8 | || In the same menu, on the Anim tab, you can click ANIM now. This will render 6 frames and store them in the output directory you selected. In each frame, the camera will render in one of the six directions in 3d-space. These six frames will become the six sides of your Skybox cube. Save your work and quit Blender now.||[[Image(anim.png)]]|| |
| 9 | |
| 10 | Open a shell and cd to the directory, where you saved the 4 files at the beginning. There should be a folder containing the 6 frames you rendered before (0001.jpg-0006.jpg). Run the shell script with the first parameter being the desired name of your Skybox and the second being the name of the folder containing the frames. |