Hello
as i load a mesh from blender (simple icosphere with uvmap and default blender shaded material + texture uv map)
i got a nice specular appearing
but, if i use a user defined material , the specular is gone
althought parameters are setup
Material My Material : Common/MatDefs/Light/Lighting.j3md {
MaterialParameters {
Shininess : 10.5
Specular : 1.0 1.0 1.0 1.0
DiffuseMap : Flip Textures/mire.png
}
}
[java]
test = assetManager.loadModel(“Models/Test.j3o”);
rootNode.attachChild(test);
//-------- below i added these 4 lines of code to assign my material to the object
//-------- if i remove these lines, it uses original blender material that works
Node n=(Node) ((Node)test).getChild(0);
Geometry geo=(Geometry) n.getChild(0);
geo.setMaterial(assetManager.loadMaterial(“Materials/newMaterial.j3m”));
[/java]
and i use the same diffuse texture that i used to uv map my mesh in blender
what do i miss ?