Bullet integration

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
cosmo
Posts: 17
Joined: Sat May 06, 2017 1:29 pm

Bullet integration

Post by cosmo »

Hi,
I'm trying to integrate Bullet Physics SDK into Irrlicht.
I used cMake Gui to generate Visual Studio 2013 Build. Then I opened ALLBUILD proj and rebuild the HelloWorld example to obtain the libs.
After that, I configureted my Irrlicht proj properties (Debug mode) as follows:
c/c++->General->Additional Include Dir: path to the VS2013 source folder
VC++ Dir-> Include Dir: path to the source VS2013 folder and Library Dir: path to the lib folder
Linker->Input (BulletDynamics_Debug.lib; BulletCollision_Debug.lib; LinearMath_Debug.lib)

But when I build, Vs tossed out this kind of error: "LNK2038 mismatch detected for runtimelibrary: the value 'MTd_StaticDebug' does not match the 'MDd_DynamicDebug' value in Main.obj "
What's wrong? How can I solve this issue?
More in general, which is the correct way to integrate Bullet into Irrlicht apps?
Thanks and kind regards!

(cosmo)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Bullet integration

Post by CuteAlien »

Your application and it's libraries all have to use the MS runtime libraries the same way. The setting inside VS is in Configuration Properties - C/C++ - Code Generation - Runtime Library.
Not sure how to set it via CMake right now.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
cosmo
Posts: 17
Joined: Sat May 06, 2017 1:29 pm

Re: Bullet integration

Post by cosmo »

Ok, thanks!
But, in your opinion, which is the best way to integrate Bullet into Irrlicht for physic simulation?
I found some code examples but no tutorials about the configuration process in Visual studio... :roll:
Regards!
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Re: Bullet integration

Post by Seven »

I don't use Bullet, but if you are just wanting a physics integrations, I have a pretty decent NVidia PhysX wrapper that I can share.
cosmo
Posts: 17
Joined: Sat May 06, 2017 1:29 pm

Re: Bullet integration

Post by cosmo »

Yes, I'm interested in physics integrations. Not only Bullet, also another library is fine for me.
I will give a sneak peek on PhysX, but in the meantime, please could you supply a brief introduction about it, particullary aimed to Irrlicht integration?
Is it easy to grasp?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Bullet integration

Post by CuteAlien »

The MS runtime libraries having to be identical is something you have to care about independent of which 2 libraries you put together. Maybe some more link about that helps: http://stackoverflow.com/questions/1471 ... imelibrary
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Re: Bullet integration

Post by Seven »

here is an example of how to integrate PhysX with Irrlicht

https://github.com/SevenGameMaker/Cobbl ... anager.cpp
cosmo
Posts: 17
Joined: Sat May 06, 2017 1:29 pm

Re: Bullet integration

Post by cosmo »

Thank you so much!
Post Reply