Model not showing in original color

Hi guys



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

Code:
@Override public void simpleInitApp() {
    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>

Cheers

You apply a shownormals material, why? Obviously it will override any material settings. Copy-pasting code is nothing short of dangerous if you don’t know what it does. To know what it does, do the tutorials, they explain it.

Hi normen, i just found out that my model didn’t come with mtl file, is there a way to load the textures without it?

make j3m file and apply it in SceneComposer or in code.


Material mat_default = new Material(assetManager, "Common/MatDefs/Misc/ShowNormals.j3md");


j3md is Material Definition, its wrong!

you need to load j3m files. (j3m files are based on j3md files)