> 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

Reply via email to