diff options
author | Dahlia Trimble | 2009-01-04 18:36:13 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-01-04 18:36:13 +0000 |
commit | f836e36c49fa515367adb64f06bb541ed293c229 (patch) | |
tree | baebff2900c15c392ea9660aa2a1248929626030 | |
parent | Connect dewww request packets to the land module to makle dwell work (diff) | |
download | opensim-SC-f836e36c49fa515367adb64f06bb541ed293c229.zip opensim-SC-f836e36c49fa515367adb64f06bb541ed293c229.tar.gz opensim-SC-f836e36c49fa515367adb64f06bb541ed293c229.tar.bz2 opensim-SC-f836e36c49fa515367adb64f06bb541ed293c229.tar.xz |
Improve LOD scaling for anisotropic sculpted prim meshes
-rw-r--r-- | OpenSim/Region/Physics/Meshing/SculptMesh.cs | 3 |
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; |