I downloaded this obj model http://www.turbosquid.com/FullPreview/Index.cfm/ID/548107, the problem with this model is that it shows up in gray color not its original color. I downloaded the texture and normal files, they are in .bmp format. But i’m not sure how to apply it.
i would really appreciate if someone could show me how to add the .bmp texture images to the helicopter.
Code i used to load the model
Spatial gameLevel = assetManager.loadModel("Scenes/town/main.scene"); gameLevel.setLocalTranslation(0, -5.2f, 0); gameLevel.setLocalScale(2); rootNode.attachChild(gameLevel); Spatial teapot = assetManager.loadModel("Models/ApacheOBJ.j3o"); Material mat_default = new Material(assetManager, "Common/MatDefs/Misc/ShowNormals.j3md"); teapot.setMaterial(mat_default); rootNode.attachChild(teapot); // You must add a light to make the model visible DirectionalLight sun = new DirectionalLight(); sun.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f)); rootNode.addLight(sun); }</div>