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

Bullet integration

Postby cosmo » Sat May 06, 2017 1:58 pm

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)
cosmo
 
Posts: 5
Joined: Sat May 06, 2017 1:29 pm

Re: Bullet integration

Postby CuteAlien » Sat May 06, 2017 2:38 pm

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8300
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Bullet integration

Postby cosmo » Sat May 06, 2017 3:46 pm

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!
cosmo
 
Posts: 5
Joined: Sat May 06, 2017 1:29 pm

Re: Bullet integration

Postby Seven » Sat May 06, 2017 9:51 pm

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.
Seven
 
Posts: 873
Joined: Mon Nov 14, 2005 2:03 pm

Re: Bullet integration

Postby cosmo » Sun May 07, 2017 8:11 am

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?
cosmo
 
Posts: 5
Joined: Sat May 06, 2017 1:29 pm

Re: Bullet integration

Postby CuteAlien » Sun May 07, 2017 1:51 pm

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.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8300
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Bullet integration

Postby Seven » Sun May 07, 2017 3:03 pm

here is an example of how to integrate PhysX with Irrlicht

https://github.com/SevenGameMaker/Cobbl ... anager.cpp
Seven
 
Posts: 873
Joined: Mon Nov 14, 2005 2:03 pm

Re: Bullet integration

Postby cosmo » Mon May 08, 2017 10:15 am

Thank you so much!
cosmo
 
Posts: 5
Joined: Sat May 06, 2017 1:29 pm


Return to Game Programming

Who is online

Users browsing this forum: No registered users and 1 guest