The SkyBox wizard is handy if you need a sky in a .j3o
file. But of course you can also procedurally create your SkyBox in Java code, using the jMonkeyEngine's com.jme3.util.SkyFactory
package.
Comment out the
assetManager
line that loads themySky.j3o
model.//Spatial mySky = assetManager.loadModel("Scenes/mySky.j3o");
Replace it by the following code that loads the six images:
Texture west = assetManager.loadTexture( "Textures/Sky/Lagoon/lagoon_west.jpg"); Texture east = assetManager.loadTexture( "Textures/Sky/Lagoon/lagoon_east.jpg"); Texture north = assetManager.loadTexture( "Textures/Sky/Lagoon/lagoon_north.jpg"); Texture south = assetManager.loadTexture( "Textures/Sky/Lagoon/lagoon_south.jpg"); Texture up = assetManager.loadTexture( "Textures/Sky/Lagoon/lagoon_up.jpg"); Texture down = assetManager.loadTexture( "Textures/Sky/Lagoon/lagoon_down.jpg");
Use the
createSky()
method ofSkyFactory
to create the spatial...