Problem with hello_modelloading and maggie

I

did you call updateRenderState() after attaching maggie  to the rootNode?

Core-Dump said:

did you call updateRenderState() after attaching maggie  to the rootNode?


The error hapends before attaching maggie to the rootNode.
supermanbra said:

Core-Dump said:

did you call updateRenderState() after attaching maggie  to the rootNode?


The error hapends before attaching maggie to the rootNode.


The working version has an error too?
The error hapends before attaching maggie to the rootNode

You mean the ClassCastException error, you fixed that yourself by casting to a spatial instead node, thats correct.

As for the color problem, maybe you didn't set the "mtllib" property when loading the maggie.obj.

see the following link for a working version of the HelloModelLoading example.
http://code.google.com/p/jmonkeyengine/source/browse/trunk/src/jmetest/TutorialGuide/HelloModelLoading.java


In the case of maggie.obj, with the correct mtlib property, the importer will return a Node, without the mtlib property the importer returns a TriMesh.
Core-Dump said:

In the case of maggie.obj, with the correct mtlib property, the importer will return a Node, without the mtlib property the importer returns a TriMesh.

I think that the problem is not loading properly the mtlib property. I will try to work on that. ThankYou!!!