Tutorial beginners>>hello_terrain, LOD

Hey

I’m new to jME, but when I tried the beginners tutorials, I already ran into trouble. This piece of code:



TerrainLodControl control = new TerrainLodControl(terrain, getCamera());

control.setLodCalculator( new DistanceLodCalculator(patchSize, 2.7f) ); // patch size, and a multiplier

terrain.addControl(control);



gives me this error:



no suitable constructor found for TerrainLodControl(com.jme3.terrain.geomipmap.TerrainQuad,com.jme3.renderer.Camera)

constructor com.jme3.terrain.geomipmap.TerrainLodControl.TerrainLodControl(com.jme3.terrain.Terrain,java.util.List<com.jme3.renderer.Camera>) is not applicable

(actual argument com.jme3.renderer.Camera cannot be converted to java.util.List<com.jme3.renderer.Camera> by method invocation conversion)

constructor com.jme3.terrain.geomipmap.TerrainLodControl.TerrainLodControl() is not applicable

(actual and formal argument lists differ in length)



Do you know why, and how to fix this?

yeh you need to update to nightly version, in jmp go to:

tools > plugins > settings > update to nightly version

And a lot more needs updating… Hey, it works! Ty