I want to export the result of a finite element simulation to a COLLADA file, but I don't know how to encode it (I am new to COLLADA). In short, the data consists of a set of static triangle meshes for each time step in the simulation. I can export each individual 'frame' to individual .dae files, but now I want to pack all the frames into a single file and define the set at an animation.
What I want to do is conceptually like this:
Code :<library_geometries> <geometry id="Part_1_frame1" name="Part_1_frame1"> <mesh>...</mesh> </geometry> <geometry id="Part_2_frame1" name="Part_2_frame1"> <mesh>...</mesh> </geometry> <geometry id="Part_1_frame2" name="Part_1_frame2"> <mesh>...</mesh> </geometry> <geometry id="Part_2_frame2" name="Part_2_frame2"> <mesh>...</mesh> </geometry> ... up to frame n </library_geometries> <library_animations> <animation> <input="Part_1_frame1" time="0"/> <input="Part_1_frame2" time="0.1"/> <input="Part_1_frame3" time="0.2"/> <input.../> </animation> <animation> <input="Part_2_frame1" time="0"/> <input="Part_2_frame2" time="0.1"/> <input="Part_2_frame3" time='0.2"/> <input.../> </animation> </library_animations>
How can I define an animation of static meshes like this? Is it possible at all? And will DCC tools be able to handle it? The purpose of this exercise is to be able to create high quality renderings and animations in tools like Maya and MAX.
I have considered creating a set of visual_scene's instead. Or morphing.. I would really appreciate it if someone could point me in the right direction.