Pawan Harish wrote:
Hi,
I am building a system in which I have to send an Open Scene Graph to
another machine incrementally over network. I would like to give all
nodes a uniqueID in the main memory itself rarther than only when
writing to a file, so I can keep track of which nodes have been sent and
also help recreate the OSG at the recieving end. How can I do that?
Currently I am using a nodevisitor traversal but it doesn't cover
statesets, textures and materials. Also while writing the partial scene
graph I am using writeNodeFile(), this writes all data below a certain
node wheras I want to write only selective nodes or the data of one node
only, rarther than the entire graph below it. I want to send a
referenced nodes only once and not with every node file I send. Is there
any existing solution to this? Thanks for any help.
Well, the object's address is generally considered to be unique. It's either 32-bit or
64-bit depending on your architecture.
Pawan Harish
--
Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/
3D Earth: http://3d-earth.net/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/