Re: [osg-users] access to viewer instances in plugins

2017-08-18 Thread Ralf Habacker
Am 16.08.2017 um 13:31 schrieb Robert Osfield: Hi Robert, > I don't know the full details of your usage case but the usual > approach I would take for adding event handling to subgraphs that are > loaded indepdently from the viewer is to use an event callback > assigned to a node. > Would this wo

Re: [osg-users] access to viewer instances in plugins

2017-08-16 Thread Robert Osfield
Hi Ralf. The viewer and the plugins are completely decoupled in the OSG, this is by design. There is no global viewer instances or registry that would allow you to force such a coupling. However, for most applications this should not be an issue as you don't need to get the viewer when construct

[osg-users] access to viewer instances in plugins

2017-08-16 Thread Ralf Habacker
Hi, for http://www.openscenegraph.org/index.php/gallery/use-cases/189-fm-profil we are trying to add animation trigger support to a scene by a specific plugins. Animation trigger support means to start an animation if the user clicks a specific object. The recent implementation uses a dedicated pi