LOD level is not set on this mesh


I have been experiencing alot of trouble with importing a animation from 3ds max to jmonkey, everytime i try to import it i get the error message “LOD level is not set on this mesh” i been troubleshooting for hours in and hours out with no luck.

i have follow this tutorial to the point and i still no go: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:external:3dsmax

i have also been reading other posts on the forum, and its been mention alot of time to use something called “Ogre XML Converter” but i dont know how it install it…
in other posts its been said to right click on the ogre mesh.xml and select “advanced import” so i can add LOD but i dont get that option to select “advanced import” so is there anyone out there that can please help with this problem? would really appriciate it. Thanks :slight_smile:

When does it crash? when you import the model or when you run the tutorial code?
You can try to use the LodGenerator in code, to generate the lod levels yourself.

Thanks for the reply, its when i try to run the tutorial code, you got any tips on how use the LodGenerator in code?

LodGenerator lodGenerator = new LodGenerator(geometry);          
lodGenerator.bakeLods(LodGenerator.TriangleReductionMethod.PROPORTIONAL, 0.1f, 0.2f,0.5f);//3 levels , 10% reduction on 1st levels, 20% on second, 50% on third.

then just go geometrie.setLodLevel(<1, 2 or 3>).
lod level 0 is the complete mesh.

Hello nehon, thanks for the reply again, i dont get this far in the prosess, because im now having problems with import my model, posted a new post on it, it can be found here if you have any tips.


Heh, funny that I was precisely looking at the same answer today, because I was trying a tutorial and it crashed :stuck_out_tongue: with: java.lang.IllegalStateException: LOD levels are not set on this mesh

Thx Rémy for the answer.