String southURI,
String eastURI,
String westURI,
String upURI,
String downURI) {
Skybox skybox = new Skybox("skybox", 1000, 1000, 1000);
try {
// Vector3f position = null;
// Cell cell = ClientContextJME.getViewManager().getPrimaryViewCell();
//
//
// CellTransform transform = cell.getLocalTransform();//getLocalCellTransform();
// position = transform.getTranslation(null);
//
// //Unsure if we do this for the skybox or for the entire environment cell.
// //Let's do it for the skybox for now, and decide later.
// skybox.setLocalTranslation(position);
LOGGER.fine("Acquiring URLs");
final URL northURL = AssetUtils.getAssetURL(northURI);
final URL southURL = AssetUtils.getAssetURL(southURI);
final URL eastURL = AssetUtils.getAssetURL(eastURI);
final URL westURL = AssetUtils.getAssetURL(westURI);
final URL downURL = AssetUtils.getAssetURL(downURI);
final URL upURL = AssetUtils.getAssetURL(upURI);
LOGGER.fine("URLs acquired. Building textures.");
Texture north = TextureManager.loadTexture(northURL, Texture.MinificationFilter.BilinearNearestMipMap, Texture.MagnificationFilter.Bilinear);
Texture south = TextureManager.loadTexture(southURL, Texture.MinificationFilter.BilinearNearestMipMap, Texture.MagnificationFilter.Bilinear);
Texture east = TextureManager.loadTexture(eastURL, Texture.MinificationFilter.BilinearNearestMipMap, Texture.MagnificationFilter.Bilinear);
Texture west = TextureManager.loadTexture(westURL, Texture.MinificationFilter.BilinearNearestMipMap, Texture.MagnificationFilter.Bilinear);
Texture up = TextureManager.loadTexture(upURL, Texture.MinificationFilter.BilinearNearestMipMap, Texture.MagnificationFilter.Bilinear);
Texture down = TextureManager.loadTexture(downURL, Texture.MinificationFilter.BilinearNearestMipMap, Texture.MagnificationFilter.Bilinear);
LOGGER.fine("Textures built. Setting fields.");
skybox.setTexture(Skybox.Face.North, north);
skybox.setTexture(Skybox.Face.West, west);
skybox.setTexture(Skybox.Face.South, south);
skybox.setTexture(Skybox.Face.East, east);
skybox.setTexture(Skybox.Face.Up, up);
skybox.setTexture(Skybox.Face.Down, down);
LOGGER.fine("Fields set. Skybox finished.");
} catch (MalformedURLException ex) {
Logger.getLogger(SkyboxEditor.class.getName()).log(Level.SEVERE, null, ex);