// Get the active camera from the world cam = world.getActiveCamera();
// Create a light Light l = new Light();
// Make sure it's AMBIENT l.setMode(Light.AMBIENT);
// We want a little higher intensity l.setIntensity(3.0f);
// Add it to our world world.addChild(l); }
/** Loads our world */ private void loadWorld() { try { // Loading the world is very simple. Note that I like to use a // res-folder that I keep all files in. If you normally just put your // resources in the project root, then load it from the root. Object3D[] buffer = Loader.load("/res/map.M3G");
// Find the world node, best to do it the "safe" way for(int i = 0; i < buffer.length; i++)