8
$\begingroup$

I added basic rigidbody characteristics to a default sphere in Blender and exported it to Collada but the physics information isn't exporting.

How can I get the physics data to be exported along the geometry?

Thanks in advance.

I'm using Blender 2.68.4

EDIT:

As for Blender 2.68.4 there is no support for physics data to COLLADA :(

Althought it seems that there is already a patch to export physics:

http://wiki.blender.org/index.php/Dev:2.5/Source/Architecture/COLLADA

https://projects.blender.org/tracker/index.php?func=detail&aid=25601&group_id=9&atid=127

This patch was already accepted into upstream so maybe in a near version support for this is added :D

I will leave the question open to notify the ones that favorites this question once this functionality is added.

IN THE MEANTIME:

You can solve this issue by:

  • Saving the scene with physics in Blender format (.blend)
  • Importing the .blend file into Unity Engine (free edition)
  • Use the Unity Collada Exporter to get a fully physics functional COLLADA .dae file.

Credits to Rémi Arnaud.

$\endgroup$
  • $\begingroup$ @gandalf3: Thanks for your comment, unfortunately, what I want is to export the whole scene with its geometry, materials, etc and the models physics as well. How can I do that? $\endgroup$ – diosney Sep 13 '13 at 23:33
  • 1
    $\begingroup$ FYI (all readers), I'm guiding diosney into adding physics support to Blender. $\endgroup$ – jesterKing Sep 21 '13 at 23:01
1
$\begingroup$

Assuming you want the motion generated by the rigid-body simulation (not the mass and other parameters), you can bake the simulation to keyframes.

There are two ways to do this:

Method one:
In the Tool shelf (N in the 3D view) > Rigid body tools, press Bake to Keyframes:

enter image description here

Method two:
Press 3D view > Header > Object > Animation > Bake action:

enter image description here

$\endgroup$
  • $\begingroup$ @gandalf3: Thanks for your help, unfortunately, what I want is to export the whole scene with its geometry, materials, etc and the models physics as well. How can I do that? $\endgroup$ – diosney Sep 13 '13 at 23:34
  • $\begingroup$ @gandalf3: The final purpose is to use the scene to be imported in a game engine that supports Collada, but the .dae file exported by Blender doesn't have any physics information :( $\endgroup$ – diosney Sep 13 '13 at 23:35
  • $\begingroup$ @diosney AFAIK, the COLLADA exporter does not support exporting the physics data (mass, constraints, etc.). You can bake the simulation to a normal animation, (as in my answer) and then export, this will export the animation data as well as geometry. Material exporting is limited, see the wiki. $\endgroup$ – gandalf3 Sep 13 '13 at 23:42
  • $\begingroup$ I tested what you suggested but don't worked for me :( $\endgroup$ – diosney Sep 14 '13 at 2:36
  • $\begingroup$ @diosney How did it not work? (what happened?) $\endgroup$ – gandalf3 Sep 14 '13 at 2:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.