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.
parent
60c2ded8bc
commit
0e789a9a01
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue