diff options
author | Adam Frisby | 2007-06-20 21:25:45 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-20 21:25:45 +0000 |
commit | e4c915eebc1fb7d6782d09adfdcc74c4cb987597 (patch) | |
tree | 5b5fa4f13cfad443b95970a73b045e5f72004629 /OpenSim | |
parent | * Added support for "revert" and "bake" commands on terrain console (diff) | |
download | opensim-SC-e4c915eebc1fb7d6782d09adfdcc74c4cb987597.zip opensim-SC-e4c915eebc1fb7d6782d09adfdcc74c4cb987597.tar.gz opensim-SC-e4c915eebc1fb7d6782d09adfdcc74c4cb987597.tar.bz2 opensim-SC-e4c915eebc1fb7d6782d09adfdcc74c4cb987597.tar.xz |
* Bonus commit: "terrain save" now supports a 'PNG' method.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index 9cd8099..2d0fb30 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -187,7 +187,7 @@ namespace OpenSim.Terrain | |||
187 | resultText += "terrain voronoi <points> <blocksize> - generates a worley fractal with X points per block"; | 187 | resultText += "terrain voronoi <points> <blocksize> - generates a worley fractal with X points per block"; |
188 | resultText += "terrain seed <seed> - sets the random seed value to <seed>\n"; | 188 | resultText += "terrain seed <seed> - sets the random seed value to <seed>\n"; |
189 | resultText += "terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64', 'RAW' or 'IMG'\n"; | 189 | resultText += "terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64', 'RAW' or 'IMG'\n"; |
190 | resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32' or 'F64'\n"; | 190 | resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32', 'F64' or 'PNG'\n"; |
191 | resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n"; | 191 | resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n"; |
192 | resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n"; | 192 | resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n"; |
193 | resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n"; | 193 | resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n"; |
@@ -275,6 +275,10 @@ namespace OpenSim.Terrain | |||
275 | exportImage(args[2], args[3]); | 275 | exportImage(args[2], args[3]); |
276 | break; | 276 | break; |
277 | 277 | ||
278 | case "png": | ||
279 | heightmap.saveImage(args[2]); | ||
280 | break; | ||
281 | |||
278 | default: | 282 | default: |
279 | resultText = "Unknown image or data format"; | 283 | resultText = "Unknown image or data format"; |
280 | return false; | 284 | return false; |