Hi, I hardly venture out of the game engine forums anymore, but I’ve been trying to start up a few things to simplify the process of creating games in blender. One is the creation of the mudane skybox. Basically the procedure is very easy, generate all 6 pictures for sides of a skybox cube all in terragen. Load all those pictures and map it onto the corresponding sides of the cube, invert the normals to the cube and viloa.
However, doing all this manually takes time and it’s a nuisance to do it all the time for each different skybox.
Here’s my question. I’m entirely new to this side of python scripting outside of the GE.
- Is it possible to load all 6 skybox textures generated in terragen to blender?
- Map each texture to each of the corresponding 6 faces of the cube?
- Further, define the dimensions of the picture (say a 512x512 picture), remap the vertices of the cube in the UV window to just points ([1,1],[1,511],[511,511],[511,1]). This is because when doing a skybox for the GE, it has really bad seams unless I manipulate the UV points in this way.
- Invert the normals of the faces of the cube, inwardsWell if someone already has written a script like this, :)perfect. If not, can someone please point me in the right direction? Thank you.
Thanks to the help from #blendercoders, I was able to put the stuff together. You can find it here, http://blender3dtutor.com/modules/smartsection/item.php?itemid=10.
Note: You have to download the divX plugin to see the video tutorial though.