Skip to main content
History: MogreNewt
View published page
Source of version: 20
(current)
{maketoc} !Introduction MogreNewt is a an add-on for ((Mogre)), which offers physics functionality and collision detection. Internally it contains the free, closed-source physics library [http://www.newtondynamics.com|Newton Game Dynamics] (often just called ''Newton''). By use of the wrapper ''MogreNewt'' it's possible to use the Newton library with Mogre (.NET). MogreNewt is a port of ((OgreNewt)), which is a wrapper for using Newton with Ogre (C++). Precompiled files you find in some binary bundles: * In [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=29714|this forum topic]. (Mogre 1.7.3 and Newton 2.35) * In [http://www.ogre3d.org/addonforums/viewtopic.php?p=53122#p53122|this forum post]. (Mogre 1.7.1 and Newton 2.25) It's also possible to compile MogreNewts by the tool ((MogreBuilder)) with the option __-mogrenewt__. (Currently MogreBuilder doesn't do the whole build of MogreNewt. Look to the [http://www.ogre3d.org/addonforums/viewtopic.php?p=100289#p100289|build instructions] to perform the recent steps manually.) !Where to get help When you need information how to do something with Newton or if you have problems by using Newton we would suggest this: * For __general questions__ (how Newton works, its logic, etc.) you find good help in the external __[http://newtondynamics.com/forum|Newton forum]__. * For questions how to do something in __interaction with Ogre__ (and Mogre), you can use the __[http://www.ogre3d.org/addonforums/viewforum.php?f=4|OgreNewt section]__ of the Ogre Add-ons forum. There is a better chance to get an answer, because there are much more users who know to handle with Newton. In the Mogre section are not so much people with Newton knowledge (because C++ Ogre is more common). * For question which are __specific for Mogre and MogreNewt__ a good place is [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=9193|this topic] in the Mogre forum. It also contains code snippets. A good help could also be: * [http://www.newtondynamics.com/wiki/index.php5?title=Main_Page|Newton wiki] * [http://www.runehunter.phpnet.us/NewtonHelp.html|Newton API description] - seems to be only related to Newton 1.x, but most functions are similar !Binary notes !!Pre-compiled binaries Most easy is to use precompiled binaries. But for this it's important that the MogreNewt wrapper was build against the same Mogre version as used by for application. (To make it more clear with an example: When you use Mogre 1.7.3 with your application and a MogreNewt library, which was against Mogre 1.7.1 then you will get trouble.) One way to avoid this problems: Usa a binary bundle, which still contains Mogre and MogreNewt. (e.g. [http://www.ogre3d.org/addonforums/viewtopic.php?p=81869#p81869|Mogre 1.7.1 bundle] by user Cygon) An other way is to build MogreNewt yourself. !!Build yourself The sources you find inside of the [https://bitbucket.org/mogre/mogreaddons|MogreAddons repository] in the subdirectory ''MogreNewt''. To download the sources, use [http://tortoisehg.bitbucket.org/download|TortoiseHG] or run the ((MogreBuilder)) with the option "-mogrenewt". Have a look to the file __Build_instructions.txt__ ([https://bitbucket.org/mogre/mogreaddons/src/default/MogreNewt/Build_instructions.txt|view online]). !See also * ((OgreNewt)) * ((OgreNewt 2)) * [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=9193|MogreNewt for Newton 2.0] - forum thread - __ask questions here__ * ((Ray query with MOGRE)) * ((Ray classes in MOGRE)) * ((Collision detection with Newton)) - basic knowledge * [http://www.ogre3d.org/addonforums/viewtopic.php?p=72651#p72651|Demo application for collision detection] with MogreNewt * [http://ogreaddons.svn.sourceforge.net/viewvc/ogreaddons/trunk/ogrenewt/demos/|Example code] (Ogre) * [http://www.runehunter.phpnet.us/NewtonHelp.html|Documentation of Newton API] - good to understand the functionality * [http://www.ogre3d.org/addonforums/viewtopic.php?p=52521#p52521|Use buoyancy] - code snippet * [http://www.newtondynamics.com|newtondynamics.com] - website of the physics library * [http://www.newtondynamics.com/wiki|Newton wiki] * [http://www.ogre3d.org/addonforums/viewtopic.php?p=58876#p58876|Mogre snippet] - how to enable the new debugging system (outdated?) * ((Mogre XML commentation tool)) - can create commentations in Visual Studio for MogreNewt class members * ((PhysX Candy Wrapper)) - an alternative physics library for Mogre * ((BulletSharp)) - second physics alternative for Mogre !Outdated information Note: These sections are foremost outdated, so they were moved to the bottom. Sorry that there is no fresh information on this wiki page. !!Precompiled Binaries You can find precompiled binaries of MogreNewt in the latest [http://sourceforge.net/project/showfiles.php?group_id=174997|MOGRE SDK]. __You also need the 'Newton.dll' from the [http://www.newtondynamics.com/downloads.html|Newton Game Dynamics SDK 1.53]. Install the Newton SDK and copy NewtonSDK\sdk\dll\Newton.dll to the OgreSDK\bin\debug and release folders.__ For MogreNewt 2.0, you can find the SDK including binary [http://newtondynamics.com/forum/downloads.php here]. !!Samples You can find the MogreNewt samples on MOGRE's SVN source on [https://mogre.svn.sourceforge.net/svnroot/mogre/tags/MogreNewt-1.53/Samples]. You will need a SVN client like [http://tortoisesvn.tigris.org|TortoiseSVN] to download the files. For __Newton 2.0__ you will find the samples here [https://mogre.svn.sourceforge.net/svnroot/mogre/trunk/MogreNewt/Samples] !!MogreNewt Source The full SVN source of MogreNewt for __Newton 1.53__ is on [https://mogre.svn.sourceforge.net/svnroot/mogre/tags/MogreNewt-1.53] The current source of MogreNewt on SVN are for the __Newton 2.10 beta__ [https://mogre.svn.sourceforge.net/svnroot/mogre/trunk/MogreNewt]. Or download the tarball archive [http://mogre.svn.sourceforge.net/viewvc/mogre/trunk/MogreNewt|here]. The __Newton 2.0 library__ you find here: [http://www.newtondynamics.com/forum/viewtopic.php?f=9&t=4922] For Windows use the ''newton.dll'' file from package subdirectory ''sdk\x32\dll_vs9''. (even if you have 64 bit Windows, because MogreNewt by default compiles against this) !!!Building MogreNewt 2.0 For Mogre 1.4 The current version of MogreNewt 2.0 is for the 1.6 version of Mogre. To compile it for the Mogre 1.4 version you need to edit ''OgreNewt_Body.cpp'': Add ''#include "OgreNoMemoryMacros.h"'' before ''Joint::Destructor'' in ''OgreNewt_Joint.cpp'' and ''Body::NewtonDestructor''. Also add ''#include "OgreMemoryMacros.h"'' after the same functions. !!Known bugs MogreNewt 2.0 * Some violation exception in treecollision class: [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=10997] * ''MogreNewt::CollisionPrimitives::ConvexHull'' exception if the entity is a ((ManualObject)). * ''MogreNewt::CollisionPrimitives::ConvexHull'' exception if the Mogre object has a scale of 0 * ''MogreNewt::World::SetThreadCount(2)'' produces a bug with bounding box updating of Ogre object: [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=11247&p=64439]
Search by Tags
Search Wiki by Freetags
Latest Changes
Compiled API Reference
Overlay Editor
Introduction - JaJDoo Shader Guide - Basics
RT Shader System
RapidXML Dotscene Loader
One Function Ogre
One Function Ogre
...more
Search
Find
Online Users
140 online users
OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username
Password
CapsLock is on.
Remember me (for 1 year)
Log in