[osg-users] porting from osg-3.4.0 to osg-3.6.3

Robert Osfield robert.osfield at gmail.com
Tue Oct 9 09:20:49 PDT 2018

Hi Herman,

On Tue, 9 Oct 2018 at 16:05, Herman Varma <hermanvarma at eastlink.ca> wrote:
> Yes  VTP calls  setEventVisitor
> m_pOsgViewer->setEventVisitor(NULL);

That's an easy one then, just comment that line out.

The motivation behind the above line is a bit mus-guided as the OSG
keeps track whether a scene graph has an even callbacks and for the
subgraphs that don't contain any it doesn't do any traversal, so if
you don't use event callbacks the event traversal is close to a non

The time you do use an event callback you'll only pay the cost for the
traversal down to the node that has the callback.

If you really do want to switch off the event visitor then setting the
EventVisitor TraversalMask to 0x0 will switch off traversal.


More information about the osg-users mailing list