Re: [osg-users] Adding custom updater to the Viewer

2015-08-31 Thread Robert Osfield
HI Sam, On 28 August 2015 at 19:04, sam wrote: > In my application class I'm currently inheriting the osg::Viewer and doing > my own run function. It is basically a copy paste of the osg::Viewer > function just so I can add my own custom "update" code for networking, >

Re: [osg-users] Adding custom updater to the Viewer

2015-08-30 Thread sam
So I should keep it out of the viewer then? I guess I'm still a little unclear on how to integrate the rest of the systems so they get updated every frame. On Sun, Aug 30, 2015 at 7:50 PM, Tony Vasile ming...@gmail.com wrote: Hi Sam You probably don't want all you networking code in the same

Re: [osg-users] Adding custom updater to the Viewer

2015-08-30 Thread Tony Vasile
Hi Sam You probably don't want all you networking code in the same thread as the viewer thread, especially if the networking code could block. You would be better off using Update Callbacks to modify the scene when something changes. Tony -- Read this topic online here:

[osg-users] Adding custom updater to the Viewer

2015-08-28 Thread sam
Hi All, In my application class I'm currently inheriting the osg::Viewer and doing my own run function. It is basically a copy paste of the osg::Viewer function just so I can add my own custom update code for networking, entities, etc... Is there a way in osg I can do that without having to do