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
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)
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
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
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
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
6 matches
Mail list logo