HI J-S,

The Stats are meant to be on screen, so it looks for a graphics
window, a pretty natural association normally.

As for an option to support putting Stats on a Pbuffer, this would be
an easy change to make, but there would be a catch, watch would happen
if you selected a PBuffer that was doing render to texture for the
main camera and the code selected this PBuffer to draw the stats on
instead?

Perhaps trying GraphicsWindow's first then in none are available fall
back to any GraphicsContext's that are available.

Robert.


On Sat, Mar 20, 2010 at 3:46 AM, Jean-Sébastien Guay
<[email protected]> wrote:
> Hi Robert,
>
> Is there any reason why the StatsHandler will only show up if it can find a
> GraphicsWindow? (see StatsHAndler::setUpHUDCamera())
>
> I have an app where I want to use a pbuffer as the main graphics context,
> but I'll be copying the image onscreen by some other means, and I want to be
> able to see the stats. As it is now, the stats don't appear, of course.
> Changing the above method to use/find a GraphicsContext instead of a
> GraphicsWindow works fine, but I was wondering if there was a reason it was
> done that way.
>
> I'll submit the change if there's no reason not ot.
>
> Thanks in advance,
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.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

Reply via email to