I'm trying to use the open collada framework to read a simple animation file (.dae) exported from Maya. I see that an <animation> xml element will contain a number of <source> elements, a <sampler> element, and a <channel> element.
I have animated a single translation component on a joint node, and all the data looks correct in the .dae file.
Now I try to use the COLLADAFramework library to read this information from file. I implement the IWriter interface, and I can observe all the input and output data for my animation data when I implement COLLADAFW::IWriter::writeAnimation().
However I get stuck when I try to obtain the target for this animation. In my simple case, I have a <channel> element in my .dae file that looks like:
Code :<channel source="#top.translate_top_top.translateZ_top-sampler" target="top/translate.Z"/>
But it is not obvious how to obtain the target "top/translate.Z" from the framework's COLLADAFW::AnimationCurve class.
Can someone point me in the right direction? It feels like I've missed something. Thanks!