Collada to Bullet loader/importer
Posted: Tue Oct 09, 2007 9:10 am
Hi
I've searched the forums and google but haven't really found a good answer to the question so I thought I'd throw it out.. I see everywhere that Bullet has support for Collada, but there's no info on how to load a collada file into bullet.
There is the Collada viewer in the demos, but from the look of it, it doesn't use any collada loader class in bullet. Instead it has it's own class for doing that. Surely it must be possible to have a Collada loader in the actual Bullet API?
The perfect thing would be to have something along the lines of this:
Note that I'm very new to bullet so there might be more stuff (such as setting transformation etc.) that should be done in the code above, but in principle something like that would be really nice.
What are the options available now? Copying the ColladaConverter.h and cpp into your own projects? If so, why isn't it a part of Bullet?
Thanks for any help.
I've searched the forums and google but haven't really found a good answer to the question so I thought I'd throw it out.. I see everywhere that Bullet has support for Collada, but there's no info on how to load a collada file into bullet.
There is the Collada viewer in the demos, but from the look of it, it doesn't use any collada loader class in bullet. Instead it has it's own class for doing that. Surely it must be possible to have a Collada loader in the actual Bullet API?
The perfect thing would be to have something along the lines of this:
Code: Select all
btRigidBody* body = btLoadCollada( "C:\mymodel.dae" );
m_dynamicsWorld->addRigidBody(body);
What are the options available now? Copying the ColladaConverter.h and cpp into your own projects? If so, why isn't it a part of Bullet?
Thanks for any help.