aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorDahlia Trimble2009-01-04 18:36:13 +0000
committerDahlia Trimble2009-01-04 18:36:13 +0000
commitf836e36c49fa515367adb64f06bb541ed293c229 (patch)
treebaebff2900c15c392ea9660aa2a1248929626030 /OpenSim/Region/Physics
parentConnect dewww request packets to the land module to makle dwell work (diff)
downloadopensim-SC_OLD-f836e36c49fa515367adb64f06bb541ed293c229.zip
opensim-SC_OLD-f836e36c49fa515367adb64f06bb541ed293c229.tar.gz
opensim-SC_OLD-f836e36c49fa515367adb64f06bb541ed293c229.tar.bz2
opensim-SC_OLD-f836e36c49fa515367adb64f06bb541ed293c229.tar.xz
Improve LOD scaling for anisotropic sculpted prim meshes
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/Meshing/SculptMesh.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
index 826030b..9a5a776 100644
--- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs
+++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
@@ -91,7 +91,8 @@ namespace PrimMesher
91 normals = new List<Coord>(); 91 normals = new List<Coord>();
92 uvs = new List<UVCoord>(); 92 uvs = new List<UVCoord>();
93 93
94 float sourceScaleFactor = (float)lod / (float)Math.Max(sculptBitmap.Width, sculptBitmap.Height); 94 //float sourceScaleFactor = (float)lod / (float)Math.Max(sculptBitmap.Width, sculptBitmap.Height);
95 float sourceScaleFactor = (float)(lod * lod) / (float)(sculptBitmap.Width * sculptBitmap.Height);
95 bool scaleSourceImage = sourceScaleFactor < 1.0f ? true : false; 96 bool scaleSourceImage = sourceScaleFactor < 1.0f ? true : false;
96 97
97 Bitmap bitmap; 98 Bitmap bitmap;