Hi Wang Rui,  I guess it's an improvement, using slave camera's when
you don't need to is rather counter to keeping things simple.  One
tweak I'd add would be to use the viewer' master camera directly
rather than create a new one and then assigning - as this is simpler
and more consistent with the way that other examples are set up.  I'll
not make this change though as I don't have windows to test against.
Cheers,  Robert.

On Fri, Jun 4, 2010 at 9:36 AM, Wang Rui <[email protected]> wrote:
> Hi Robert,
>
> For a long time, the osgviewerMFC example uses addSlave() to setup the
> graphics context and link it with a slave camera. I don't know the
> reason we perform like that, which will cause a problem that the
> GUIEventHandler may not obtain correct window coordinates because the
> main camera will use a default input range to receive events from the
> slave camera's graphics context. It is also weird to see the
> addSlave() used in non-cluster applications, which beginners will be
> confused with.
>
> I've make a slightly modification to the osgviewerMFC example to make
> it work without setting slave cameras. I've tested with the MDI
> framework and everything seems fine. Do you think it a little better
> to be understood and used if we could make such a change to the MFC
> example?
>
> Cheers,
>
> Wang Rui
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to