How to correctly show the material of obj file?

I tried to use

As I don't know exactly how you are loading the obj file, can't really offer any advice other then to look at the test class: jmetest.renderer.loader.TestObjJmeWrite (That loads a obj and mtl

jME3 doesn't support loading MTL files right now for OBJ. I recommend using OgreXML since it's the best supported format.

monkey_scratches_head wrote:
That loads a obj and mtl
monkey_scratches_head said:

Sorry, my bad. The example I gave was for jME2 (I'm still very much living in the past :()

Jme2 is not yet the past, but jme3 is the future ;)
Momoko_Fan said:

jME3 doesn't support loading MTL files right now for OBJ. I recommend using OgreXML since it's the best supported format.

Thank you for having answered my question. I used the 3DMAX Ogre tool and correctly exported the Scene file as I thought. And then I used the codes below to import, and Jme3 didn