Home
last modified time | relevance | path

Searched refs:terrain (Results 1 – 25 of 88) sorted by relevance

1234

/external/jmonkeyengine/engine/src/test/jme3test/terrain/
DTerrainFractalGridTest.java1 package jme3test.terrain;
9 import com.jme3.terrain.geomipmap.TerrainGrid;
10 import com.jme3.terrain.geomipmap.TerrainLodControl;
11 import com.jme3.terrain.geomipmap.grid.FractalTileLoader;
12 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
13 import com.jme3.terrain.noise.ShaderUtils;
14 import com.jme3.terrain.noise.basis.FilteredBasis;
15 import com.jme3.terrain.noise.filter.IterativeFilter;
16 import com.jme3.terrain.noise.filter.OptimizedErode;
17 import com.jme3.terrain.noise.filter.PerturbFilter;
[all …]
DTerrainTestModifyHeight.java32 package jme3test.terrain;
54 import com.jme3.terrain.geomipmap.TerrainGrid;
55 import com.jme3.terrain.geomipmap.TerrainLodControl;
56 import com.jme3.terrain.geomipmap.TerrainQuad;
57 import com.jme3.terrain.geomipmap.grid.FractalTileLoader;
58 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
59 import com.jme3.terrain.heightmap.AbstractHeightMap;
60 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
61 import com.jme3.terrain.noise.ShaderUtils;
62 import com.jme3.terrain.noise.basis.FilteredBasis;
[all …]
DTerrainGridAlphaMapTest.java1 package jme3test.terrain;
26 import com.jme3.terrain.geomipmap.TerrainGrid;
27 import com.jme3.terrain.geomipmap.TerrainGridListener;
28 import com.jme3.terrain.geomipmap.TerrainLodControl;
29 import com.jme3.terrain.geomipmap.TerrainQuad;
30 import com.jme3.terrain.geomipmap.grid.FractalTileLoader;
31 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
37 import com.jme3.terrain.noise.ShaderUtils;
38 import com.jme3.terrain.noise.basis.FilteredBasis;
39 import com.jme3.terrain.noise.filter.IterativeFilter;
[all …]
DTerrainTest.java32 package jme3test.terrain;
45 import com.jme3.terrain.geomipmap.TerrainLodControl;
46 import com.jme3.terrain.geomipmap.TerrainQuad;
47 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
48 import com.jme3.terrain.heightmap.AbstractHeightMap;
49 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
75 private TerrainQuad terrain; field in TerrainTest
159 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap()); in simpleInitApp()
160 TerrainLodControl control = new TerrainLodControl(terrain, getCamera()); in simpleInitApp()
162 terrain.addControl(control); in simpleInitApp()
[all …]
DTerrainTestReadWrite.java32 package jme3test.terrain;
47 import com.jme3.terrain.Terrain;
48 import com.jme3.terrain.geomipmap.TerrainLodControl;
49 import com.jme3.terrain.geomipmap.TerrainQuad;
50 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
51 import com.jme3.terrain.heightmap.AbstractHeightMap;
52 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
66 private Terrain terrain; field in TerrainTestReadWrite
164 this.terrain = terrainQuad; in createMap()
207 … BinaryExporter.getInstance().save((Savable)terrain, new BufferedOutputStream(fos));
[all …]
DTerrainGridTest.java1 package jme3test.terrain;
19 import com.jme3.terrain.geomipmap.TerrainGrid;
20 import com.jme3.terrain.geomipmap.TerrainGridListener;
21 import com.jme3.terrain.geomipmap.TerrainLodControl;
22 import com.jme3.terrain.geomipmap.TerrainQuad;
23 import com.jme3.terrain.geomipmap.grid.ImageTileLoader;
24 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
25 import com.jme3.terrain.heightmap.Namer;
33 private TerrainGrid terrain; field in TerrainGridTest
98 … this.terrain = new TerrainGrid("terrain", 65, 257, new ImageTileLoader(assetManager, new Namer() { in simpleInitApp()
[all …]
DTerrainGridTileLoaderTest.java1 package jme3test.terrain;
18 import com.jme3.terrain.geomipmap.TerrainGrid;
19 import com.jme3.terrain.geomipmap.TerrainGridListener;
20 import com.jme3.terrain.geomipmap.TerrainLodControl;
21 import com.jme3.terrain.geomipmap.TerrainQuad;
22 import com.jme3.terrain.geomipmap.grid.AssetTileLoader;
23 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
31 private TerrainGrid terrain; field in TerrainGridTileLoaderTest
97 this.terrain = new TerrainGrid("terrain", 65, 257, grid); in simpleInitApp()
99 this.terrain.setMaterial(this.mat_terrain); in simpleInitApp()
[all …]
DTerrainTestCollision.java32 package jme3test.terrain;
59 import com.jme3.terrain.geomipmap.TerrainLodControl;
60 import com.jme3.terrain.geomipmap.TerrainQuad;
61 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
62 import com.jme3.terrain.heightmap.AbstractHeightMap;
63 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
79 TerrainQuad terrain; field in TerrainTestCollision
137 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap()); in simpleInitApp()
138 TerrainLodControl control = new TerrainLodControl(terrain, getCamera()); in simpleInitApp()
140 terrain.addControl(control); in simpleInitApp()
[all …]
DTerrainTestAdvanced.java32 package jme3test.terrain;
47 import com.jme3.terrain.geomipmap.TerrainLodControl;
48 import com.jme3.terrain.geomipmap.TerrainQuad;
49 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
50 import com.jme3.terrain.heightmap.AbstractHeightMap;
51 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
65 private TerrainQuad terrain; field in TerrainTestAdvanced
178terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());//, new LodPerspectiveCalc… in simpleInitApp()
179 TerrainLodControl control = new TerrainLodControl(terrain, getCamera()); in simpleInitApp()
181 terrain.addControl(control); in simpleInitApp()
[all …]
DTerrainGridSerializationTest.java1 package jme3test.terrain;
18 import com.jme3.terrain.geomipmap.TerrainGrid;
19 import com.jme3.terrain.geomipmap.TerrainGridListener;
20 import com.jme3.terrain.geomipmap.TerrainLodControl;
21 import com.jme3.terrain.geomipmap.TerrainQuad;
22 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
27 private TerrainGrid terrain; field in TerrainGridSerializationTest
49 this.terrain= (TerrainGrid) assetManager.loadModel("TerrainGrid/TerrainGrid.j3o"); in simpleInitApp()
51 this.rootNode.attachChild(this.terrain); in simpleInitApp()
53 TerrainLodControl control = new TerrainLodControl(this.terrain, getCamera()); in simpleInitApp()
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DNormalRecalcControl.java32 package com.jme3.terrain.geomipmap;
52 private TerrainQuad terrain; field in NormalRecalcControl
56 public NormalRecalcControl(TerrainQuad terrain) { in NormalRecalcControl() argument
57 this.terrain = terrain; in NormalRecalcControl()
62 terrain.updateNormals(); in controlUpdate()
71 NormalRecalcControl control = new NormalRecalcControl(terrain); in cloneForSpatial()
81 this.terrain = (TerrainQuad)spatial; in setSpatial()
85 return terrain; in getTerrain()
88 public void setTerrain(TerrainQuad terrain) { in setTerrain() argument
89 this.terrain = terrain; in setTerrain()
[all …]
DTerrainLodControl.java32 package com.jme3.terrain.geomipmap;
46 import com.jme3.terrain.Terrain;
47 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
48 import com.jme3.terrain.geomipmap.lodcalc.LodCalculator;
70 private Terrain terrain; field in TerrainLodControl
79 public TerrainLodControl(Terrain terrain, Camera camera) { in TerrainLodControl() argument
82 this.terrain = terrain; in TerrainLodControl()
92 public TerrainLodControl(Terrain terrain, List<Camera> cameras) { in TerrainLodControl() argument
93 this.terrain = terrain; in TerrainLodControl()
129 terrain.update(cameraLocations, lodCalculator); in controlUpdate()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/
DHelloTerrain.java37 import com.jme3.terrain.geomipmap.TerrainLodControl;
38 import com.jme3.terrain.geomipmap.TerrainQuad;
39 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
40 import com.jme3.terrain.heightmap.AbstractHeightMap;
41 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
47 private TerrainQuad terrain; field in HelloTerrain
104 terrain = new TerrainQuad("my terrain", patchSize, 513, heightmap.getHeightMap()); in simpleInitApp()
107 terrain.setMaterial(mat_terrain); in simpleInitApp()
108 terrain.setLocalTranslation(0, -100, 0); in simpleInitApp()
109 terrain.setLocalScale(2f, 1f, 2f); in simpleInitApp()
[all …]
DHelloTerrainCollision.java49 import com.jme3.terrain.geomipmap.TerrainLodControl;
50 import com.jme3.terrain.geomipmap.TerrainQuad;
51 import com.jme3.terrain.heightmap.AbstractHeightMap;
52 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
71 private TerrainQuad terrain; field in HelloTerrainCollision
133 terrain = new TerrainQuad("my terrain", 65, 513, heightmap.getHeightMap()); in simpleInitApp()
136 terrain.setMaterial(mat_terrain); in simpleInitApp()
137 terrain.setLocalTranslation(0, -100, 0); in simpleInitApp()
138 terrain.setLocalScale(2f, 1f, 2f); in simpleInitApp()
139 rootNode.attachChild(terrain); in simpleInitApp()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/light/
DTestSpotLightTerrain.java47 import com.jme3.terrain.geomipmap.TerrainLodControl;
48 import com.jme3.terrain.geomipmap.TerrainQuad;
49 import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
50 import com.jme3.terrain.heightmap.AbstractHeightMap;
51 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
64 private TerrainQuad terrain; field in TestSpotLightTerrain
192terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());//, new LodPerspectiveCalc… in makeTerrain()
193 TerrainLodControl control = new TerrainLodControl(terrain, getCamera()); in makeTerrain()
195 terrain.addControl(control); in makeTerrain()
196 terrain.setMaterial(matTerrain); in makeTerrain()
[all …]
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/util/
DCollisionShapeFactory.java41 import com.jme3.terrain.geomipmap.TerrainPatch;
42 import com.jme3.terrain.geomipmap.TerrainQuad;
88 TerrainQuad terrain = (TerrainQuad) spatial; in createCompoundShape() local
90 … shape.addChildShape(new HeightfieldCollisionShape(terrain.getHeightMap(), trans.getScale()), in createCompoundShape()
100 TerrainPatch terrain = (TerrainPatch) spatial; in createCompoundShape() local
102 …shape.addChildShape(new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale()), in createCompoundShape()
165 TerrainQuad terrain = (TerrainQuad) spatial; in createMeshShape() local
166 return new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale()); in createMeshShape()
168 TerrainPatch terrain = (TerrainPatch) spatial; in createMeshShape() local
169 return new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale()); in createMeshShape()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/
DSimpleLodThreshold.java33 package com.jme3.terrain.geomipmap.lodcalc;
39 import com.jme3.terrain.Terrain;
40 import com.jme3.terrain.geomipmap.TerrainQuad;
61 public SimpleLodThreshold(Terrain terrain) { in SimpleLodThreshold() argument
62 if (terrain instanceof TerrainQuad) in SimpleLodThreshold()
63 this.size = ((TerrainQuad)terrain).getPatchSize(); in SimpleLodThreshold()
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DTestHoveringTank.java60 import com.jme3.terrain.geomipmap.TerrainLodControl;
61 import com.jme3.terrain.geomipmap.TerrainQuad;
62 import com.jme3.terrain.heightmap.AbstractHeightMap;
63 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
76 TerrainQuad terrain; field in TestHoveringTank
284 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap()); in createTerrain()
287 TerrainLodControl control = new TerrainLodControl(terrain, cameras); in createTerrain()
288 terrain.addControl(control); in createTerrain()
289 terrain.setMaterial(matRock); in createTerrain()
290 terrain.setLocalScale(new Vector3f(2, 2, 2)); in createTerrain()
[all …]
DTestWalkingChar.java70 import com.jme3.terrain.geomipmap.TerrainLodControl;
71 import com.jme3.terrain.geomipmap.TerrainQuad;
72 import com.jme3.terrain.heightmap.AbstractHeightMap;
73 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
93 TerrainQuad terrain; field in TestWalkingChar
280 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap()); in createTerrain()
283 TerrainLodControl control = new TerrainLodControl(terrain, cameras); in createTerrain()
284 terrain.addControl(control); in createTerrain()
285 terrain.setMaterial(matRock); in createTerrain()
286 terrain.setLocalScale(new Vector3f(2, 2, 2)); in createTerrain()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/post/
DTestDepthOfField.java18 import com.jme3.terrain.geomipmap.TerrainQuad;
19 import com.jme3.terrain.heightmap.AbstractHeightMap;
20 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
35 TerrainQuad terrain; field in TestDepthOfField
173 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap()); in createTerrain()
176 terrain.setMaterial(matRock); in createTerrain()
177 terrain.setLocalScale(new Vector3f(5, 5, 5)); in createTerrain()
178 terrain.setLocalTranslation(new Vector3f(0, -30, 0)); in createTerrain()
179 terrain.setLocked(false); // unlock it so we can edit the height in createTerrain()
181 terrain.setShadowMode(ShadowMode.Receive); in createTerrain()
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/grid/
DFractalTileLoader.java5 package com.jme3.terrain.geomipmap.grid;
12 import com.jme3.terrain.geomipmap.TerrainGridTileLoader;
13 import com.jme3.terrain.geomipmap.TerrainQuad;
14 import com.jme3.terrain.heightmap.AbstractHeightMap;
15 import com.jme3.terrain.heightmap.HeightMap;
18 import com.jme3.terrain.noise.Basis;
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/fractal/
DFractalSum.java30 package com.jme3.terrain.noise.fractal;
32 import com.jme3.terrain.noise.Basis;
33 import com.jme3.terrain.noise.ShaderUtils;
34 import com.jme3.terrain.noise.basis.ImprovedNoise;
35 import com.jme3.terrain.noise.basis.Noise;
/external/jmonkeyengine/engine/src/test/jme3test/water/
DTestPostWater.java28 import com.jme3.terrain.geomipmap.TerrainQuad;
29 import com.jme3.terrain.heightmap.AbstractHeightMap;
30 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
47 TerrainQuad terrain; field in TestPostWater
261 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
264 terrain.setMaterial(matRock);
265 terrain.setLocalScale(new Vector3f(5, 5, 5));
266 terrain.setLocalTranslation(new Vector3f(0, -30, 0));
267 terrain.setLocked(false); // unlock it so we can edit the height
269 terrain.setShadowMode(ShadowMode.Receive);
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/basis/
DNoise.java30 package com.jme3.terrain.noise.basis;
36 import com.jme3.terrain.noise.Basis;
37 import com.jme3.terrain.noise.modulator.Modulator;
38 import com.jme3.terrain.noise.modulator.NoiseModulator;
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/
DBasis.java30 package com.jme3.terrain.noise;
34 import com.jme3.terrain.noise.basis.ImprovedNoise;
35 import com.jme3.terrain.noise.modulator.Modulator;

1234