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~!
How to make a model for Bullet?
-
- Posts: 71
- Joined: Thu May 22, 2008 8:03 pm
Re: How to make a model for Bullet?
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.
-
- Posts: 12
- Joined: Wed Jun 18, 2008 4:29 pm
Re: How to make a model for Bullet?
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?
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?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: How to make a model for Bullet?
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.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.
Bullet doesn't deal with graphics, that is up to the user.3. render the simulation using OpenGL or something
Hope this helps,
Erwin
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.Bullet started out as blender's physics extension
-
- Posts: 71
- Joined: Thu May 22, 2008 8:03 pm
Re: How to make a model for Bullet?
Oh thats cool, i had no idea it had a past before Blender!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.