Tutorial Help

I’m working on the tutorial, and I’m on the HelloTerrain part. I copied the code, and threw it into the JMP and I get an error out of the box.



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)



Just using the code from this page https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_terrain



Anyone else running into this issue?



Thanks,

~Jeremy

a few people have had the exact same problem now, you need to update to the nightly version, which can be found in jmp:

tools > plugins > settings > update to nightly

Ok, I just had a chance to do this, and now I get a new error:

com.jme3.asset.AssetNotFoundException: Textures/Terrain/splat/alphamap.png (Flipped) (Mipmaped)



I know what that error means, but I’m not sure if this image was replaced by something else in the latest nightly build or what…



Now, I’m actually working on this 2 fold. In the JMP I get that error, but in the JRuby version I’m working on, I get a different error. Both are using the latest nightly build. The JRuby version throws an exception error on the line:



control.setLodCalculator(new DistanceLodCalculator(patch_size, 2.7))



SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.NullPointerException

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:230)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:124)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:200)



If I comment out that line, everything else works just fine.