[osg-users] Correct way to modify scene graph [SEC=UNCLASSIFIED]

Paul Pocock paul.tanja at internode.on.net
Wed Nov 8 20:20:21 PST 2017


Hi Russell,

I suppose setting the threading model to SingleThreaded is not an 
option, maybe set Root Node to DYNAMIC variance? I can't remember the 
actual call.

good luck,


On 09/11/17 14:49, Thamm, Russell wrote:
>
> *UNCLASSIFIED*
>
> Hi
>
> I am in the process of porting an MFC application from plib to osg.
>
> Currently, if I want to actually modify the scene graph (adding, 
> deleting nodes etc) while the render thread is running I do the following:
>
> parentNode->setNodeMask(0);
>
> modify scene graph below parent node
>
> parentNode->setNodeMask(~0);
>
> This seems to work but is there a better way?
>
> Cheers
>
> Russell
>
> *IMPORTANT*: This email remains the property of the Department of 
> Defence and is subject to the jurisdiction of section 70 of the Crimes 
> Act 1914. If you have received this email in error, you are requested 
> to contact the sender and delete the email.
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171109/8cf6f186/attachment.html>


More information about the osg-users mailing list