June 2013
Beginner
352 pages
9h 5m
English
The provided assets directory contains the Models/HoverTank/Tank.j3o model.
Tank.j3o and its four textures into a new assets/Models/HoverTank/ directory in your project.Main.java and name the class HoverTank.java. Remember to also refactor the first line of the main() method to HoverTank app = new HoverTank();.simpleInitApp() method with the following:Node tank = (Node) assetManager.loadModel( "Models/HoverTank/Tank.j3o"); Material mat = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"); TextureKey tankDiffuse = new TextureKey("Models/HoverTank/tank_diffuse.jpg", false); mat.setTexture("DiffuseMap", assetManager.loadTexture(tankDiffuse)); ...Read now
Unlock full access