[osg-users] Statistics display without needing a GUIEventHandler

2008-10-15 Thread Alexander Löffler
Hi, I am trying to display on-screen statistics as provided by the osgViewer::StatsHandler without the need for doing this via handling the key presses first. That is, I want to add a command line options to my application to either display statistics just as frame rate, full stats, or not at

Re: [osg-users] Statistics display without needing a GUIEventHandler

2008-10-15 Thread Jean-Sébastien Guay
Hi Alex, I am getting closer now; one thing I still cannot manage to do is display GPU stats correctly. This works with the original StatHandler, but not with my modified one. This obviously depends on whether the GraphicsContexts of all Cameras of the hosting Viewer (just one in my case)

Re: [osg-users] Statistics display without needing a GUIEventHandler

2008-10-15 Thread Alexander Löffler
Hi Jean-Sébastien, Jean-Sébastien Guay wrote: If you're checking for an OpenGL extension, you need to be in a thread that has a graphics context valid, or use a pre/postdraw camera callback to do the check. Maybe call the initialize method in a pre-draw callback which you would put on your

Re: [osg-users] Statistics display without needing a GUIEventHandler

2008-10-15 Thread Mattias Helsing
Hi Alex, I do a similar thing with the HelpHandler. I subclassed the HelpHandler like below. I then instantiate it and add it to the Viewer (and a osgWidget menuitem). Then I call initialize on it *before* viewer.run() but *after* viewer.realize() hope this helps Mattias //! Simple wrapper of

Re: [osg-users] Statistics display without needing a GUIEventHandler

2008-10-15 Thread paul1492
community would be interested. Paul P. - Original Message From: Alexander Löffler [EMAIL PROTECTED] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Wednesday, October 15, 2008 10:16:02 AM Subject: Re: [osg-users] Statistics display without needing a GUIEventHandler Hi Mattias

Re: [osg-users] Statistics display without needing a GUIEventHandler (UNCLASSIFIED)

2008-10-15 Thread Buckley, Bob CTR MDA/IC
PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 10:41 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Statistics display without needing a GUIEventHandler  I previously asked this question about turning on the stats without a key process. With osgProducer, I used to do