Hi,
I’ve been writing an importer for COLLADA and everything has been going great till today. My issue is that I’m using OpenCOLLADA so cameras have an extra node that specifies a target. Now this means I have the normal camera data and a
</optics>
<extra>
<technique profile="OpenCOLLADA3dsMax">
<target>#Camera01.Target</target>
</technique>
And for the life of me I can’t resolve this back to the node that actually points at this. If anyone could provide me with a hint how to resolve that fragment back to the node element it points at I would really appreciate it.
<node id="node-Camera01.Target" name="Camera01.Target">
<matrix>-1.6 -4.3 -1 -3.0 -1 7.1 1.6 -6.9 0 1 -4.3 15.0 0 0 0 1</matrix>
</node>
I’ve tried
daeElement *target = camera->getDescendant("target");
domAny* target_val = daeSafeCast<domAny>(target);
daeSIDResolver resolver(target->getAncestor("visual_scene"), target_val->getValue());
daeElement *element = resolver.getElement();
but this always returns a state of 2 (so it can’t find the element) while the node is clearly there. Anyone have any ideas?