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