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

Robert Osfield robert.osfield at gmail.com
Tue Nov 14 02:20:45 PST 2017


Hi Russel,

On 13 November 2017 at 23:45, Thamm, Russell
<Russell.Thamm at dst.defence.gov.au> wrote:
> 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:

If you are running the viewer SingleThreaded then there isn't a
dedicated rendering thread, there will by just the main application
thread doing update, event, rendering traversals (cull and draw
dispatch).

So are you running single threaded or multi-threaded?

Also why modify the scene graph in rendering traversal?

It's really hard to know what you are doing and why you are doing it.
The only thing I can get a strong impression is that you are doing
something in an odd way and getting a crash.

I would suggest taking a big step back from the problem and explain to
us what you are trying to achieve with updating the scene graph and we
can point you in the right direction of how to do it efficiently.

Robert


More information about the osg-users mailing list