Hello,
As some of you are aware, I have been working on improving Xith3D’s background node capabilities so better SkyBoxes are possible (among other things). This work is finished.
thread ref:
Functional Background Node
Sky generation
I have now created a SkyBox utility class for all to use (BSD Licensed). In due course I will create a tutorial on the subject - but until then you can still use it. It’s actually incredibly simple.
Note: You must be running the latest version of Xith3D. I have created a new snapshot here for your convenience: http://xith.org/download/builds/2004-09-02_cvs/
First, download the code: SkyBox.java
To create a SkyBox, use this code:
SkyBox s = new SkyBox("skybox-front.jpg", "skybox-right", "skybox-back.jpg", "skybox-left.jpg", "skybox-top.jpg", "skybox-bottom.jpg");
SkyBox extends Background - so once created, simply add it to your scene (e.g. add it to a BranchGroup).
Add the skybox textures to your TextureLoader path and you’re done.
All you really need to do is create some nice textures to use. One great tool for this is Terragen. I followed the terragen part of this tutorial: http://www.delphigl.de/tutorials/skybox.html for the sample images. Basically you set the camera up so it has a 90 degree FOV (zoom of 1 in “Camera Settings”), and render images at (0,0,0), (90,0,0), (180,0,0), (270,0,0), (0,90,0), (0,-90,0).
Here are the sample textures, and my terragen World and Terrain files that I made for the tute (which took ~5min to create).
As you can see, adding a SkyBox to your project is now very easy. All you need is some nice textures and a project to add it too. I plan on writing a tutorial with an example project, but until then, if you don’t have a working project - just edit one of the demos.
This is a picture of the SkyBox in my game:
Enjoy,
Will.

I just wanted a really basic example for the tute.