aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs
diff options
context:
space:
mode:
authorDr Scofield2008-09-16 07:19:22 +0000
committerDr Scofield2008-09-16 07:19:22 +0000
commit03e3f88059908675652ec3da3b267bc04bab6c37 (patch)
treec46dac28d3f93b44cebff046bed8e1e18d17e9c5 /OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs
parentFinish up OSSL enable/disable options in XEngine. (diff)
downloadopensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.zip
opensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.tar.gz
opensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.tar.bz2
opensim-SC-03e3f88059908675652ec3da3b267bc04bab6c37.tar.xz
From: mike pitman <pitman@us.ibm.com>
New patch (terrainedit2.patch) is attached that passes unit tests ( and in fact supplies the new unit test to pass..:) The previous failure was due to the change of the brush size to be linear instead of exponential, and the fact that the test parameters were assuming the exponentional brush size. This patch also removes dependency on 'duration' argument for adjustment step size. This should address the widely differing reports of instability with terrain editing. Note: 'doing this right' implies ultimately reading the parameters from the ini file, which this patch does not do.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs
index def28eb..2e6595a 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainUtil.cs
@@ -34,7 +34,8 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
34 { 34 {
35 public static double MetersToSphericalStrength(double size) 35 public static double MetersToSphericalStrength(double size)
36 { 36 {
37 return Math.Pow(2, size); 37 //return Math.Pow(2, size);
38 return (size + 1) * 2.5; // MCP: a more useful brush size range
38 } 39 }
39 40
40 public static double SphericalFactor(double x, double y, double rx, double ry, double size) 41 public static double SphericalFactor(double x, double y, double rx, double ry, double size)