HomeSort by relevance Sort by last modified time
    Searched refs:heightmap (Results 1 - 25 of 32) sorted by null

1 2

  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
ImageHeightmap.java 5 package com.jme3.terrain.heightmap;
10 * A heightmap that is built off an image.
13 * and have that class extend Abstract heightmap.
21 * Set the image to use for this heightmap
Namer.java 5 package com.jme3.terrain.heightmap;
14 * Gets a name for a heightmap tile given it's cell id
HeightMapGrid.java 5 package com.jme3.terrain.heightmap;
19 public HeightMap getHeightMapAt(Vector3f location);
ImageBasedHeightMapGrid.java 5 package com.jme3.terrain.heightmap;
17 * By default it expects a 16-bit grayscale image as the heightmap, but
51 public HeightMap getHeightMapAt(Vector3f location) {
52 // HEIGHTMAP image (for the terrain heightmap)
56 AbstractHeightMap heightmap = null; local
61 logger.log(Level.INFO, "Loading heightmap from file: {0}", name);
64 // CREATE HEIGHTMAP
65 heightmap = new ImageBasedHeightMap(texture.getImage());
67 heightmap.setHeightScale(1)
    [all...]
HeightMap.java 33 package com.jme3.terrain.heightmap;
39 public interface HeightMap {
CombinerHeightMap.java 32 package com.jme3.terrain.heightmap;
39 * or substracted from each other. Each heightmap has a weight to
73 * @param map1 the first heightmap to combine.
74 * @param map2 the second heightmap to combine.
119 * @param map1 the first heightmap to combine.
121 * @param map2 the second heightmap to combine.
193 * @throws JmeException if the either heightmap is null, or their
226 * <code>load</code> builds a new heightmap based on the combination of
228 * final outcome of the heightmap.
230 * @return boolean if the heightmap was successfully created.
    [all...]
HillHeightMap.java 32 package com.jme3.terrain.heightmap;
40 * random points in the heightmap. The terrain is then normalized and valleys
67 * the seed to generate the same heightmap again
84 logger.info("Contructing hill heightmap using seed: " + seed);
117 * Generates a heightmap using the Hill Algorithm and the attributes set by
134 // transfer temporary buffer to final heightmap
143 logger.info("Created Heightmap using the Hill Algorithm");
150 * the heightmap. This is the actual Hill algorithm. The <code>Random</code>
151 * object is used to guarantee the same heightmap for the same seed and
178 // Don't try to affect points outside the heightmap
    [all...]
FluidSimHeightMap.java 32 package com.jme3.terrain.heightmap;
39 * sort of fluid simulation. The heightmap is treated as a highly viscous and
40 * rubbery fluid enabling to fine tune the generated heightmap using a number
81 * the distance between each node of the heightmap
83 * the seed to generate the same heightmap again
138 * Generates a heightmap using fluid simulation and the attributes set by
169 // Iterate over the heightmap, applying the fluid simulation equation.
172 // need to store the heightmap twice, not three times, and we can avoid
211 // put the normalized heightmap into the range [0...255] and into the heightmap
    [all...]
ImageBasedHeightMap.java 33 package com.jme3.terrain.heightmap;
60 * Creates a HeightMap from an Image. The image will be converted to
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/grid/
FractalTileLoader.java 14 import com.jme3.terrain.heightmap.AbstractHeightMap;
15 import com.jme3.terrain.heightmap.HeightMap;
52 private HeightMap getHeightMapAt(Vector3f location) {
53 AbstractHeightMap heightmap = null; local
61 heightmap = new FloatBufferHeightMap(buffer);
62 heightmap.load();
63 return heightmap;
67 HeightMap heightMapAt = getHeightMapAt(location);
ImageTileLoader.java 15 import com.jme3.terrain.heightmap.*;
78 private HeightMap getHeightMapAt(Vector3f location) {
79 // HEIGHTMAP image (for the terrain heightmap)
83 AbstractHeightMap heightmap = null; local
89 logger.log(Level.INFO, "Loading heightmap from file: {0}", name);
91 heightmap = new ImageBasedHeightMap(texture.getImage());
97 logger.log(Level.WARNING, "File: {0} not found, loading zero heightmap instead", name);
99 // CREATE HEIGHTMAP
101 heightmap = new Grayscale16BitHeightMap(im)
    [all...]
  /external/jmonkeyengine/engine/src/test/jme3test/helloworld/
HelloTerrain.java 40 import com.jme3.terrain.heightmap.AbstractHeightMap;
41 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
89 AbstractHeightMap heightmap = null; local
92 heightmap = new ImageBasedHeightMap(heightMapImage.getImage());
93 heightmap.load();
95 /** 3. We have prepared material and heightmap.
99 * 3.3) We prepared a heightmap of size 512x512 -- so we supply 512+1=513.
101 * 3.5) We supply the prepared heightmap itself.
104 terrain = new TerrainQuad("my terrain", patchSize, 513, heightmap.getHeightMap());
HelloTerrainCollision.java 51 import com.jme3.terrain.heightmap.AbstractHeightMap;
52 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
119 AbstractHeightMap heightmap = null; local
122 heightmap = new ImageBasedHeightMap(heightMapImage.getImage());
123 heightmap.load();
125 /** 3. We have prepared material and heightmap.
129 * 3.3) We prepared a heightmap of size 512x512 -- so we supply 512+1=513.
131 * 3.5) We supply the prepared heightmap itself.
133 terrain = new TerrainQuad("my terrain", 65, 513, heightmap.getHeightMap());
  /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
HeightfieldCollisionShape.java 47 public HeightfieldCollisionShape(float[] heightmap) {
48 createCollisionHeightfield(heightmap, Vector3f.UNIT_XYZ);
51 public HeightfieldCollisionShape(float[] heightmap, Vector3f scale) {
52 createCollisionHeightfield(heightmap, scale);
55 protected void createCollisionHeightfield(float[] heightmap, Vector3f worldScale) {
59 this.heightfieldData = heightmap;
  /external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
HeightfieldCollisionShape.java 46 public HeightfieldCollisionShape(float[] heightmap) {
47 createCollisionHeightfield(heightmap, Vector3f.UNIT_XYZ);
50 public HeightfieldCollisionShape(float[] heightmap, Vector3f scale) {
51 createCollisionHeightfield(heightmap, scale);
54 protected void createCollisionHeightfield(float[] heightmap, Vector3f worldScale) {
58 this.heightfieldData = heightmap;
  /external/jmonkeyengine/engine/src/test/jme3test/light/
TestSpotLightTerrain.java 50 import com.jme3.terrain.heightmap.AbstractHeightMap;
51 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
127 // HEIGHTMAP image (for the terrain heightmap)
180 // CREATE HEIGHTMAP
181 AbstractHeightMap heightmap = null; local
183 //heightmap = new HillHeightMap(1025, 1000, 50, 100, (byte) 3);
185 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 1f);
186 heightmap.load();
192 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());//, new LodPerspectiveCalculatorFactory(getCamera(), 4)); // add this in to see it (…)
    [all...]
  /external/jmonkeyengine/engine/src/test/jme3test/terrain/
TerrainTest.java 48 import com.jme3.terrain.heightmap.AbstractHeightMap;
49 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
103 // First, we load up our textures and the heightmap texture for the terrain
112 // HEIGHTMAP image (for the terrain heightmap)
138 // CREATE HEIGHTMAP
139 AbstractHeightMap heightmap = null; local
141 //heightmap = new HillHeightMap(1025, 1000, 50, 100, (byte) 3);
143 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 1f);
144 heightmap.load()
    [all...]
TerrainTestAdvanced.java 50 import com.jme3.terrain.heightmap.AbstractHeightMap;
51 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
95 // First, we load up our textures and the heightmap texture for the terrain
106 // HEIGHTMAP image (for the terrain heightmap)
158 // CREATE HEIGHTMAP
159 AbstractHeightMap heightmap = null; local
161 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.5f);
162 heightmap.load();
163 heightmap.smooth(0.9f, 1)
    [all...]
TerrainTestReadWrite.java 51 import com.jme3.terrain.heightmap.AbstractHeightMap;
52 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
103 // HEIGHTMAP image (for the terrain heightmap)
141 // CREATE HEIGHTMAP
142 AbstractHeightMap heightmap = null; local
144 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 1f);
145 heightmap.load();
155 TerrainQuad terrainQuad = new TerrainQuad("terrain", 65, 129, heightmap.getHeightMap());//, new LodPerspectiveCalculatorFactory(getCamera(), 4)); // add this in to see it use entropy for LOD calculations
318 System.out.println("Terrain heightmap building FAILED!!!")
    [all...]
TerrainTestCollision.java 62 import com.jme3.terrain.heightmap.AbstractHeightMap;
63 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
129 AbstractHeightMap heightmap = null; local
131 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.25f);
132 heightmap.load();
137 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
TerrainTestModifyHeight.java 59 import com.jme3.terrain.heightmap.AbstractHeightMap;
60 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
277 // First, we load up our textures and the heightmap texture for the terrain
306 // HEIGHTMAP image (for the terrain heightmap)
308 AbstractHeightMap heightmap = null; local
310 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.5f);
311 heightmap.load();
312 heightmap.smooth(0.9f, 1);
319 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap())
    [all...]
  /external/jmonkeyengine/engine/src/test/jme3test/post/
TestDepthOfField.java 19 import com.jme3.terrain.heightmap.AbstractHeightMap;
20 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
166 AbstractHeightMap heightmap = null; local
168 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.25f);
169 heightmap.load();
173 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
  /external/jmonkeyengine/engine/src/test/jme3test/bullet/
TestHoveringTank.java 62 import com.jme3.terrain.heightmap.AbstractHeightMap;
63 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
277 AbstractHeightMap heightmap = null; local
279 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.25f);
280 heightmap.load();
284 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
TestWalkingChar.java 72 import com.jme3.terrain.heightmap.AbstractHeightMap;
73 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
271 AbstractHeightMap heightmap = null; local
273 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.25f);
274 heightmap.load();
280 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
  /external/jmonkeyengine/engine/src/test/jme3test/water/
TestPostWater.java 29 import com.jme3.terrain.heightmap.AbstractHeightMap;
30 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
254 AbstractHeightMap heightmap = null;
256 heightmap = new ImageBasedHeightMap(heightMapImage.getImage(), 0.25f);
257 heightmap.load();
261 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());

Completed in 2318 milliseconds

1 2