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.

zircon^2
Adam Frisby 2007-05-24 05:48:35 +00:00
parent 497af009bd
commit 294a096f71
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,7 @@ namespace OpenSim.Terrain
resultText += "terrain seed <seed> - sets the random seed value to <seed>\n";
resultText += "terrain load <type> <filename> - loads a terrain from disk, type can be 'F32', 'F64' or 'IMG'\n";
resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32' or 'F64'\n";
resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n";
resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n";
resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n";
resultText += "terrain erode thermal <talus> <rounds> <carry>\n";
@ -190,6 +191,10 @@ namespace OpenSim.Terrain
writeToFileF64(args[2]);
break;
case "grdmap":
exportImage(args[2], args[3]);
break;
default:
resultText = "Unknown image or data format";
return false;