Lines Matching defs:terrain
18 import com.jme3.terrain.geomipmap.TerrainQuad;
19 import com.jme3.terrain.heightmap.AbstractHeightMap;
20 import com.jme3.terrain.heightmap.ImageBasedHeightMap;
35 TerrainQuad terrain;
139 matRock = new Material(assetManager, "Common/MatDefs/Terrain/TerrainLighting.j3md");
142 matRock.setTexture("AlphaMap", assetManager.loadTexture("Textures/Terrain/splat/alphamap.png"));
143 Texture heightMapImage = assetManager.loadTexture("Textures/Terrain/splat/mountains512.png");
144 Texture grass = assetManager.loadTexture("Textures/Terrain/splat/grass.jpg");
148 Texture dirt = assetManager.loadTexture("Textures/Terrain/splat/dirt.jpg");
152 Texture rock = assetManager.loadTexture("Textures/Terrain/splat/road.jpg");
156 Texture normalMap0 = assetManager.loadTexture("Textures/Terrain/splat/grass_normal.jpg");
158 Texture normalMap1 = assetManager.loadTexture("Textures/Terrain/splat/dirt_normal.png");
160 Texture normalMap2 = assetManager.loadTexture("Textures/Terrain/splat/road_normal.png");
173 terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());
176 terrain.setMaterial(matRock);
177 terrain.setLocalScale(new Vector3f(5, 5, 5));
178 terrain.setLocalTranslation(new Vector3f(0, -30, 0));
179 terrain.setLocked(false); // unlock it so we can edit the height
181 terrain.setShadowMode(ShadowMode.Receive);
182 rootNode.attachChild(terrain);
193 int numCollisions = terrain.collideWith(ray, results);