How to make a model for Bullet?

meclory
Posts: 12
Joined: Wed Jun 18, 2008 4:29 pm

How to make a model for Bullet?

Post by meclory »

Hi,

I want to make a dynamic simulator using Bullet. I think that the first thing to do is to constitute mechanism models to be analyzed by Bullet. What will be the best way(or tool) to constitute such models? Please let me know some methods.

Thank you very much~!
Wavesonics
Posts: 71
Joined: Thu May 22, 2008 8:03 pm

Re: How to make a model for Bullet?

Post by Wavesonics »

I believe what you want is Blender (http://www.blender.org/). Bullet started out as blender's physics extension, and Bullet can save and load physics data in the COLLADA (http://www.collada.org/) format which blender can save and load as well.
meclory
Posts: 12
Joined: Wed Jun 18, 2008 4:29 pm

Re: How to make a model for Bullet?

Post by meclory »

Thank you very much !

So, we can constitute a mechanism using mechanical primitives (such as spring, damper, mass, various joints, and so on...) in the Blender tool? Then the next thing is to make a code using Bullet C/C++ API which can :
1. load the model
2. change values of parameters which are related to the degree-of-freedom.
3. render the simulation using OpenGL or something

How about this process? Is it feasible?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: How to make a model for Bullet?

Post by Erwin Coumans »

meclory wrote: So, we can constitute a mechanism using mechanical primitives (such as spring, damper, mass, various joints, and so on...) in the Blender tool? Then the next thing is to make a code using Bullet C/C++ API which can :
1. load the model
2. change values of parameters which are related to the degree-of-freedom.
There are various ways to load models, the best supported method is using the COLLADA .dae importer, using Extras/BulletColladaConverter. BulletColladaConverter can load and save Bullet dynamics worlds, using COLLADA DOM and libxml (both are included in the Bullet sources in the Extras folder) . See ColladaDemo how to use this. It handles import of collision shapes, rigid body information (mass, friction etc) and constraints.
3. render the simulation using OpenGL or something
Bullet doesn't deal with graphics, that is up to the user.

Hope this helps,
Erwin
Bullet started out as blender's physics extension
No, a predecessor of Bullet started as a physics engine for a PlayStation 2 game. Then the code was cleaned up and evolved into open source. After it went open source, it was integrated into Blender and other applications and commercial games.
Wavesonics
Posts: 71
Joined: Thu May 22, 2008 8:03 pm

Re: How to make a model for Bullet?

Post by Wavesonics »

No, a predecessor of Bullet started as a physics engine for a PlayStation 2 game. Then the code was cleaned up and evolved into open source. After it went open source, it was integrated into Blender and other applications and commercial games.
Oh thats cool, i had no idea it had a past before Blender!