Where is the material loaded by loadModel()?

Dear all,

I use the loadModel to load some *.obj model
and it can be loaded and imported to my game was successfully, but i want to modify some model’s material during run time.

but i don’t know how to obtain its material in jmonkey?
is there any function to do this?

Thanks a lot…

Load it in the SDK. Generate a material from the object’s property panel.

Every geometry in your model has a material which you can modify using geometry.setMaterial(newMaterial);

Its one of the “hello” tutorials btw, theres also a 40 minute video on materials in the sidebar to the right.