I read in a Collada file with a composite scene node structure. Here a short trace of the structure with scene node name and scene node type:
Code: Select all
"MyNode2" dmmy
"MyNode-mesh" mesh
"MyNode_001" dmmy
"MyNode_002-mesh" mesh
"MyNode_002" dmmy
"MyNode_002-mesh" mesh
If I want to apply a position to that node I have to include a parent (empty) node because of the 'DummyTransformationSceneNode'.
But when I want to make a copy of that node using the clone() method the node stucture will not be cloned because 'DummyTransformationSceneNode' does not implement the clone() method and the ISceneNode::clone() method does nothing.
I think I have two options to clone the node structure:
1. Reading the Collada file multiple times adding new parent (empty) scene nodes.
2. Writing a 'clone' function out of the box.
What do you think would be the best way to go? Do you have any other ideas?
Maybe a last question: Can someone tell me why clone method is not implemented for 'DummyTransformationNodes'?
Hope I could make myself understood.
Thanks,
Voxel