I found a nasty gotcha associated with moving nodes around and then
sending changes over the network.  Since an OSG::Node can only have
one parent, if you use Node::addChild(mynode), mynode loses any parent
that it had before and gains a new parent.

The resulting scene graph looks fine on my local machine, but changes
do not propogate correctly to my receiving machine.  I end up with two
copies of mynode on the receiving machine.

This problem goes away if I explicitly remove mynode from its original
parent using subChild before adding it to a new parent.  Would it be
possibly to fix this so that the appropriate changes get transmitted
to the receiving machine or should I just be more careful with my
code?
--
Terry Welsh - mogumbo 'at' gmail.com
www.reallyslick.com  |  www.infiscape.com  |  www.vrsource.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to