From 00a1f0bab0d764017677672c19d4509c1af3e622 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 16 May 2008 20:16:33 +0000 Subject: * This finishes the ODE options section of the OpenSim.ini.example. I've added 44 configurable options! * This includes if you want to mesh sculpties and the Level of detail on the sculptie meshing for non physical and a separate LOD on physical sculpties. * The options range from gravity.. to avatar movement speed, to friction management.. to object density.. to update throttling. --- OpenSim/Region/Physics/Meshing/SculptMesh.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Physics/Meshing/SculptMesh.cs') diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs index 924c4d3..1c4db15 100644 --- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs +++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs @@ -48,8 +48,11 @@ namespace OpenSim.Region.Physics.Meshing private int lod = 32; private const float RANGE = 128.0f; - public SculptMesh(byte[] jpegData) + public SculptMesh(byte[] jpegData, float _lod) { + if (_lod == 2f || _lod == 4f || _lod == 8f || _lod == 16f || _lod == 32f || _lod == 64f) + lod = (int)_lod; + idata = OpenJPEG.DecodeToImage(jpegData); if (idata != null) { @@ -61,6 +64,10 @@ namespace OpenSim.Region.Physics.Meshing LoadPoles(); processSculptTexture(); + + bLOD.Dispose(); + bBitmap.Dispose(); + idata.Dispose(); } } -- cgit v1.1