Re: [osg-users] CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback

2017-09-25 Thread Robert Osfield
Hi Lincoln, If you know that your updates don't always need calling you customize the behaviour of the viewer by subclassing from CompositeViewerViewer and override the run() or checkNeedToDoFrame() method and let this code decide when a new frame is required. Robert.

Re: [osg-users] CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback

2017-09-25 Thread Lincoln Nxumalo
Hi Robert, Okay thanks for the reply. That makes sense. Thank you! Cheers, Lincoln -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72062#72062 ___ osg-users mailing list

Re: [osg-users] CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback

2017-09-25 Thread Robert Osfield
Hi Linclon, This is done by design, if you've put an update callback into the scene graph then you are tell the world that you plan to update it, typically one would move a transform or alter some visual state in such an update, so you really need to render a frame to make sure those updates get

[osg-users] CompositeViewer:: checkNeedToDoFrame() always returns true after adding an UpdateCallback

2017-09-24 Thread Lincoln Nxumalo
Hi All, Just to confirm, is it by design that after you add an update callback to a node in the scene, CompositeViewer:: checkNeedToDoFrame() always returns true? Meaning that the Frame Scheme will always be CONTINUOUS and never ON_DEMAND. Or am I missing something I should be doing? ...