Hi JS,

The ScreenCaptureHandler should just attach callbaks to the
salves+master cameras that rendering to a graphics context, and aren't
a RTT Camera.  Camera's in the scene graph are nested within viewer
cameras so won't need callbacks as well.

Robert.

On Thu, Dec 3, 2009 at 9:15 PM, Jean-Sébastien Guay
<[email protected]> wrote:
> Hi Robert,
>
> I was using osgViewer::ScreenCaptureHandler today and noticed that it will
> add the capture callback to scenegraph cameras too (i.e. HUD cameras that
> are in the scene graph). I think this is a mistake. I think it should only
> add the callback to viewer cameras (either main or slave), i.e. cameras that
> have a non-null view pointer.
>
> What do you think? If you think there might be a valid use case for adding
> the callback to in-scenegraph cameras, perhaps we can add a parameter to the
> addCallbackToViewer so the app can decide whether it wants this or not. I
> can make the change (whatever you decide) but I just wanted to know your
> opinion.
>
> 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