From 4e01aa4879381a6b6230ea63b52c513656a2896f Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Mon, 24 Sep 2007 16:39:26 +0000
Subject: * Added time dilation property to Scene * Default Terrain algorithm
now produces something slightly less mountainous. * Fixed lolcat
---
OpenSim/Region/Environment/Scenes/Scene.cs | 4 ++++
OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 4 ++++
bin/OpenSimAssetSet.xml | 7 +++++++
3 files changed, 15 insertions(+)
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index fbda669..5849519 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -100,6 +100,8 @@ namespace OpenSim.Region.Environment.Scenes
protected float m_timespan = 0.1f;
protected DateTime m_lastupdate = DateTime.Now;
+ protected float m_timedilation = 1.0f;
+
private int m_update_physics = 1;
private int m_update_entitymovement = 1;
private int m_update_entities = 1;
@@ -307,6 +309,8 @@ namespace OpenSim.Region.Environment.Scenes
finally
{
updateLock.ReleaseMutex();
+
+ m_timedilation = m_timespan / (float)SinceLastFrame.TotalSeconds;
m_lastupdate = DateTime.Now;
}
}
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
index fe6eefb..6454bdc 100644
--- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
@@ -1128,6 +1128,10 @@ namespace OpenSim.Region.Terrain
heightmap.HillsSpheres(200, 20, 40, true, true, false);
heightmap.Normalise();
heightmap *= 60.0; // Raise to 60m
+ heightmap.Clip(0.0, 25.0);
+ heightmap.Pertubation(2.5);
+ heightmap.Smooth(35.0);
+ heightmap.Normalise(0.0, 21.0);
}
tainted++;
diff --git a/bin/OpenSimAssetSet.xml b/bin/OpenSimAssetSet.xml
index 926de11..ede5d30 100644
--- a/bin/OpenSimAssetSet.xml
+++ b/bin/OpenSimAssetSet.xml
@@ -328,4 +328,11 @@
+
\ No newline at end of file
--
cgit v1.1