marciano wrote:
Did you already try the latest Blender 2.5.2? AFAIK they improved the collada support but I'm not sure where they stand at the moment. The best would be of course if the standard (ColladaConv driven) content pipeline could be used for Blender as well.
You mean 2.5.0 alpha 2? Yes, I tried it, and it's a lot better. The two remaining problems I have with it are that it doesn't have an option for sampling animation, so you have to do that inside the editor, and it doesn't support exporting multiple animations at once, but then I'm not sure ColladaConv supports that either? That issue aside, I think once Blender 2.5 is released, we can use the Collada content pipeline instead of having to write a new compatible exporter.
In other news, I have fixed the Blender exporter's animation support. What I found was that the bone transformations didn't work when the meshes were not centered around the origo with no rotation. I fixed this by applying the transformations to the vertices, so the .scene.xml doesn't have any transformations for the meshes at all. This seems to be exactly what happens when I export from Blender 2.5 alpha.
I have also made other modifications to the exporter. I've added a base path parameter to cope with the switch from implicit referencing to directories for different resource types to explicit referencing. ("foo.anim" -> "animations/foo.anim") I already posted that as a patch in the Tools section of the boards. My code still requires more cleanup, but I have attached my version of the exporter for anyone that might want to use it. I will post a proper patch later once I'm done cleaning it up and checking for any obvious bugs I may have caused while hacking on it. Use at your own risk, but it works for me right now. :-)