fpp.addFilter(bloom);
viewPort.addProcessor(fpp);
// Skybox
rootNode.attachChild(SkyBoxFactory.createSimpleSkyBox(assetManager));
Spatial tree = assetManager.loadModel("stuff/trees/fir/Tree.mesh.xml");
tree.scale(0.05f, 0.05f, 0.05f);
rootNode.attachChild(tree);
Spatial leaves = assetManager
.loadModel("stuff/trees/fir/Leaves.mesh.xml");
leaves.scale(0.05f, 0.05f, 0.05f);
rootNode.attachChild(leaves);
Spatial sign = assetManager.loadModel("stuff/signs/Sign.mesh.xml");
sign.setLocalTranslation(0.3f, 0.1f, 0f);
// Spatial tree =
// assetManager.loadModel("stuff/trees/fir/Tree.mesh.xml");
// tree.scale(0.05f, 0.05f, 0.05f);
// rootNode.attachChild(tree);
//
// Spatial leaves =
// assetManager.loadModel("stuff/trees/fir/Leaves.mesh.xml");
// leaves.scale(0.05f, 0.05f, 0.05f);
// rootNode.attachChild(leaves);
//
// Spatial sign = assetManager.loadModel("stuff/signs/Sign.mesh.xml");
// sign.setLocalTranslation(0.3f, 0.1f, 0f);
// Material mat_asteroid = new Material(assetManager,
// "Common/MatDefs/Misc/Unshaded.j3md");
// mat_asteroid.setTexture("ColorMap",
// assetManager.loadTexture("stuff/signs/sign.jpg"));
// sign.setMaterial(mat_asteroid);
// sign.scale(0.02f, 0.02f, 0.02f);
//
// rootNode.attachChild(sign);
//
Node ship = new Node("Carrier");
Spatial cube = assetManager
.loadModel("spaceobject/station/platform/Platform.mesh.xml");
Material mat_asteroid = new Material(assetManager,
"Common/MatDefs/Light/Lighting.j3md");
mat_asteroid.setTexture("DiffuseMap", assetManager
.loadTexture("spaceobject/station/platform/hull.jpg"));
cube.setMaterial(mat_asteroid);
ship.attachChild(cube);
Spatial wall = assetManager
.loadModel("spaceobject/station/platform/Towers.mesh.xml");
Material mat_wall = new Material(assetManager,
"Common/MatDefs/Light/Lighting.j3md");
mat_wall.setTexture("DiffuseMap", assetManager
.loadTexture("spaceobject/station/platform/city2.jpg"));
mat_wall.setTexture("GlowMap", assetManager
.loadTexture("spaceobject/station/platform/city2_glow.jpg"));
wall.setMaterial(mat_wall);
ship.attachChild(wall);
// Spatial flight =
// assetManager.loadModel("spaceobject/station/cube/Flight.mesh.xml");
// flight.setMaterial(mat_wall);