jme2 obj model invisible?

Hi,

I'm trying to load an obj model and for some reason it loads, but it is invisible.

Any ideas on what is wrong?

some code:

converter.convert(model.openStream(), str);
                object = (Spatial) BinaryImporter.getInstance().load(
                    new ByteArrayInputStream(str.toByteArray()));
                object.setModelBound(new BoundingSphere());
                object.updateModelBound();
                object.setLocalScale(scale);
                float[] angles = {xRotation,yRotation,0};
                object.getLocalRotation().fromAngles(angles);
                object.updateRenderState();
                object.updateWorldBound();
                attachChild(object);


and screenshot:
http://img37.imageshack.us/img37/3166/invisibleu.png

Have you checked the normals on your model?  If backface culling is off, then you wouldn't see the model if the normals were inverted.  You can also try stepping through the Node and setting a solid color for each of the TriMeshes to see that the actual geometry is loading.

Thanks for your reply! It was just a careless mistake. the node I was attaching my model to was not attached to the rootnode.