diff options
author | Charles Krinke | 2009-02-22 20:52:55 +0000 |
---|---|---|
committer | Charles Krinke | 2009-02-22 20:52:55 +0000 |
commit | 8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch) | |
tree | 96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Region/Physics | |
parent | Allow delivery of object messages gridwide (diff) | |
download | opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2 opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz |
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml.
* Added missing m_log fields to classes.
* Replaced Console.WriteLine with appropriate m_log.Xxxx
* Tested that nant test target runs succesfully.
* Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 21 | ||||
-rw-r--r-- | OpenSim/Region/Physics/Meshing/PrimMesher.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | 12 | ||||
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs | 10 |
7 files changed, 41 insertions, 27 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 72575e5..72dc70f 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -35,6 +35,8 @@ using OpenMetaverse.Imaging; | |||
35 | using System.Drawing; | 35 | using System.Drawing; |
36 | using System.Drawing.Imaging; | 36 | using System.Drawing.Imaging; |
37 | using PrimMesher; | 37 | using PrimMesher; |
38 | using log4net; | ||
39 | using System.Reflection; | ||
38 | 40 | ||
39 | namespace OpenSim.Region.Physics.Meshing | 41 | namespace OpenSim.Region.Physics.Meshing |
40 | { | 42 | { |
@@ -57,6 +59,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
57 | 59 | ||
58 | public class Meshmerizer : IMesher | 60 | public class Meshmerizer : IMesher |
59 | { | 61 | { |
62 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
60 | //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 63 | //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
61 | 64 | ||
62 | // Setting baseDir to a path will enable the dumping of raw files | 65 | // Setting baseDir to a path will enable the dumping of raw files |
@@ -155,9 +158,9 @@ namespace OpenSim.Region.Physics.Meshing | |||
155 | 158 | ||
156 | private void ReportPrimError(string message, string primName, PrimMesh primMesh) | 159 | private void ReportPrimError(string message, string primName, PrimMesh primMesh) |
157 | { | 160 | { |
158 | Console.WriteLine(message); | 161 | m_log.Error(message); |
159 | Console.WriteLine("\nPrim Name: " + primName); | 162 | m_log.Error("\nPrim Name: " + primName); |
160 | Console.WriteLine("****** PrimMesh Parameters ******\n" + primMesh.ParamsToDisplayString()); | 163 | m_log.Error("****** PrimMesh Parameters ******\n" + primMesh.ParamsToDisplayString()); |
161 | 164 | ||
162 | } | 165 | } |
163 | 166 | ||
@@ -185,17 +188,17 @@ namespace OpenSim.Region.Physics.Meshing | |||
185 | } | 188 | } |
186 | catch (DllNotFoundException) | 189 | catch (DllNotFoundException) |
187 | { | 190 | { |
188 | System.Console.WriteLine("[PHYSICS]: OpenJpeg is not installed correctly on this system. Physics Proxy generation failed. Often times this is because of an old version of GLIBC. You must have version 2.4 or above!"); | 191 | m_log.Error("[PHYSICS]: OpenJpeg is not installed correctly on this system. Physics Proxy generation failed. Often times this is because of an old version of GLIBC. You must have version 2.4 or above!"); |
189 | return null; | 192 | return null; |
190 | } | 193 | } |
191 | catch (IndexOutOfRangeException) | 194 | catch (IndexOutOfRangeException) |
192 | { | 195 | { |
193 | System.Console.WriteLine("[PHYSICS]: OpenJpeg was unable to decode this. Physics Proxy generation failed"); | 196 | m_log.Error("[PHYSICS]: OpenJpeg was unable to decode this. Physics Proxy generation failed"); |
194 | return null; | 197 | return null; |
195 | } | 198 | } |
196 | catch (Exception) | 199 | catch (Exception) |
197 | { | 200 | { |
198 | System.Console.WriteLine("[PHYSICS]: Unable to generate a Sculpty physics proxy. Sculpty texture decode failed!"); | 201 | m_log.Error("[PHYSICS]: Unable to generate a Sculpty physics proxy. Sculpty texture decode failed!"); |
199 | return null; | 202 | return null; |
200 | } | 203 | } |
201 | 204 | ||
@@ -285,7 +288,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
285 | if (profileEnd > 1.0f) profileEnd = 1.0f; | 288 | if (profileEnd > 1.0f) profileEnd = 1.0f; |
286 | } | 289 | } |
287 | #if SPAM | 290 | #if SPAM |
288 | Console.WriteLine("****** PrimMesh Parameters (Linear) ******\n" + primMesh.ParamsToDisplayString()); | 291 | m_log.Debug("****** PrimMesh Parameters (Linear) ******\n" + primMesh.ParamsToDisplayString()); |
289 | #endif | 292 | #endif |
290 | try | 293 | try |
291 | { | 294 | { |
@@ -316,7 +319,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
316 | if (profileEnd > 1.0f) profileEnd = 1.0f; | 319 | if (profileEnd > 1.0f) profileEnd = 1.0f; |
317 | } | 320 | } |
318 | #if SPAM | 321 | #if SPAM |
319 | Console.WriteLine("****** PrimMesh Parameters (Circular) ******\n" + primMesh.ParamsToDisplayString()); | 322 | m_log.Debug("****** PrimMesh Parameters (Circular) ******\n" + primMesh.ParamsToDisplayString()); |
320 | #endif | 323 | #endif |
321 | try | 324 | try |
322 | { | 325 | { |
@@ -378,7 +381,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
378 | if ((!isPhysical) && size.X < minSizeForComplexMesh && size.Y < minSizeForComplexMesh && size.Z < minSizeForComplexMesh) | 381 | if ((!isPhysical) && size.X < minSizeForComplexMesh && size.Y < minSizeForComplexMesh && size.Z < minSizeForComplexMesh) |
379 | { | 382 | { |
380 | #if SPAM | 383 | #if SPAM |
381 | Console.WriteLine("Meshmerizer: prim " + primName + " has a size of " + size.ToString() + " which is below threshold of " + | 384 | m_log.Debug("Meshmerizer: prim " + primName + " has a size of " + size.ToString() + " which is below threshold of " + |
382 | 385 | ||
383 | minSizeForComplexMesh.ToString() + " - creating simple bounding box" ); | 386 | minSizeForComplexMesh.ToString() + " - creating simple bounding box" ); |
384 | #endif | 387 | #endif |
diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs index c28577d..86c9c08 100644 --- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs +++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs | |||
@@ -29,6 +29,8 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Text; | 30 | using System.Text; |
31 | using System.IO; | 31 | using System.IO; |
32 | using log4net; | ||
33 | using System.Reflection; | ||
32 | 34 | ||
33 | namespace PrimMesher | 35 | namespace PrimMesher |
34 | { | 36 | { |
@@ -576,6 +578,7 @@ namespace PrimMesher | |||
576 | /// </summary> | 578 | /// </summary> |
577 | internal class Profile | 579 | internal class Profile |
578 | { | 580 | { |
581 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
579 | private const float twoPi = 2.0f * (float)Math.PI; | 582 | private const float twoPi = 2.0f * (float)Math.PI; |
580 | 583 | ||
581 | internal List<Coord> coords; | 584 | internal List<Coord> coords; |
@@ -643,8 +646,8 @@ namespace PrimMesher | |||
643 | try { angles.makeAngles(sides, startAngle, stopAngle); } | 646 | try { angles.makeAngles(sides, startAngle, stopAngle); } |
644 | catch (Exception ex) | 647 | catch (Exception ex) |
645 | { | 648 | { |
646 | Console.WriteLine("makeAngles failed: Exception: " + ex.ToString()); | 649 | m_log.Error("makeAngles failed: Exception: " + ex.ToString()); |
647 | Console.WriteLine("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString()); | 650 | m_log.Error("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString()); |
648 | return; | 651 | return; |
649 | } | 652 | } |
650 | 653 | ||
@@ -663,8 +666,8 @@ namespace PrimMesher | |||
663 | try { hollowAngles.makeAngles(hollowSides, startAngle, stopAngle); } | 666 | try { hollowAngles.makeAngles(hollowSides, startAngle, stopAngle); } |
664 | catch (Exception ex) | 667 | catch (Exception ex) |
665 | { | 668 | { |
666 | Console.WriteLine("makeAngles failed: Exception: " + ex.ToString()); | 669 | m_log.Error("makeAngles failed: Exception: " + ex.ToString()); |
667 | Console.WriteLine("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString()); | 670 | m_log.Error("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString()); |
668 | return; | 671 | return; |
669 | } | 672 | } |
670 | } | 673 | } |
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 16e0efe..9991ab1 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | |||
@@ -669,7 +669,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
669 | m_pidControllerActive = false; | 669 | m_pidControllerActive = false; |
670 | force *= 100f; | 670 | force *= 100f; |
671 | doForce(force); | 671 | doForce(force); |
672 | //System.Console.WriteLine("Push!"); | 672 | //m_log.Debug("Push!"); |
673 | //_target_velocity.X += force.X; | 673 | //_target_velocity.X += force.X; |
674 | // _target_velocity.Y += force.Y; | 674 | // _target_velocity.Y += force.Y; |
675 | //_target_velocity.Z += force.Z; | 675 | //_target_velocity.Z += force.Z; |
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index bfb9b1a..6d07b92 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -2507,7 +2507,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2507 | } | 2507 | } |
2508 | else | 2508 | else |
2509 | { | 2509 | { |
2510 | //System.Console.WriteLine(Math.Abs(m_lastposition.X - l_position.X).ToString()); | 2510 | //m_log.Debug(Math.Abs(m_lastposition.X - l_position.X).ToString()); |
2511 | _zeroFlag = false; | 2511 | _zeroFlag = false; |
2512 | } | 2512 | } |
2513 | 2513 | ||
@@ -2569,7 +2569,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2569 | m_rotationalVelocity.setValues(rotvel.X, rotvel.Y, rotvel.Z); | 2569 | m_rotationalVelocity.setValues(rotvel.X, rotvel.Y, rotvel.Z); |
2570 | } | 2570 | } |
2571 | 2571 | ||
2572 | //System.Console.WriteLine("ODE: " + m_rotationalVelocity.ToString()); | 2572 | //m_log.Debug("ODE: " + m_rotationalVelocity.ToString()); |
2573 | _orientation.X = ori.X; | 2573 | _orientation.X = ori.X; |
2574 | _orientation.Y = ori.Y; | 2574 | _orientation.Y = ori.Y; |
2575 | _orientation.Z = ori.Z; | 2575 | _orientation.Z = ori.Z; |
diff --git a/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs b/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs index c913639..6ee23db 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | |||
@@ -31,12 +31,16 @@ using NUnit.Framework; | |||
31 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Physics.Manager; | 33 | using OpenSim.Region.Physics.Manager; |
34 | using log4net; | ||
35 | using System.Reflection; | ||
34 | 36 | ||
35 | namespace OpenSim.Region.Physics.OdePlugin | 37 | namespace OpenSim.Region.Physics.OdePlugin |
36 | { | 38 | { |
37 | [TestFixture] | 39 | [TestFixture] |
38 | public class ODETestClass | 40 | public class ODETestClass |
39 | { | 41 | { |
42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
43 | |||
40 | private OdePlugin cbt; | 44 | private OdePlugin cbt; |
41 | private PhysicsScene ps; | 45 | private PhysicsScene ps; |
42 | private IMeshingPlugin imp; | 46 | private IMeshingPlugin imp; |
@@ -92,18 +96,18 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
92 | Assert.That(oprim.m_targetSpace != (IntPtr)0); | 96 | Assert.That(oprim.m_targetSpace != (IntPtr)0); |
93 | 97 | ||
94 | //Assert.That(oprim.m_targetSpace == pscene.space); | 98 | //Assert.That(oprim.m_targetSpace == pscene.space); |
95 | Console.WriteLine("TargetSpace: " + oprim.m_targetSpace + " - SceneMainSpace: " + pscene.space); | 99 | m_log.Info("TargetSpace: " + oprim.m_targetSpace + " - SceneMainSpace: " + pscene.space); |
96 | 100 | ||
97 | Assert.That(!oprim.m_taintadd); | 101 | Assert.That(!oprim.m_taintadd); |
98 | Console.WriteLine("Prim Position (" + oprim.m_localID + "): " + prim.Position.ToString()); | 102 | m_log.Info("Prim Position (" + oprim.m_localID + "): " + prim.Position.ToString()); |
99 | 103 | ||
100 | // Make sure we're above the ground | 104 | // Make sure we're above the ground |
101 | //Assert.That(prim.Position.Z > 20f); | 105 | //Assert.That(prim.Position.Z > 20f); |
102 | //Console.WriteLine("PrimCollisionScore (" + oprim.m_localID + "): " + oprim.m_collisionscore); | 106 | //m_log.Info("PrimCollisionScore (" + oprim.m_localID + "): " + oprim.m_collisionscore); |
103 | 107 | ||
104 | // Make sure we've got a Body | 108 | // Make sure we've got a Body |
105 | Assert.That(oprim.Body != (IntPtr)0); | 109 | Assert.That(oprim.Body != (IntPtr)0); |
106 | //Console.WriteLine( | 110 | //m_log.Info( |
107 | } | 111 | } |
108 | 112 | ||
109 | // Make sure we're not somewhere above the ground | 113 | // Make sure we're not somewhere above the ground |
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index f30de4d..359e7b3 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -579,7 +579,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
579 | //if (id == d.GeomClassId.TriMeshClass) | 579 | //if (id == d.GeomClassId.TriMeshClass) |
580 | //{ | 580 | //{ |
581 | // m_log.InfoFormat("near: A collision was detected between {1} and {2}", 0, name1, name2); | 581 | // m_log.InfoFormat("near: A collision was detected between {1} and {2}", 0, name1, name2); |
582 | //System.Console.WriteLine("near: A collision was detected between {1} and {2}", 0, name1, name2); | 582 | //m_log.Debug("near: A collision was detected between {1} and {2}", 0, name1, name2); |
583 | //} | 583 | //} |
584 | 584 | ||
585 | // Figure out how many contact points we have | 585 | // Figure out how many contact points we have |
@@ -945,8 +945,8 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
945 | // so lets throttle them and send them again after it's somewhat sorted out. | 945 | // so lets throttle them and send them again after it's somewhat sorted out. |
946 | p2.ThrottleUpdates = true; | 946 | p2.ThrottleUpdates = true; |
947 | } | 947 | } |
948 | //System.Console.WriteLine(count.ToString()); | 948 | //m_log.Debug(count.ToString()); |
949 | //System.Console.WriteLine("near: A collision was detected between {1} and {2}", 0, name1, name2); | 949 | //m_log.Debug("near: A collision was detected between {1} and {2}", 0, name1, name2); |
950 | } | 950 | } |
951 | } | 951 | } |
952 | 952 | ||
@@ -2095,7 +2095,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2095 | // convenient place to do it for now... | 2095 | // convenient place to do it for now... |
2096 | 2096 | ||
2097 | // //if (pbs.PathCurve == (byte)Primitive.PathCurve.Circle && pbs.ProfileCurve == (byte)Primitive.ProfileCurve.Circle && pbs.PathScaleY <= 0.75f) | 2097 | // //if (pbs.PathCurve == (byte)Primitive.PathCurve.Circle && pbs.ProfileCurve == (byte)Primitive.ProfileCurve.Circle && pbs.PathScaleY <= 0.75f) |
2098 | // //Console.WriteLine("needsMeshing: " + " pathCurve: " + pbs.PathCurve.ToString() + " profileCurve: " + pbs.ProfileCurve.ToString() + " pathScaleY: " + Primitive.UnpackPathScale(pbs.PathScaleY).ToString()); | 2098 | // //m_log.Debug("needsMeshing: " + " pathCurve: " + pbs.PathCurve.ToString() + " profileCurve: " + pbs.ProfileCurve.ToString() + " pathScaleY: " + Primitive.UnpackPathScale(pbs.PathScaleY).ToString()); |
2099 | int iPropertiesNotSupportedDefault = 0; | 2099 | int iPropertiesNotSupportedDefault = 0; |
2100 | 2100 | ||
2101 | if (pbs.SculptEntry && !meshSculptedPrim) | 2101 | if (pbs.SculptEntry && !meshSculptedPrim) |
diff --git a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs index 18935fb..5579848 100644 --- a/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs +++ b/OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs | |||
@@ -32,6 +32,8 @@ using OpenSim.Framework; | |||
32 | using OpenSim.Region.Physics.Manager; | 32 | using OpenSim.Region.Physics.Manager; |
33 | using PhysXWrapper; | 33 | using PhysXWrapper; |
34 | using Quaternion=OpenMetaverse.Quaternion; | 34 | using Quaternion=OpenMetaverse.Quaternion; |
35 | using System.Reflection; | ||
36 | using log4net; | ||
35 | 37 | ||
36 | namespace OpenSim.Region.Physics.PhysXPlugin | 38 | namespace OpenSim.Region.Physics.PhysXPlugin |
37 | { | 39 | { |
@@ -40,6 +42,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
40 | /// </summary> | 42 | /// </summary> |
41 | public class PhysXPlugin : IPhysicsPlugin | 43 | public class PhysXPlugin : IPhysicsPlugin |
42 | { | 44 | { |
45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
43 | private PhysXScene _mScene; | 46 | private PhysXScene _mScene; |
44 | 47 | ||
45 | public PhysXPlugin() | 48 | public PhysXPlugin() |
@@ -72,6 +75,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
72 | 75 | ||
73 | public class PhysXScene : PhysicsScene | 76 | public class PhysXScene : PhysicsScene |
74 | { | 77 | { |
78 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
75 | private List<PhysXCharacter> _characters = new List<PhysXCharacter>(); | 79 | private List<PhysXCharacter> _characters = new List<PhysXCharacter>(); |
76 | private List<PhysXPrim> _prims = new List<PhysXPrim>(); | 80 | private List<PhysXPrim> _prims = new List<PhysXPrim>(); |
77 | private float[] _heightMap = null; | 81 | private float[] _heightMap = null; |
@@ -84,7 +88,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
84 | //sceneIdentifier = _sceneIdentifier; | 88 | //sceneIdentifier = _sceneIdentifier; |
85 | 89 | ||
86 | mySdk = NxPhysicsSDK.CreateSDK(); | 90 | mySdk = NxPhysicsSDK.CreateSDK(); |
87 | Console.WriteLine("Sdk created - now creating scene"); | 91 | m_log.Info("Sdk created - now creating scene"); |
88 | scene = mySdk.CreateScene(); | 92 | scene = mySdk.CreateScene(); |
89 | } | 93 | } |
90 | 94 | ||
@@ -174,7 +178,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
174 | } | 178 | } |
175 | catch (Exception e) | 179 | catch (Exception e) |
176 | { | 180 | { |
177 | Console.WriteLine(e.Message); | 181 | m_log.Error(e.Message); |
178 | } | 182 | } |
179 | return fps; | 183 | return fps; |
180 | } | 184 | } |
@@ -193,7 +197,7 @@ namespace OpenSim.Region.Physics.PhysXPlugin | |||
193 | { | 197 | { |
194 | if (_heightMap != null) | 198 | if (_heightMap != null) |
195 | { | 199 | { |
196 | Console.WriteLine("PhysX - deleting old terrain"); | 200 | m_log.Debug("PhysX - deleting old terrain"); |
197 | scene.DeleteTerrain(); | 201 | scene.DeleteTerrain(); |
198 | } | 202 | } |
199 | _heightMap = heightMap; | 203 | _heightMap = heightMap; |