AreaCLodMesh?! Display over 100 models

Hey guys!



I have two questions for you. First my situation:

I would display more than 100 Models at the same time. Works without problems. My problem is situated in the fact that the FPS number is very low. If I add the models to a PhysicalsNode the systems break down. I’ve tried the Hello-Lod tutorial for jME2, but it seems, there is no AreaCLodMesh in jME3. Any proposals?



Need help xD



Thanks,



final

“LOD levels are not set on this mesh”… YOu can apply LOD using the advanced OgreXML import in jMP.

In every better ogre exporter you can set the amount of levels you want to have.



However if the physiccalculation is the problem, you should use modles with less detail (or better primitives) for that as the clod wouldn’t help there anyway

What do the statistics say (bottom-left of the screen)? Is there a lot of triangles or objects? Could you perhaps provide a screenshot of the scene with the low fps?



I added with "Advanced JME Binary convert..." 5 LOD-Leves to the Oto-model. Works fine but:
[java]
model = (Node) manager.loadModel("Models/Oto/Oto.mesh.j3o");
lodModel[M_OTO] = (Geometry) model.getChild(0);

model = Toolset.lodModel[Toolset.M_OTO].clone();
model.setLocalScale(0.5f);
attachChild(model);
setLocalTranslation(position);
LodControl control = new LodControl(model);
addControl(control);
[/java]

With this code the program break down, when I look to the place where the Oto-models stand.
Error:

SCHWERWIEGEND: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalStateException: LOD levels are not set on this mesh
at com.jme3.scene.Geometry.setLodLevel(Geometry.java:112)
at com.jme3.scene.Node.setLodLevel(Node.java:491)
at com.jme3.scene.control.LodControl.controlRender(LodControl.java:118)
at com.jme3.scene.control.AbstractControl.render(AbstractControl.java:95)
at com.jme3.scene.Spatial.runControlRender(Spatial.java:497)
at com.jme3.renderer.RenderManager.renderScene(RenderManager.java:467)
at com.jme3.renderer.RenderManager.renderScene(RenderManager.java:473)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:658)
at com.jme3.renderer.RenderManager.render(RenderManager.java:687)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:216)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:144)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:133)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:198)
at java.lang.Thread.run(Thread.java:637)


Help me xD
added with “Advanced JME Binary convert…” 5 LOD-Leves to the Oto-model. Works fine but:

Hello,



I’m using an animated character model which is in OgreXML format.

As I’m using a lot of objects of this type, I need LOD.

I added 5 LOD using the “advanced JME binary convert” in the JMP.

But like “dennis-scharf”, I have the error “java.lang.IllegalStateException: LOD levels are not set on this mesh” when adding the “LodControl”



[java]

Node model = (Node) engine.getAssetManager().loadModel(“Models/human/test.j3o”);

Geometry geometry = (Geometry) model.getChild(0);



// Enable LOD

LodControl lodControl = new LodControl();

geometry.addControl(lodControl);

[/java]



Any idea ? How can I be sure that my test.j3o contain the 5 LOD ?