diff options
17 files changed, 90 insertions, 105 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 68fba97..980fa85 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -734,10 +734,6 @@ namespace OpenSim | |||
734 | clientServer = clientNetworkServers; | 734 | clientServer = clientNetworkServers; |
735 | scene.LoadWorldMap(); | 735 | scene.LoadWorldMap(); |
736 | 736 | ||
737 | scene.PhysicsScene.RequestAssetMethod = scene.PhysicsRequestAsset; | ||
738 | scene.PhysicsScene.SetTerrain(scene.Heightmap.GetFloatsSerialised()); | ||
739 | scene.PhysicsScene.SetWaterLevel((float) regionInfo.RegionSettings.WaterHeight); | ||
740 | |||
741 | return scene; | 737 | return scene; |
742 | } | 738 | } |
743 | 739 | ||
@@ -749,11 +745,8 @@ namespace OpenSim | |||
749 | protected override Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, | 745 | protected override Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, |
750 | IEstateDataService estateDataService, AgentCircuitManager circuitManager) | 746 | IEstateDataService estateDataService, AgentCircuitManager circuitManager) |
751 | { | 747 | { |
752 | Vector3 regionExtent = new Vector3(regionInfo.RegionSizeX, regionInfo.RegionSizeY, regionInfo.RegionSizeZ); | ||
753 | PhysicsScene physicsScene = GetPhysicsScene(regionInfo.RegionName, regionExtent); | ||
754 | |||
755 | return new Scene( | 748 | return new Scene( |
756 | regionInfo, circuitManager, physicsScene, | 749 | regionInfo, circuitManager, |
757 | simDataService, estateDataService, | 750 | simDataService, estateDataService, |
758 | Config, m_version); | 751 | Config, m_version); |
759 | } | 752 | } |
@@ -796,12 +789,6 @@ namespace OpenSim | |||
796 | 789 | ||
797 | # region Setup methods | 790 | # region Setup methods |
798 | 791 | ||
799 | protected override PhysicsScene GetPhysicsScene(string osSceneIdentifier, Vector3 regionExtent) | ||
800 | { | ||
801 | return GetPhysicsScene( | ||
802 | m_configSettings.PhysicsEngine, m_configSettings.MeshEngineName, Config, osSceneIdentifier, regionExtent); | ||
803 | } | ||
804 | |||
805 | /// <summary> | 792 | /// <summary> |
806 | /// Handler to supply the current status of this sim | 793 | /// Handler to supply the current status of this sim |
807 | /// </summary> | 794 | /// </summary> |
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index 374e34d..343780b 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs | |||
@@ -62,16 +62,6 @@ namespace OpenSim.Region.ClientStack | |||
62 | 62 | ||
63 | protected abstract void Initialize(); | 63 | protected abstract void Initialize(); |
64 | 64 | ||
65 | /// <summary> | ||
66 | /// Get a new physics scene. | ||
67 | /// </summary> | ||
68 | /// | ||
69 | /// <param name="osSceneIdentifier"> | ||
70 | /// The name of the OpenSim scene this physics scene is serving. This will be used in log messages. | ||
71 | /// </param> | ||
72 | /// <returns></returns> | ||
73 | protected abstract PhysicsScene GetPhysicsScene(string osSceneIdentifier, Vector3 regionExtent); | ||
74 | |||
75 | protected abstract ClientStackManager CreateClientStackManager(); | 65 | protected abstract ClientStackManager CreateClientStackManager(); |
76 | protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); | 66 | protected abstract Scene CreateScene(RegionInfo regionInfo, ISimulationDataService simDataService, IEstateDataService estateDataService, AgentCircuitManager circuitManager); |
77 | 67 | ||
@@ -113,24 +103,5 @@ namespace OpenSim.Region.ClientStack | |||
113 | base.StartupSpecific(); | 103 | base.StartupSpecific(); |
114 | } | 104 | } |
115 | 105 | ||
116 | /// <summary> | ||
117 | /// Get a new physics scene. | ||
118 | /// </summary> | ||
119 | /// <param name="engine">The name of the physics engine to use</param> | ||
120 | /// <param name="meshEngine">The name of the mesh engine to use</param> | ||
121 | /// <param name="config">The configuration data to pass to the physics and mesh engines</param> | ||
122 | /// <param name="osSceneIdentifier"> | ||
123 | /// The name of the OpenSim scene this physics scene is serving. This will be used in log messages. | ||
124 | /// </param> | ||
125 | /// <returns></returns> | ||
126 | protected PhysicsScene GetPhysicsScene( | ||
127 | string engine, string meshEngine, IConfigSource config, string osSceneIdentifier, Vector3 regionExtent) | ||
128 | { | ||
129 | PhysicsPluginManager physicsPluginManager; | ||
130 | physicsPluginManager = new PhysicsPluginManager(); | ||
131 | physicsPluginManager.LoadPluginsFromAssemblies("Physics"); | ||
132 | |||
133 | return physicsPluginManager.GetPhysicsScene(engine, meshEngine, config, osSceneIdentifier, regionExtent); | ||
134 | } | ||
135 | } | 106 | } |
136 | } \ No newline at end of file | 107 | } \ No newline at end of file |
diff --git a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs index d10c9b4..69d7e16 100644 --- a/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs +++ b/OpenSim/Region/CoreModules/Framework/Library/LibraryModule.cs | |||
@@ -159,7 +159,7 @@ namespace OpenSim.Region.CoreModules.Framework.Library | |||
159 | } | 159 | } |
160 | 160 | ||
161 | RegionInfo regInfo = new RegionInfo(); | 161 | RegionInfo regInfo = new RegionInfo(); |
162 | Scene m_MockScene = new Scene(regInfo, null); | 162 | Scene m_MockScene = new Scene(regInfo); |
163 | LocalInventoryService invService = new LocalInventoryService(lib); | 163 | LocalInventoryService invService = new LocalInventoryService(lib); |
164 | m_MockScene.RegisterModuleInterface<IInventoryService>(invService); | 164 | m_MockScene.RegisterModuleInterface<IInventoryService>(invService); |
165 | m_MockScene.RegisterModuleInterface<IAssetService>(m_Scene.AssetService); | 165 | m_MockScene.RegisterModuleInterface<IAssetService>(m_Scene.AssetService); |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/Tests/GridConnectorsTests.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/Tests/GridConnectorsTests.cs index aa5f889..25ae689 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/Tests/GridConnectorsTests.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/Tests/GridConnectorsTests.cs | |||
@@ -85,7 +85,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests | |||
85 | r1.ExternalHostName = "127.0.0.1"; | 85 | r1.ExternalHostName = "127.0.0.1"; |
86 | r1.HttpPort = 9001; | 86 | r1.HttpPort = 9001; |
87 | r1.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); | 87 | r1.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); |
88 | Scene s = new Scene(new RegionInfo(), null); | 88 | Scene s = new Scene(new RegionInfo()); |
89 | s.RegionInfo.RegionID = r1.RegionID; | 89 | s.RegionInfo.RegionID = r1.RegionID; |
90 | m_LocalConnector.AddRegion(s); | 90 | m_LocalConnector.AddRegion(s); |
91 | 91 | ||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests | |||
97 | r2.ExternalHostName = "127.0.0.1"; | 97 | r2.ExternalHostName = "127.0.0.1"; |
98 | r2.HttpPort = 9002; | 98 | r2.HttpPort = 9002; |
99 | r2.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); | 99 | r2.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); |
100 | s = new Scene(new RegionInfo(), null); | 100 | s = new Scene(new RegionInfo()); |
101 | s.RegionInfo.RegionID = r2.RegionID; | 101 | s.RegionInfo.RegionID = r2.RegionID; |
102 | m_LocalConnector.AddRegion(s); | 102 | m_LocalConnector.AddRegion(s); |
103 | 103 | ||
@@ -109,7 +109,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests | |||
109 | r3.ExternalHostName = "127.0.0.1"; | 109 | r3.ExternalHostName = "127.0.0.1"; |
110 | r3.HttpPort = 9003; | 110 | r3.HttpPort = 9003; |
111 | r3.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); | 111 | r3.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); |
112 | s = new Scene(new RegionInfo(), null); | 112 | s = new Scene(new RegionInfo()); |
113 | s.RegionInfo.RegionID = r3.RegionID; | 113 | s.RegionInfo.RegionID = r3.RegionID; |
114 | m_LocalConnector.AddRegion(s); | 114 | m_LocalConnector.AddRegion(s); |
115 | 115 | ||
@@ -121,7 +121,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.Tests | |||
121 | r4.ExternalHostName = "127.0.0.1"; | 121 | r4.ExternalHostName = "127.0.0.1"; |
122 | r4.HttpPort = 9004; | 122 | r4.HttpPort = 9004; |
123 | r4.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); | 123 | r4.InternalEndPoint = new System.Net.IPEndPoint(System.Net.IPAddress.Parse("0.0.0.0"), 0); |
124 | s = new Scene(new RegionInfo(), null); | 124 | s = new Scene(new RegionInfo()); |
125 | s.RegionInfo.RegionID = r4.RegionID; | 125 | s.RegionInfo.RegionID = r4.RegionID; |
126 | m_LocalConnector.AddRegion(s); | 126 | m_LocalConnector.AddRegion(s); |
127 | 127 | ||
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 09a0a6b..900e715 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -850,10 +850,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
850 | 850 | ||
851 | #region Constructors | 851 | #region Constructors |
852 | 852 | ||
853 | public Scene(RegionInfo regInfo, AgentCircuitManager authen, PhysicsScene physicsScene, | 853 | public Scene(RegionInfo regInfo, AgentCircuitManager authen, |
854 | ISimulationDataService simDataService, IEstateDataService estateDataService, | 854 | ISimulationDataService simDataService, IEstateDataService estateDataService, |
855 | IConfigSource config, string simulatorVersion) | 855 | IConfigSource config, string simulatorVersion) |
856 | : this(regInfo, physicsScene) | 856 | : this(regInfo) |
857 | { | 857 | { |
858 | m_config = config; | 858 | m_config = config; |
859 | MinFrameTicks = 89; | 859 | MinFrameTicks = 89; |
@@ -1192,11 +1192,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1192 | 1192 | ||
1193 | } | 1193 | } |
1194 | 1194 | ||
1195 | public Scene(RegionInfo regInfo, PhysicsScene physicsScene) | 1195 | public Scene(RegionInfo regInfo) |
1196 | : base(regInfo) | 1196 | : base(regInfo) |
1197 | { | 1197 | { |
1198 | m_sceneGraph = new SceneGraph(this); | 1198 | m_sceneGraph = new SceneGraph(this); |
1199 | m_sceneGraph.PhysicsScene = physicsScene; | ||
1200 | 1199 | ||
1201 | // If the scene graph has an Unrecoverable error, restart this sim. | 1200 | // If the scene graph has an Unrecoverable error, restart this sim. |
1202 | // Currently the only thing that causes it to happen is two kinds of specific | 1201 | // Currently the only thing that causes it to happen is two kinds of specific |
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index eea0fff..d77e324 100755 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -111,7 +111,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
111 | 111 | ||
112 | public PhysicsScene PhysicsScene | 112 | public PhysicsScene PhysicsScene |
113 | { | 113 | { |
114 | get { return _PhyScene; } | 114 | get |
115 | { | ||
116 | if (_PhyScene == null) | ||
117 | _PhyScene = m_parentScene.RequestModuleInterface<PhysicsScene>(); | ||
118 | return _PhyScene; | ||
119 | } | ||
115 | set | 120 | set |
116 | { | 121 | { |
117 | // If we're not doing the initial set | 122 | // If we're not doing the initial set |
diff --git a/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs b/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs index 5ec0f85..f7760c5 100644 --- a/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs +++ b/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs | |||
@@ -93,6 +93,7 @@ namespace OpenSim.Region.PhysicsModule.BasicPhysics | |||
93 | 93 | ||
94 | scene.RegisterModuleInterface<PhysicsScene>(this); | 94 | scene.RegisterModuleInterface<PhysicsScene>(this); |
95 | m_regionExtent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ); | 95 | m_regionExtent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ); |
96 | base.Initialise(scene.PhysicsRequestAsset, scene.Heightmap.GetFloatsSerialised(), (float)scene.RegionInfo.RegionSettings.WaterHeight); | ||
96 | 97 | ||
97 | } | 98 | } |
98 | 99 | ||
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSScene.cs b/OpenSim/Region/PhysicsModules/BulletS/BSScene.cs index 26af343..b412561 100644 --- a/OpenSim/Region/PhysicsModules/BulletS/BSScene.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSScene.cs | |||
@@ -248,7 +248,10 @@ namespace OpenSim.Region.PhysicsModule.BulletS | |||
248 | 248 | ||
249 | scene.RegisterModuleInterface<PhysicsScene>(this); | 249 | scene.RegisterModuleInterface<PhysicsScene>(this); |
250 | Vector3 extent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ); | 250 | Vector3 extent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ); |
251 | Initialise(m_Config, extent); | 251 | Initialise(m_Config, extent); |
252 | |||
253 | base.Initialise(scene.PhysicsRequestAsset, scene.Heightmap.GetFloatsSerialised(), (float)scene.RegionInfo.RegionSettings.WaterHeight); | ||
254 | |||
252 | } | 255 | } |
253 | 256 | ||
254 | public void RemoveRegion(Scene scene) | 257 | public void RemoveRegion(Scene scene) |
diff --git a/OpenSim/Region/PhysicsModules/BulletS/Tests/BulletSimTestsUtil.cs b/OpenSim/Region/PhysicsModules/BulletS/Tests/BulletSimTestsUtil.cs index 34c0571..d86c841 100755 --- a/OpenSim/Region/PhysicsModules/BulletS/Tests/BulletSimTestsUtil.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/Tests/BulletSimTestsUtil.cs | |||
@@ -35,6 +35,7 @@ using Nini.Config; | |||
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
36 | using OpenSim.Region.PhysicsModules.SharedBase; | 36 | using OpenSim.Region.PhysicsModules.SharedBase; |
37 | using OpenSim.Region.PhysicsModules.Meshing; | 37 | using OpenSim.Region.PhysicsModules.Meshing; |
38 | using OpenSim.Region.Framework.Interfaces; | ||
38 | 39 | ||
39 | using OpenMetaverse; | 40 | using OpenMetaverse; |
40 | 41 | ||
@@ -78,22 +79,32 @@ public static class BulletSimTestsUtil | |||
78 | bulletSimConfig.Set("VehicleLoggingEnabled","True"); | 79 | bulletSimConfig.Set("VehicleLoggingEnabled","True"); |
79 | } | 80 | } |
80 | 81 | ||
81 | PhysicsPluginManager physicsPluginManager; | ||
82 | physicsPluginManager = new PhysicsPluginManager(); | ||
83 | physicsPluginManager.LoadPluginsFromAssemblies("Physics"); | ||
84 | |||
85 | Vector3 regionExtent = new Vector3(Constants.RegionSize, Constants.RegionSize, Constants.RegionHeight); | 82 | Vector3 regionExtent = new Vector3(Constants.RegionSize, Constants.RegionSize, Constants.RegionHeight); |
86 | 83 | ||
87 | PhysicsScene pScene = physicsPluginManager.GetPhysicsScene( | 84 | //PhysicsScene pScene = physicsPluginManager.GetPhysicsScene( |
88 | "BulletSim", "Meshmerizer", openSimINI, "BSTestRegion", regionExtent); | 85 | // "BulletSim", "Meshmerizer", openSimINI, "BSTestRegion", regionExtent); |
86 | RegionInfo info = new RegionInfo(); | ||
87 | info.RegionName = "BSTestRegion"; | ||
88 | info.RegionSizeX = info.RegionSizeY = info.RegionSizeZ = Constants.RegionSize; | ||
89 | OpenSim.Region.Framework.Scenes.Scene scene = new OpenSim.Region.Framework.Scenes.Scene(info); | ||
90 | |||
91 | IMesher mesher = new OpenSim.Region.PhysicsModules.Meshing.Meshmerizer(); | ||
92 | INonSharedRegionModule mod = mesher as INonSharedRegionModule; | ||
93 | mod.Initialise(openSimINI); | ||
94 | mod.AddRegion(scene); | ||
95 | mod.RegionLoaded(scene); | ||
89 | 96 | ||
90 | BSScene bsScene = pScene as BSScene; | 97 | BSScene pScene = new BSScene(); |
98 | mod = (pScene as INonSharedRegionModule); | ||
99 | mod.Initialise(openSimINI); | ||
100 | mod.AddRegion(scene); | ||
101 | mod.RegionLoaded(scene); | ||
91 | 102 | ||
92 | // Since the asset requestor is not initialized, any mesh or sculptie will be a cube. | 103 | // Since the asset requestor is not initialized, any mesh or sculptie will be a cube. |
93 | // In the future, add a fake asset fetcher to get meshes and sculpts. | 104 | // In the future, add a fake asset fetcher to get meshes and sculpts. |
94 | // bsScene.RequestAssetMethod = ???; | 105 | // bsScene.RequestAssetMethod = ???; |
95 | 106 | ||
96 | return bsScene; | 107 | return pScene; |
97 | } | 108 | } |
98 | 109 | ||
99 | } | 110 | } |
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs index 3616200..f090953 100644 --- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs +++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | |||
@@ -585,6 +585,8 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
585 | Vector3 extent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ); | 585 | Vector3 extent = new Vector3(scene.RegionInfo.RegionSizeX, scene.RegionInfo.RegionSizeY, scene.RegionInfo.RegionSizeZ); |
586 | Initialise(); | 586 | Initialise(); |
587 | InitialiseFromConfig(m_config); | 587 | InitialiseFromConfig(m_config); |
588 | base.Initialise(scene.PhysicsRequestAsset, scene.Heightmap.GetFloatsSerialised(), (float)scene.RegionInfo.RegionSettings.WaterHeight); | ||
589 | |||
588 | } | 590 | } |
589 | 591 | ||
590 | public void RemoveRegion(Scene scene) | 592 | public void RemoveRegion(Scene scene) |
diff --git a/OpenSim/Region/PhysicsModules/POS/POSScene.cs b/OpenSim/Region/PhysicsModules/POS/POSScene.cs index 915fa8c..beaa177 100644 --- a/OpenSim/Region/PhysicsModules/POS/POSScene.cs +++ b/OpenSim/Region/PhysicsModules/POS/POSScene.cs | |||
@@ -85,6 +85,8 @@ namespace OpenSim.Region.PhysicsModule.POS | |||
85 | PhysicsSceneName = EngineType + "/" + scene.RegionInfo.RegionName; | 85 | PhysicsSceneName = EngineType + "/" + scene.RegionInfo.RegionName; |
86 | 86 | ||
87 | scene.RegisterModuleInterface<PhysicsScene>(this); | 87 | scene.RegisterModuleInterface<PhysicsScene>(this); |
88 | base.Initialise(scene.PhysicsRequestAsset, scene.Heightmap.GetFloatsSerialised(), (float)scene.RegionInfo.RegionSettings.WaterHeight); | ||
89 | |||
88 | } | 90 | } |
89 | 91 | ||
90 | public void RemoveRegion(Scene scene) | 92 | public void RemoveRegion(Scene scene) |
diff --git a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs index 247f355..32691fc 100644 --- a/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs +++ b/OpenSim/Region/PhysicsModules/SharedBase/PhysicsScene.cs | |||
@@ -117,6 +117,14 @@ namespace OpenSim.Region.PhysicsModules.SharedBase | |||
117 | 117 | ||
118 | public RequestAssetDelegate RequestAssetMethod { get; set; } | 118 | public RequestAssetDelegate RequestAssetMethod { get; set; } |
119 | 119 | ||
120 | protected void Initialise(RequestAssetDelegate m, float[] terrain, float waterHeight) | ||
121 | { | ||
122 | RequestAssetMethod = m; | ||
123 | SetTerrain(terrain); | ||
124 | SetWaterLevel(waterHeight); | ||
125 | |||
126 | } | ||
127 | |||
120 | public virtual void TriggerPhysicsBasedRestart() | 128 | public virtual void TriggerPhysicsBasedRestart() |
121 | { | 129 | { |
122 | physicsCrash handler = OnPhysicsCrash; | 130 | physicsCrash handler = OnPhysicsCrash; |
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs index a26e844..27705bd 100644 --- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs | |||
@@ -151,12 +151,9 @@ namespace OpenSim.Tests.Common | |||
151 | PhysicsPluginManager physicsPluginManager = new PhysicsPluginManager(); | 151 | PhysicsPluginManager physicsPluginManager = new PhysicsPluginManager(); |
152 | physicsPluginManager.LoadPluginsFromAssembly("Physics/OpenSim.Region.PhysicsModule.BasicPhysics.dll"); | 152 | physicsPluginManager.LoadPluginsFromAssembly("Physics/OpenSim.Region.PhysicsModule.BasicPhysics.dll"); |
153 | Vector3 regionExtent = new Vector3( regInfo.RegionSizeX, regInfo.RegionSizeY, regInfo.RegionSizeZ); | 153 | Vector3 regionExtent = new Vector3( regInfo.RegionSizeX, regInfo.RegionSizeY, regInfo.RegionSizeZ); |
154 | PhysicsScene physicsScene | ||
155 | = physicsPluginManager.GetPhysicsScene( | ||
156 | "basicphysics", "ZeroMesher", new IniConfigSource(), "test", regionExtent); | ||
157 | 154 | ||
158 | TestScene testScene = new TestScene( | 155 | TestScene testScene = new TestScene( |
159 | regInfo, m_acm, physicsScene, SimDataService, m_estateDataService, configSource, null); | 156 | regInfo, m_acm, SimDataService, m_estateDataService, configSource, null); |
160 | 157 | ||
161 | INonSharedRegionModule godsModule = new GodsModule(); | 158 | INonSharedRegionModule godsModule = new GodsModule(); |
162 | godsModule.Initialise(new IniConfigSource()); | 159 | godsModule.Initialise(new IniConfigSource()); |
diff --git a/OpenSim/Tests/Common/Mock/TestScene.cs b/OpenSim/Tests/Common/Mock/TestScene.cs index 08cfff2..951f103 100644 --- a/OpenSim/Tests/Common/Mock/TestScene.cs +++ b/OpenSim/Tests/Common/Mock/TestScene.cs | |||
@@ -41,10 +41,10 @@ namespace OpenSim.Tests.Common | |||
41 | public class TestScene : Scene | 41 | public class TestScene : Scene |
42 | { | 42 | { |
43 | public TestScene( | 43 | public TestScene( |
44 | RegionInfo regInfo, AgentCircuitManager authen, PhysicsScene physicsScene, | 44 | RegionInfo regInfo, AgentCircuitManager authen, |
45 | ISimulationDataService simDataService, IEstateDataService estateDataService, | 45 | ISimulationDataService simDataService, IEstateDataService estateDataService, |
46 | IConfigSource config, string simulatorVersion) | 46 | IConfigSource config, string simulatorVersion) |
47 | : base(regInfo, authen, physicsScene, simDataService, estateDataService, | 47 | : base(regInfo, authen, simDataService, estateDataService, |
48 | config, simulatorVersion) | 48 | config, simulatorVersion) |
49 | { | 49 | { |
50 | } | 50 | } |
diff --git a/OpenSim/Tests/Common/OpenSimTestCase.cs b/OpenSim/Tests/Common/OpenSimTestCase.cs index c1415af..9fea348 100644 --- a/OpenSim/Tests/Common/OpenSimTestCase.cs +++ b/OpenSim/Tests/Common/OpenSimTestCase.cs | |||
@@ -38,7 +38,7 @@ namespace OpenSim.Tests.Common | |||
38 | [SetUp] | 38 | [SetUp] |
39 | public virtual void SetUp() | 39 | public virtual void SetUp() |
40 | { | 40 | { |
41 | // TestHelpers.InMethod(); | 41 | //TestHelpers.InMethod(); |
42 | // Disable logging for each test so that one where logging is enabled doesn't cause all subsequent tests | 42 | // Disable logging for each test so that one where logging is enabled doesn't cause all subsequent tests |
43 | // to have logging on if it failed with an exception. | 43 | // to have logging on if it failed with an exception. |
44 | TestHelpers.DisableLogging(); | 44 | TestHelpers.DisableLogging(); |
diff --git a/bin/Physics/OpenSim.Region.Physics.BulletSPlugin.dll.config b/bin/OpenSim.Region.PhysicsModule.BulletS.dll.config index 2763525..2763525 100755 --- a/bin/Physics/OpenSim.Region.Physics.BulletSPlugin.dll.config +++ b/bin/OpenSim.Region.PhysicsModule.BulletS.dll.config | |||
diff --git a/prebuild.xml b/prebuild.xml index 6de8c6d..2685c30 100644 --- a/prebuild.xml +++ b/prebuild.xml | |||
@@ -487,6 +487,32 @@ | |||
487 | </Files> | 487 | </Files> |
488 | </Project> | 488 | </Project> |
489 | 489 | ||
490 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.SharedBase" path="OpenSim/Region/PhysicsModules/SharedBase" type="Library"> | ||
491 | <Configuration name="Debug"> | ||
492 | <Options> | ||
493 | <OutputPath>../../../../bin/</OutputPath> | ||
494 | </Options> | ||
495 | </Configuration> | ||
496 | <Configuration name="Release"> | ||
497 | <Options> | ||
498 | <OutputPath>../../../../bin/</OutputPath> | ||
499 | </Options> | ||
500 | </Configuration> | ||
501 | |||
502 | <ReferencePath>../../../../bin/</ReferencePath> | ||
503 | <Reference name="System"/> | ||
504 | <Reference name="System.Xml"/> | ||
505 | <Reference name="OpenMetaverseTypes" path="../../../../bin/"/> | ||
506 | <Reference name="OpenSim.Framework"/> | ||
507 | <Reference name="OpenSim.Framework.Console"/> | ||
508 | <Reference name="nunit.framework" path="../../../../bin/"/> | ||
509 | <Reference name="Nini" path="../../../../bin/"/> | ||
510 | <Reference name="log4net" path="../../../../bin/"/> | ||
511 | |||
512 | <Files> | ||
513 | <Match pattern="*.cs" recurse="false"/> | ||
514 | </Files> | ||
515 | </Project> | ||
490 | 516 | ||
491 | <Project frameworkVersion="v4_0" name="OpenSim.Region.Framework" path="OpenSim/Region/Framework" type="Library"> | 517 | <Project frameworkVersion="v4_0" name="OpenSim.Region.Framework" path="OpenSim/Region/Framework" type="Library"> |
492 | <Configuration name="Debug"> | 518 | <Configuration name="Debug"> |
@@ -1692,7 +1718,7 @@ | |||
1692 | </Files> | 1718 | </Files> |
1693 | </Project> | 1719 | </Project> |
1694 | 1720 | ||
1695 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.SharedBase" path="OpenSim/Region/PhysicsModules/SharedBase" type="Library"> | 1721 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.Meshing" path="OpenSim/Region/PhysicsModules/Meshing" type="Library"> |
1696 | <Configuration name="Debug"> | 1722 | <Configuration name="Debug"> |
1697 | <Options> | 1723 | <Options> |
1698 | <OutputPath>../../../../bin/</OutputPath> | 1724 | <OutputPath>../../../../bin/</OutputPath> |
@@ -1706,33 +1732,6 @@ | |||
1706 | 1732 | ||
1707 | <ReferencePath>../../../../bin/</ReferencePath> | 1733 | <ReferencePath>../../../../bin/</ReferencePath> |
1708 | <Reference name="System"/> | 1734 | <Reference name="System"/> |
1709 | <Reference name="System.Xml"/> | ||
1710 | <Reference name="OpenMetaverseTypes" path="../../../../bin/"/> | ||
1711 | <Reference name="OpenSim.Framework"/> | ||
1712 | <Reference name="OpenSim.Framework.Console"/> | ||
1713 | <Reference name="nunit.framework" path="../../../../bin/"/> | ||
1714 | <Reference name="Nini" path="../../../../bin/"/> | ||
1715 | <Reference name="log4net" path="../../../../bin/"/> | ||
1716 | |||
1717 | <Files> | ||
1718 | <Match pattern="*.cs" recurse="false"/> | ||
1719 | </Files> | ||
1720 | </Project> | ||
1721 | |||
1722 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.Meshing" path="OpenSim/Region/PhysicsModules/Meshing" type="Library"> | ||
1723 | <Configuration name="Debug"> | ||
1724 | <Options> | ||
1725 | <OutputPath>../../../../bin/Physics/</OutputPath> | ||
1726 | </Options> | ||
1727 | </Configuration> | ||
1728 | <Configuration name="Release"> | ||
1729 | <Options> | ||
1730 | <OutputPath>../../../../bin/Physics/</OutputPath> | ||
1731 | </Options> | ||
1732 | </Configuration> | ||
1733 | |||
1734 | <ReferencePath>../../../../bin/</ReferencePath> | ||
1735 | <Reference name="System"/> | ||
1736 | <Reference name="System.Drawing"/> | 1735 | <Reference name="System.Drawing"/> |
1737 | <Reference name="CSJ2K" path="../../../../bin/"/> | 1736 | <Reference name="CSJ2K" path="../../../../bin/"/> |
1738 | <Reference name="OpenMetaverseTypes" path="../../../../bin/"/> | 1737 | <Reference name="OpenMetaverseTypes" path="../../../../bin/"/> |
@@ -1755,12 +1754,12 @@ | |||
1755 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.BasicPhysics" path="OpenSim/Region/PhysicsModules/BasicPhysics" type="Library"> | 1754 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.BasicPhysics" path="OpenSim/Region/PhysicsModules/BasicPhysics" type="Library"> |
1756 | <Configuration name="Debug"> | 1755 | <Configuration name="Debug"> |
1757 | <Options> | 1756 | <Options> |
1758 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1757 | <OutputPath>../../../../bin/</OutputPath> |
1759 | </Options> | 1758 | </Options> |
1760 | </Configuration> | 1759 | </Configuration> |
1761 | <Configuration name="Release"> | 1760 | <Configuration name="Release"> |
1762 | <Options> | 1761 | <Options> |
1763 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1762 | <OutputPath>../../../../bin/</OutputPath> |
1764 | </Options> | 1763 | </Options> |
1765 | </Configuration> | 1764 | </Configuration> |
1766 | 1765 | ||
@@ -1780,12 +1779,12 @@ | |||
1780 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.POS" path="OpenSim/Region/PhysicsModules/POS" type="Library"> | 1779 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.POS" path="OpenSim/Region/PhysicsModules/POS" type="Library"> |
1781 | <Configuration name="Debug"> | 1780 | <Configuration name="Debug"> |
1782 | <Options> | 1781 | <Options> |
1783 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1782 | <OutputPath>../../../../bin/</OutputPath> |
1784 | </Options> | 1783 | </Options> |
1785 | </Configuration> | 1784 | </Configuration> |
1786 | <Configuration name="Release"> | 1785 | <Configuration name="Release"> |
1787 | <Options> | 1786 | <Options> |
1788 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1787 | <OutputPath>../../../../bin/</OutputPath> |
1789 | </Options> | 1788 | </Options> |
1790 | </Configuration> | 1789 | </Configuration> |
1791 | 1790 | ||
@@ -1805,12 +1804,12 @@ | |||
1805 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.Ode" path="OpenSim/Region/PhysicsModules/Ode" type="Library"> | 1804 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.Ode" path="OpenSim/Region/PhysicsModules/Ode" type="Library"> |
1806 | <Configuration name="Debug"> | 1805 | <Configuration name="Debug"> |
1807 | <Options> | 1806 | <Options> |
1808 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1807 | <OutputPath>../../../../bin/</OutputPath> |
1809 | </Options> | 1808 | </Options> |
1810 | </Configuration> | 1809 | </Configuration> |
1811 | <Configuration name="Release"> | 1810 | <Configuration name="Release"> |
1812 | <Options> | 1811 | <Options> |
1813 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1812 | <OutputPath>../../../../bin/</OutputPath> |
1814 | </Options> | 1813 | </Options> |
1815 | </Configuration> | 1814 | </Configuration> |
1816 | 1815 | ||
@@ -1837,13 +1836,13 @@ | |||
1837 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.BulletS" path="OpenSim/Region/PhysicsModules/BulletS" type="Library"> | 1836 | <Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.BulletS" path="OpenSim/Region/PhysicsModules/BulletS" type="Library"> |
1838 | <Configuration name="Debug"> | 1837 | <Configuration name="Debug"> |
1839 | <Options> | 1838 | <Options> |
1840 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1839 | <OutputPath>../../../../bin/</OutputPath> |
1841 | <AllowUnsafe>true</AllowUnsafe> | 1840 | <AllowUnsafe>true</AllowUnsafe> |
1842 | </Options> | 1841 | </Options> |
1843 | </Configuration> | 1842 | </Configuration> |
1844 | <Configuration name="Release"> | 1843 | <Configuration name="Release"> |
1845 | <Options> | 1844 | <Options> |
1846 | <OutputPath>../../../../bin/Physics/</OutputPath> | 1845 | <OutputPath>../../../../bin/</OutputPath> |
1847 | <AllowUnsafe>true</AllowUnsafe> | 1846 | <AllowUnsafe>true</AllowUnsafe> |
1848 | </Options> | 1847 | </Options> |
1849 | </Configuration> | 1848 | </Configuration> |