Set default terrain to complete flat terrain (at 26 height). Even flat terrain as default seems better than the messed up terrain I was getting.

0.6.0-stable
MW 2008-04-02 11:03:44 +00:00
parent 60c2ded8bc
commit 0e789a9a01
2 changed files with 8 additions and 7 deletions

View File

@ -76,7 +76,7 @@ namespace OpenSim.Grid.AssetServer
} }
} }
private OpenAsset_Main() public OpenAsset_Main()
{ {
m_console = new ConsoleBase("OpenAsset", this); m_console = new ConsoleBase("OpenAsset", this);

View File

@ -121,12 +121,13 @@ namespace OpenSim.Region.Environment.Modules.Terrain
{ {
for (y = 0; y < Constants.RegionSize; y++) for (y = 0; y < Constants.RegionSize; y++)
{ {
map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10; //map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10;
double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20); // double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20);
if (map[x, y] < spherFac) // if (map[x, y] < spherFac)
{ // {
map[x, y] = spherFac; // map[x, y] = spherFac;
} // }
map[x, y] = 26;
} }
} }
} }