Setup Newton missing files

Anonymous

12-01-2007 12:36:35

I found this tutorial to setup the newton engine:

http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics

OK. the necessary libs are:

ogrenew/ogremain/lib/debug <or release>
ogreaddons/OgreNewt_Main/lib/debug <or release>
NewtonSDK/dll/


BUT, the "ogreaddons/OgreNewt_Main/lib/debug <or release>" lib does not exist on the folders of Walaber library files:
http://walaber.com/misc/OgreNewt.rar

Is the "lib folder" missing from OgreNewt.rar file?

Thanks
Felipe

Maklaud

12-01-2007 12:55:42

Yes, it dosen't exist, because you must compile OgreNewt ;)

Anonymous

12-01-2007 13:03:34

I'm sorry about these newbie questions. But how do I do it?

Maklaud

12-01-2007 15:34:16

From this tutorial
http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics
you can understand, how you must create your directories. Then, ufter extract OgreNewt.rar in directory, where it must lay, open OgreNewt[_vc71].sln. Then go to menu - Build->Batch Build. In dialog choose "Select All" and push Build.
Maybe you will have a problem with RagDoll Demo. I can't tell you, how to compile it, I couldn't do it :( But there are many topics about it in this forum. Just search ;)

Anonymous

15-01-2007 18:48:20

From this tutorial
http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics
you can understand, how you must create your directories. Then, ufter extract OgreNewt.rar in directory, where it must lay, open OgreNewt[_vc71].sln. Then go to menu - Build->Batch Build. In dialog choose "Select All" and push Build.
Maybe you will have a problem with RagDoll Demo. I can't tell you, how to compile it, I couldn't do it :( But there are many topics about it in this forum. Just search ;)


Yet newby questions!!!
:oops: :roll: :oops: :roll:

Ok I understood, my doubt was about if was necessary to compile the OgreNewt project. I compiled and created the OgreNewt.dll

Running the http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics Tutorial, The following error appeared:


In file included from ../OgreNewtApplication.cpp:1:
../.\ogrenewtapplication.h:25:32: warning: no newline at end of file
../OgreNewtApplication.cpp: In member function `virtual void OgreNewtApplication::createFrameListener()':
../OgreNewtApplication.cpp:122: error: no matching function for call to `OgreNewt::BasicFrameListener::BasicFrameListener(Ogre::RenderWindow*&, Ogre::Camera*&, Ogre::SceneManager*&, OgreNewt::World*&, int)'
C:/ogrenew/ogreaddons/ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:38: note: candidates are: OgreNewt::BasicFrameListener::BasicFrameListener(const OgreNewt::BasicFrameListener&)
C:/ogrenew/ogreaddons/ogrenewt/OgreNewt_Main/inc/OgreNewt_BasicFrameListener.h:47: note: OgreNewt::BasicFrameListener::BasicFrameListener(Ogre::RenderWindow*, Ogre::SceneManager*, OgreNewt::World*, int)
make: *** [OgreNewtApplication.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project Newton


Ok, I "solved" the error changing the:


mOgreNewtListener = new OgreNewt::BasicFrameListener( mWindow, mCamera, mSceneMgr, mWorld, 120 );


TO:


// mOgreNewtListener = new OgreNewt::BasicFrameListener( mWindow, mSceneMgr, mWorld, 120 );


"Without the mCamera".

and did run ok, But the things become totaly white. And when I exit the program a message error appear: "OgreRender Window, etc, etc."

Why can't I find the function bellow?

OgreNewt::BasicFrameListener::BasicFrameListener(Ogre::RenderWindow*&, Ogre::Camera*&, Ogre::SceneManager*&, OgreNewt::World*&, int)

Maklaud

15-01-2007 18:57:15

Yes, I know what's the problem :) I had it too ;)
Add into destructor
OgreNewtonApplication::~OgreNewtonApplication(void)
this line:
OgreNewt::Debugger::getSingleton().deInit();
after
delete m_World;
This must help you...

Anonymous

15-01-2007 19:06:52

Yes, I know what's the problem :) I had it too ;)
Add into destructor
OgreNewtonApplication::~OgreNewtonApplication(void)
this line:
OgreNewt::Debugger::getSingleton().deInit();
after
delete m_World;
This must help you...


Very Good!
It solved the problem! Now I'll study more the example and more about the BasicFrameListener to know why the things appear in white (maybe it is default like that).

walaber

15-01-2007 21:49:12

sorry about that. the wiki example is a bit outdated. it some kind soul would like to update it, that would be GREAT :P

Maklaud

16-01-2007 08:19:54

2walaber:
I saw solution of this problem in your OgreNewt-demos ;)