Hello YangXiao,
But this code sometimes success,sometimes fail! I means code run sequence: 1: PickHandler's pick() code; 2: draw scene code; or they run parallel?
Yes indeed, they may run in parallel depending on your threading model. What you can do is set your node's datavariance to DYNAMIC. That will prevent that specific node's update/cull/draw to happen while another thread is doing things too.
J-S -- ______________________________________________________ Jean-Sebastien Guay [EMAIL PROTECTED] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org