PhysicsEngines

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Compiling libode from source (Linux))
Line 1: Line 1:
 
There are several physics engines available for use in OpenSim. Currently, they are "basicphysics", "OpenDynamicsEngine", "RealPhysX" & "bulletx". The plugin 'basicphysics' is the default and can be seen in the OpenSim.ini file.
 
There are several physics engines available for use in OpenSim. Currently, they are "basicphysics", "OpenDynamicsEngine", "RealPhysX" & "bulletx". The plugin 'basicphysics' is the default and can be seen in the OpenSim.ini file.
  
When starting OpenSim in either Windows or Linux, one can add "-physics=OpenDynamicsEngine" to run the OpenDynamicsEngine instead of basicphysics, or change the corresponding parameter in OpenSim.ini.
+
When starting OpenSim in either Windows or Linux, one can add "-physics=OpenDynamicsEngine" to run the OpenDynamicsEngine (ODE) instead of basicphysics, or change the corresponding parameter in OpenSim.ini.
  
 
When starting OpenSim in Windows, one can add "-physics-RealPhysX" if one has the appropriate DLL's which are not shipped with OpenSim due to EULA constraints.
 
When starting OpenSim in Windows, one can add "-physics-RealPhysX" if one has the appropriate DLL's which are not shipped with OpenSim due to EULA constraints.
Line 7: Line 7:
 
To conclude. basicphysics & OpenDynamicsEngine both are appropriate for Linux and in addition, RealPhysX is appropriate as an option for Windows if the supporting DLL's are available.
 
To conclude. basicphysics & OpenDynamicsEngine both are appropriate for Linux and in addition, RealPhysX is appropriate as an option for Windows if the supporting DLL's are available.
  
== Compiling libode from source (Linux) ==
+
== Compiling ODE from source (Linux) ==
Get the latest source code Vers. 0.8 from http://www.ode.org
+
Get the latest source code Vers. 0.8 for the OpenDynamicsEngine (ODE) from http://www.ode.org
 
Unpack it, switch to the libode source directory and compile it as follows:
 
Unpack it, switch to the libode source directory and compile it as follows:
  

Revision as of 04:57, 1 September 2007

There are several physics engines available for use in OpenSim. Currently, they are "basicphysics", "OpenDynamicsEngine", "RealPhysX" & "bulletx". The plugin 'basicphysics' is the default and can be seen in the OpenSim.ini file.

When starting OpenSim in either Windows or Linux, one can add "-physics=OpenDynamicsEngine" to run the OpenDynamicsEngine (ODE) instead of basicphysics, or change the corresponding parameter in OpenSim.ini.

When starting OpenSim in Windows, one can add "-physics-RealPhysX" if one has the appropriate DLL's which are not shipped with OpenSim due to EULA constraints.

To conclude. basicphysics & OpenDynamicsEngine both are appropriate for Linux and in addition, RealPhysX is appropriate as an option for Windows if the supporting DLL's are available.

Compiling ODE from source (Linux)

Get the latest source code Vers. 0.8 for the OpenDynamicsEngine (ODE) from http://www.ode.org Unpack it, switch to the libode source directory and compile it as follows:

./configure --with-trimesh=gimpact --enable-shared
./ make -k

Copy now the libode.a and libode.so files in the ode/src subdirectory to the opensim bin directory (after having backed up the original files there).

You can also try to configure libode with: --with trimesh=opcode and/or --enable-double-precision (the latter may give problems while loading).

Personal tools
General
About This Wiki