SEVERE: missing indices on geometry object: arm2Mesh000 (com.jmex.model.ogrexml.anim.OgreMesh)

Hello,



I made a model in multiple parts because it is a robotic arm and when I animate I need it not to be deformed.

So I have a scene with those parts in it.

The model loads without andy problem, but when I try to animate it (animation made into blender directly), the pieces that should be animated are gone and this error is poping every 2 sec in the console :




SEVERE: missing indices on geometry object: arm2Mesh000 (com.jmex.model.ogrexml.anim.OgreMesh)


My code :
package java3d;

import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;

import com.jme.app.SimpleGame;
import com.jme.input.KeyInput;
import com.jme.math.FastMath;
import com.jme.math.Quaternion;
import com.jme.math.Vector3f;
import com.jme.scene.Node;
import com.jme.util.resource.ResourceLocatorTool;
import com.jme.util.resource.SimpleResourceLocator;
import com.jmex.model.ogrexml.MaterialLoader;
import com.jmex.model.ogrexml.MeshCloner;
import com.jmex.model.ogrexml.OgreLoader;
import com.jmex.model.ogrexml.SceneLoader;
import com.jmex.model.ogrexml.anim.Bone;
import com.jmex.model.ogrexml.anim.MeshAnimationController;
import com.jmex.model.ogrexml.anim.MeshLodController;

public class TestAnimArm extends SimpleGame
{
private Node sceneNode;

MaterialLoader matLoader = new MaterialLoader();
OgreLoader loader = new OgreLoader();
private Bone baseBone;
private float angle = 0f;
private float angleVel = 0f;
private Node ogM;

@Override
protected void simpleInitGame()
{
try
{
// set the path to the textures
ResourceLocatorTool.addResourceLocator(
ResourceLocatorTool.TYPE_TEXTURE,
new SimpleResourceLocator(TestAnimArm.class
.getClassLoader().getResource(
"java3d/res/")));
// set the path to the models
ResourceLocatorTool.addResourceLocator(
ResourceLocatorTool.TYPE_MODEL,
new SimpleResourceLocator(TestAnimArm.class
.getClassLoader().getResource(
"java3d/res/")));
}
catch (URISyntaxException e1)
{
e1.printStackTrace();
}
SceneLoader scene = new SceneLoader();
try
{
// specify here the Scene-File
URL sceneURL = TestAnimArm.class.getClassLoader().getResource("java3d/res/Scene.xml");
URL matURL = TestAnimArm.class.getClassLoader().getResource("java3d/res/Scene.material");
scene.load(sceneURL.openStream());
sceneNode = (Node)scene.getScene();
rootNode.attachChild(sceneNode);
// go down the Node-Path to the Mesh where the AnimationController is attached
ogM = (Node)sceneNode.getChild("arm2");
}
catch (Exception e)
{
e.printStackTrace();
}
if (ogM.getControllerCount() < 1)
throw new IllegalStateException(
"Animations are missing");
MeshAnimationController animControl =
(MeshAnimationController) ogM.getController(0);
animControl.setAnimation("Action");
animControl.setTime(animControl.getAnimationLength("Action")
* FastMath.nextRandomFloat());
ogM.addController(new MeshLodController((animControl)));

Bone b = animControl.getBone("arm2");
Node attachNode = b.getAttachmentsNode();
ogM.attachChild(attachNode);
}

public static void main(String[] args)
{
new TestAnimArm().start();
}
}


Can you help me ?

Best regards,

rXp