THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/02/2006 at 07:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: XL 7
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hello out there everybody,
I am trying to develope a BVH-export-plugin fpr Cinema 4d XL7 in C.O.F.F.E.E. to export a skeleton-animation into poser (5). I found some docs about bvh-format and some example-sources in python for a bvh-export (I think it was made for Maya). I learned that bvh-files do need a different euler-rotation-order than used in Cinema and found a source, where this order is calculated from XYZ-order. I am nearly done except for the problem, that in Poser's BVH-files the rotaion-order differs between the channels (depending on where the bodypart is pointing to, parallel to x-axis/y-axis or z-axis).
So my question: Is this necessary and if yes, why does bvh need the channelinformation then? It seems not to work properly if I always set the rotaions-order in the hierarchy-section of all parts to XYZ or any other.
From the documentation of BVH I got the info (if I was not mistaken), that the rotational data is given as euler-rotations (like HPB in Cinema).
So there should be no need to recalculate them but if I do not my skeletion is wrapped like a burito after reimporting it to cinema :).
Does anybody have experiences on creating bvh-files and could give me a hint? Perhaps anybody has seen a bvh-export-plugin for Cinema I did not find?
And last, but not least: In earlier versions of Cinema the bvh-import seems to have been done by a seperate plugin. I do not have this anymore in my version but it would be really helpfull to take a look at its source.
So if anyone has the source /the plugin I would be gratefull to get it (if this does not violate any license, of course), just to see, what conversions are done to the rotational-data from the motion-section for import. (I assume that I will have to do the inverse process for exporting then).
Thanks for your help everybody,
best whishes,
COFFEJUNKIE
PS: I will release this as open-source if it works, so there is no possibility to get money from it.