Good Morning, Thanks, Robert, I knew it should have been something simple like that. I discovered it by accident while comparing the code between 2.9.16 and 3.0.1 and now the viewers are all responsive with the ON_DEMAND flag. The help is much appreciated from everyone and I am glad, Andre, that you have come right too.
Cheers, Chris On Tue, Sep 27, 2011 at 3:02 PM, Andre Simoes <[email protected]>wrote: > Hi Robert Milharcic. > Hi Gentlemen. > > It worked here. > > Thank you very much. > > Chris, my application uses QMdiArea as the main manager for each > CompositeViewerWidget. And all CompositeViewerWidgets inherits from > QMainWindow. Hope it helps. > > Best Regards > Andre > > 2011/9/27 Robert Milharcic <[email protected]>: > > > >> 1 - The program starts with no scenario windows > >> 2 - I can add or remove Windows with a new/open file operation. > >> 3 - for the first window to be opened everything works perfect regarding > >> events ( mouse click, mouse press, drag, etc ). > >> 4 - For all the others i have to wait a time till the event handler > starts to > >> work. Sometimes, It takes more than 5 seconds. > >> > >> Do i have to force some call to make the current window active together > >> with its current viewer's event handler ? > >> > >> When using osg 2.9.15 i had no trouble with this. > >> > >> Now I'm using osg 3.0.1 > >> > > > > Try with ON_DEMAND frame scheme: > > > > setRunFrameScheme(osgViewer::ViewerBase::ON_DEMAND); > > > > Why? In the viewer event traversal there is a line: > > > > double cutOffTime = (_runFrameScheme==ON_DEMAND) ? DBL_MAX : > _frameStamp->getReferenceTime(); > > > > Your app is waiting because osg cannot pull all queued events within a > period of cutOffTime. Sometimes many frames are needed to process all > accumulated events to get to your mouse/keyboard events. You can also leave > default frame scheme as is and clear osg event queue yourself. > > > > Robert Milharcic > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

