Hi Roman,

Hi,
I have to use clones of models in my subgraph and animate parts of  model.
My setup is
1.load model
2.clone model (DEEP_COPY_NODES|DEEP_COPY_USERDATA)
3.find parts nodes by using node name
4. use callback to animate parts
Because of hundreds of clones I want to speed up process by finding parts nodes 
in base model and somehow calculate node pointer in clone
Is there some way to get node pointer in clone model if you know node pointer 
in base model?
You can use the userdata on the base models (part) node to place a map or whatever there. Also you could simply store your node pointers somewhere else and map them to the base node. But I don't really understand the problem. You are already setting callbacks to the nodes to be animated. So you know the part node when it is updated.

Cheers
Sebastian

Thank you!
Cheers,
Roman

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60824#60824





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to