blender integration?

anlumo

16-10-2007 01:46:54

Hi,

Since blender also uses the bullet engine, it has a nice UI for setting all the parameters required (like mass, type of object and collision shape). Is there a way to get those automatically into OgreBullet?
Maybe I could use the COLLADA exporter in blender to export the scene and import it into Ogre3D using the ColladaPlugin from ogreaddons and bullet's own support, but that sounds kinda hackish to me (not using the native Ogre3D format might be suboptimal, too).
Does anybody have a better idea? This should be a common problem for real-world applications.

HiddenBek

01-11-2007 22:48:18

This would be very useful, but integrating everything in a sane fashion sounds like a big job. I plan to skip the ColladaPlugin dependency and export to both COLLADA and .mesh right out of blender, but otherwise I'll be doing exactly what you proposed, at least at first. It would be nice if the ColladaPlugin supported physics, but I doubt I'll ever have time to add it myself.

When Tuan first announced OgreBullet, the author of the echo-plugin (an Ogre/Blender integration project) began work on a parser for .blend files that could extract mesh and physics information. This could allow Ogre to deal with .blend files directly, which would be very convenient for what I'm working on, but I don't think he got very far with the idea. The source is available at http://sourceforge.net/projects/echo-plugin if you want to take a look. It might be a good starting point.

anlumo

01-11-2007 23:00:07

I plan to skip the ColladaPlugin dependency and export to both COLLADA and .mesh right out of blender, but otherwise I'll be doing exactly what you proposed, at least at first.

Well, since there's a collada importer for bullet, that's probably the fastest way to get it working, but you need the whole mesh data twice...

Thanks for the link!