Examples of TerrainLodControl


Examples of com.jme3.terrain.geomipmap.TerrainLodControl

         * Optimal terrain patch size is 65 (64x64).
         * The total size is up to you. At 1025 it ran fine for me (200+FPS), however at
         * size=2049, it got really slow. But that is a jump from 2 million to 8 million triangles...
         */
        terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());//, new LodPerspectiveCalculatorFactory(getCamera(), 4)); // add this in to see it use entropy for LOD calculations
        TerrainLodControl control = new TerrainLodControl(terrain, getCamera());
        terrain.addControl(control);
        terrain.setMaterial(matTerrain);
        terrain.setModelBound(new BoundingBox());
        terrain.updateModelBound();
        terrain.setLocalTranslation(0, -100, 0);
View Full Code Here

Examples of com.jme3.terrain.geomipmap.TerrainLodControl

           * Optimal terrain patch size is 65 (64x64).
           * The total size is up to you. At 1025 it ran fine for me (200+FPS), however at
           * size=2049, it got really slow. But that is a jump from 2 million to 8 million triangles...
           */
          terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
          TerrainLodControl control = new TerrainLodControl(terrain, getCamera());
          control.setLodCalculator( new DistanceLodCalculator(65, 2.7f) ); // patch size, and a multiplier
          terrain.addControl(control);
          terrain.setMaterial(material);
          terrain.setLocalTranslation(0, -100, 0);
          terrain.setLocalScale(2f, 0.5f, 2f);
          rootNode.attachChild(terrain);
View Full Code Here

Examples of com.jme3.terrain.geomipmap.TerrainLodControl

         * Optimal terrain patch size is 65 (64x64).
         * The total size is up to you. At 1025 it ran fine for me (200+FPS), however at
         * size=2049, it got really slow. But that is a jump from 2 million to 8 million triangles...
         */
        terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());//, new LodPerspectiveCalculatorFactory(getCamera(), 4)); // add this in to see it use entropy for LOD calculations
        TerrainLodControl control = new TerrainLodControl(terrain, getCamera());
        terrain.addControl(control);
        terrain.setMaterial(matTerrain);
        terrain.setModelBound(new BoundingBox());
        terrain.updateModelBound();
        terrain.setLocalTranslation(0, -10, 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.