Hey, I tried to import a 3D-model exported with OgreMax out of Autodesk 3d MAX.
When I load the model it looks as it should. When I play an animation it messes up everything, which looks like this:
I followed this tutorial to export the OgreXML file.
Make sure the rotations and locations of your models parts are “applied” to the parts so that theres no local translations or rotations. Idk how that works in 3ds.
Have you tried adding skeleton debugger to make bones visible? that way you can make an idea about bone’s position.
[java]
// add a skeleton debugger to make bones visible
final Skeleton skel = ac.getSkeleton();
final SkeletonDebugger skeletonDebug = new SkeletonDebugger(“skeleton”,
skel);
final Material mat = new Material(assetManager,
“Common/MatDefs/Misc/Unshaded.j3md”);
mat.setColor(“Color”, ColorRGBA.Green);
mat.getAdditionalRenderState().setDepthTest(false);
skeletonDebug.setMaterial(mat);
((Node) ac.getSpatial()).attachChild(skeletonDebug);
[/java]
First of all. I have never tried to import 3d max models into jme but please, take into account the following:
From your image, I guess the model is on the middle of an animation. Take a look on if the skeleton’s position on stand pose (without playing an animation) looks similar to your 3d model’s bones position on 3d max.
When you are importing 3d models form blender you need to follow several tips in order to avoid having 3d model weird deformation issues (same issues as your are having). Check the following:
Apply Location, Rotation and Scale to the mesh
Apply Location, Rotation and Scale to the armature
Set the mesh’s origin point in the bottom of the mesh
Set the armature’s origin point in the bottom of the armature
Armature’s origin point and mesh’s origin point must be in the same location
Use a root bone located in the armature’s origin. This root bone must be in vertical position (see the image below) and it is the root bone of the armature. If you rotate the root bone, the the entire armature might be rotate when you import the model into jMonkey
Here you have a better description for those tips.