i’m beginner in JME. i’m confused to load 3ds model after i’m downloading from this link…
original site:
http://www.3delicious.net/index.php?a=detail&id=32747
download link:
http://storage3d.com/storage/2010.07/67e88de97133151f480a004d3ae35750.zip
with the code below. I get an error saying
Dec 9, 2010 11:00:55 PM com.jme.math.Vector3f subtractLocal
WARNING: Provided vector is null, null returned…
whether this error can be resolved or not? if you know please help me, thank you
[java]
node = null;
try{
MaxToJme model = new MaxToJme();
ByteArrayOutputStream BO = new ByteArrayOutputStream();
URL maxFile = Load3DandTerrain.class.getClassLoader().getResource(“MY_TUTORIAL_USING_JME_3_2/Women N010710.3DS”);
model.convert(new BufferedInputStream(maxFile.openStream()),BO);
node = (Node)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
Quaternion temp = new Quaternion();
temp.fromAngleAxis(FastMath.PI / 2, new Vector3f(-1, 0, 0));
node.setLocalTranslation(new Vector3f(80.0f,-15,160));
node.setLocalRotation(temp);
node.setLocalScale(.1f);
node.setModelBound(new BoundingBox());
node.updateModelBound();
}catch(Exception e){
logger.throwing(this.getClass().toString(), “Woman()”,e);
}
node.updateRenderState();
rootNode.attachChild(node);[/java]
I could suggest to try loading this model into blender, and then try to export using the Ogre export utility…
thank’s i will trying…