Hi J-S,

The StatsHandler and HelpHandlers are both designed around setting up their
own HUD Camera's on the osgViewer::Viewer's GraphicsWindow's   I can't of
any easy way of adapting this to SimpleViewer.

Is there a reason why you can't use osgViewer::Viewer?

Robert.

On 5/4/07, Jean-S�(c)bastien Guay <[EMAIL PROTECTED]> wrote:

Hello Robert,

I was wondering if it was possible to use osgViewer::StatsHandler
together with osgViewer::SimpleViewer.

If it is, then is there something special to do other than

     viewer.addEventHandler(new osgViewer::StatsHandler);

? Because I'm doing just that, and my SimpleViewer is not showing
stats when I press the 's' key.

If it's not possible, then I'll ask another question. The only reason
I'm using osgViewer::SimpleViewer is because I want my viewer to use
SDL, as in my field (gaming) when you go fullscreen it's useful to be
able to reduce the resolution at the same time in instances where the
fill rate is the bottleneck, and SDL gives me an API to do that. Is it
possible to make the ordinary osgViewer::Viewer draw into an
SDL-created OpenGL context? If so, then I'll just stop using
osgViewer::SimpleViewer and use the straight osgViewer::Viewer instead.

Also, is there an equivalent to osgViewer::SimpleViewer's cleanup()
method in osgViewer::Viewer?

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                         http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to