aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Terrain.BasicTerrain
diff options
context:
space:
mode:
authorAdam Frisby2007-05-24 05:48:35 +0000
committerAdam Frisby2007-05-24 05:48:35 +0000
commit294a096f71f61d1c78273187ca431746513e012e (patch)
treedd464a8409f527c10717a3709851cf1d3f292541 /OpenSim.Terrain.BasicTerrain
parent* Reduced effect of terraforming brushes by 1000%. (diff)
downloadopensim-SC_OLD-294a096f71f61d1c78273187ca431746513e012e.zip
opensim-SC_OLD-294a096f71f61d1c78273187ca431746513e012e.tar.gz
opensim-SC_OLD-294a096f71f61d1c78273187ca431746513e012e.tar.bz2
opensim-SC_OLD-294a096f71f61d1c78273187ca431746513e012e.tar.xz
Added "terrain save grdmap <filename> <gradientmap>" function to console. Gradient map must be in a format that System.Drawing understands. BMP recommended. Will export as a PNG image.
Diffstat (limited to 'OpenSim.Terrain.BasicTerrain')
-rw-r--r--OpenSim.Terrain.BasicTerrain/TerrainEngine.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
index e766f71..a0f37f9 100644
--- a/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
@@ -120,6 +120,7 @@ namespace OpenSim.Terrain
120 resultText += "terrain seed <seed> - sets the random seed value to <seed>\n"; 120 resultText += "terrain seed <seed> - sets the random seed value to <seed>\n";
121 resultText += "terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64' or 'IMG'\n"; 121 resultText += "terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64' or 'IMG'\n";
122 resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32' or 'F64'\n"; 122 resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32' or 'F64'\n";
123 resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n";
123 resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n"; 124 resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n";
124 resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n"; 125 resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n";
125 resultText += "terrain erode thermal <talus> <rounds> <carry>\n"; 126 resultText += "terrain erode thermal <talus> <rounds> <carry>\n";
@@ -190,6 +191,10 @@ namespace OpenSim.Terrain
190 writeToFileF64(args[2]); 191 writeToFileF64(args[2]);
191 break; 192 break;
192 193
194 case "grdmap":
195 exportImage(args[2], args[3]);
196 break;
197
193 default: 198 default:
194 resultText = "Unknown image or data format"; 199 resultText = "Unknown image or data format";
195 return false; 200 return false;