diff options
author | Adam Frisby | 2007-07-21 23:48:48 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-21 23:48:48 +0000 |
commit | 65f69b9a1200dd1750b82196b089ecb2ee811323 (patch) | |
tree | bbc6c9a8b1c575438a809cc7cf8ccb36f53be366 | |
parent | * Reimplemented Hydraulic Erosion routines, may be buggy. (diff) | |
download | opensim-SC_OLD-65f69b9a1200dd1750b82196b089ecb2ee811323.zip opensim-SC_OLD-65f69b9a1200dd1750b82196b089ecb2ee811323.tar.gz opensim-SC_OLD-65f69b9a1200dd1750b82196b089ecb2ee811323.tar.bz2 opensim-SC_OLD-65f69b9a1200dd1750b82196b089ecb2ee811323.tar.xz |
* Enabled hydraulic erosion command.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index 7eb90a8..5ef2963 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -262,6 +262,7 @@ namespace OpenSim.Region.Terrain | |||
262 | resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n"; | 262 | resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n"; |
263 | resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n"; | 263 | resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n"; |
264 | resultText += "terrain erode thermal <talus> <rounds> <carry>\n"; | 264 | resultText += "terrain erode thermal <talus> <rounds> <carry>\n"; |
265 | resultText += "terrain erode hydraulic <rain> <evaporation> <solubility> <frequency> <rounds>\n"; | ||
265 | resultText += "terrain multiply <val> - multiplies a terrain by <val>\n"; | 266 | resultText += "terrain multiply <val> - multiplies a terrain by <val>\n"; |
266 | resultText += "terrain revert - reverts the terrain to the stored original\n"; | 267 | resultText += "terrain revert - reverts the terrain to the stored original\n"; |
267 | resultText += "terrain bake - saves the current terrain into the revert map\n"; | 268 | resultText += "terrain bake - saves the current terrain into the revert map\n"; |
@@ -413,6 +414,11 @@ namespace OpenSim.Region.Terrain | |||
413 | case "thermal": | 414 | case "thermal": |
414 | heightmap.thermalWeathering(Convert.ToDouble(args[2]), Convert.ToInt32(args[3]), Convert.ToDouble(args[4])); | 415 | heightmap.thermalWeathering(Convert.ToDouble(args[2]), Convert.ToInt32(args[3]), Convert.ToDouble(args[4])); |
415 | break; | 416 | break; |
417 | case "hydraulic": | ||
418 | Channel rainMap = new Channel(w, h); | ||
419 | rainMap.fill(Convert.ToDouble(args[2])); | ||
420 | heightmap.hydraulicErosion(rainMap, Convert.ToDouble(args[3]), Convert.ToDouble(args[4]), Convert.ToInt32(args[5]), Convert.ToInt32(args[6])); | ||
421 | break; | ||
416 | default: | 422 | default: |
417 | resultText = "Unknown erosion type"; | 423 | resultText = "Unknown erosion type"; |
418 | return false; | 424 | return false; |