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

Thamm, Russell Russell.Thamm at dst.defence.gov.au
Mon Nov 13 15:45:47 PST 2017


UNCLASSIFIED
Hi Paul,

Thanks for your response.

The viewer is single-threaded. Furthermore, I now make all modifications to the scene tree in the render thread (prerender) but I still get the occasional crash in the render thread:

C:\Program Files\Microsoft Visual Studio  9.0\VC\include\vector line 116

Expression("this->_Has_Container()", 0)

Unfortunately the error doesn't occur reliably enough to track down. It does seem to occur when I modify the scene tree.

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.
From: Paul Pocock [mailto:paul.tanja at internode.on.net]
Sent: Thursday, 9 November, 2017 2:50 p.m.
To: OpenSceneGraph Users; Thamm, Russell
Subject: Re: [osg-users] Correct way to modify scene graph [SEC=UNCLASSIFIED]


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<mailto: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/20171113/da771814/attachment.html>


More information about the osg-users mailing list