Hi, this is quite a noobish question, but so far I have just been playing around with cubes. How would I go about loading a mesh (say from a 3ds file) into the Bullet world?
Cheers.
How to load a mesh from file?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: How to load a mesh from file?
Bullet demos support import of 3 different file formats in the samples:
- Collada Physics (.dae), there exist exporters for 3ds Max, Maya and Blender. This supports constraints, rigid body information and most collision shapes, including compound shapes.
Just for static mesh geometry:
- .obj files (most 3d packages can export this format), see ConvexDecompositionDemo for import sample code
- Quake .bsp files, see Demos/BspDemo
Hope this helps,
Erwin
- Collada Physics (.dae), there exist exporters for 3ds Max, Maya and Blender. This supports constraints, rigid body information and most collision shapes, including compound shapes.
Just for static mesh geometry:
- .obj files (most 3d packages can export this format), see ConvexDecompositionDemo for import sample code
- Quake .bsp files, see Demos/BspDemo
Hope this helps,
Erwin
Lorian wrote:Hi, this is quite a noobish question, but so far I have just been playing around with cubes. How would I go about loading a mesh (say from a 3ds file) into the Bullet world?
Cheers.
-
- Posts: 4
- Joined: Wed Feb 14, 2007 4:20 pm
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA