public class MultiTerrainLodControl extends TerrainLodControl
An extension of the TerrainLodControl that handles multiple terrains at once. This is to be used if you have your own tiling/paging terrain system, such as TerrainGrid.
Nested Class SummaryModifier and TypeClassDescription
protected classOverrides the parent UpdateLOD runnable to process multiple terrains.
Fields inherited from class com.jme3.terrain.geomipmap.TerrainLodControl
camera, cameraLocations, cameras, forceUpdate, hasResetLod, indexer, lastCameraLocations, lodCalcRunning, lodCalculator, previousCameraLocation, terrain, useRenderCamera
Method SummaryModifier and TypeMethodDescription
voidAdd a terrain that will have its LOD handled by this control.
voidAdd a terrain that will no longer have its LOD handled by this control.
Methods inherited from class com.jme3.terrain.geomipmap.TerrainLodControl
cloneFields, controlRender, controlUpdate, detachAndCleanUpControl, forceUpdate, getLodCalculator, isUseRenderCamera, jmeClone, read, setCamera, setCameras, setEnabled, setLodCalculator, setSpatial, setTerrain, setUseRenderCamera, updateLOD, updateLOD, updateLodOffCount, write
Methods inherited from class com.jme3.scene.control.AbstractControl
cloneForSpatial, getSpatial, isEnabled, render, update
makeLodCalculatorprotected DistanceLodCalculator makeLodCalculator()
addTerrainpublic void addTerrain
(TerrainQuad tq)Add a terrain that will have its LOD handled by this control. It will be added next update run. You should only call this from the render thread.
removeTerrainpublic void removeTerrain
(TerrainQuad tq)Add a terrain that will no longer have its LOD handled by this control. It will be removed next update run. You should only call this from the render thread.
createLodUpdateTaskprotected TerrainLodControl.UpdateLOD createLodUpdateTask
(List<Vector3f> locations, LodCalculator lodCalculator)
prepareTerrainprotected void prepareTerrain()