Home | History | Annotate | Download | only in terrain

Lines Matching defs:this

45         this.flyCam.setMoveSpeed(100f);
47 this.stateManager.attach(state);
50 this.mat_terrain = new Material(this.assetManager, "Common/MatDefs/Terrain/HeightBasedTerrain.j3md");
63 Texture grass = this.assetManager.loadTexture("Textures/Terrain/splat/grass.jpg");
65 this.mat_terrain.setTexture("region1ColorMap", grass);
66 this.mat_terrain.setVector3("region1", new Vector3f(15, 200, this.grassScale));
69 Texture dirt = this.assetManager.loadTexture("Textures/Terrain/splat/dirt.jpg");
71 this.mat_terrain.setTexture("region2ColorMap", dirt);
72 this.mat_terrain.setVector3("region2", new Vector3f(0, 20, this.dirtScale));
75 Texture rock = this.assetManager.loadTexture("Textures/Terrain/Rock2/rock.jpg");
77 this.mat_terrain.setTexture("region3ColorMap", rock);
78 this.mat_terrain.setVector3("region3", new Vector3f(198, 260, this.rockScale));
80 this.mat_terrain.setTexture("region4ColorMap", rock);
81 this.mat_terrain.setVector3("region4", new Vector3f(198, 260, this.rockScale));
83 this.mat_terrain.setTexture("slopeColorMap", rock);
84 this.mat_terrain.setFloat("slopeTileFactor", 32);
86 this.mat_terrain.setFloat("terrainSize", 513);
88 this.base = new FractalSum();
89 this.base.setRoughness(0.7f);
90 this.base.setFrequency(1.0f);
91 this.base.setAmplitude(1.0f);
92 this.base.setLacunarity(2.12f);
93 this.base.setOctaves(8);
94 this.base.setScale(0.02125f);
95 this.base.addModulator(new NoiseModulator() {
103 FilteredBasis ground = new FilteredBasis(this.base);
105 this.perturb = new PerturbFilter();
106 this.perturb.setMagnitude(0.119f);
108 this.therm = new OptimizedErode();
109 this.therm.setRadius(5);
110 this.therm.setTalus(0.011f);
112 this.smooth = new SmoothFilter();
113 this.smooth.setRadius(1);
114 this.smooth.setEffect(0.7f);
116 this.iterate = new IterativeFilter();
117 this.iterate.addPreFilter(this.perturb);
118 this.iterate.addPostFilter(this.smooth);
119 this.iterate.setFilter(this.therm);
120 this.iterate.setIterations(1);
122 ground.addPreFilter(this.iterate);
124 this.terrain = new TerrainGrid("terrain", 33, 129, new FractalTileLoader(ground, 256f));
126 this.terrain.setMaterial(this.mat_terrain);
127 this.terrain.setLocalTranslation(0, 0, 0);
128 this.terrain.setLocalScale(2f, 1f, 2f);
129 this.rootNode.attachChild(this.terrain);
131 TerrainLodControl control = new TerrainLodControl(this.terrain, this.getCamera());
133 this.terrain.addControl(control);
137 this.getCamera().setLocation(new Vector3f(0, 300, 0));
139 this.viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.8f, 1f, 1f));