[osg-submissions] Add slave camera
filip.holm at kongsberg.com
filip.holm at kongsberg.com
Mon Oct 8 01:02:49 PDT 2007
Hi Robert,
I was aware of the binary compatibility breakage, but I got too caught up in the fact that osgViewer::View was the only place with SceneData. Seeing how elegantly it can be done makes me a bit embarrassed, but it also proves how much I have to learn about osg.
There was a small logical error in the loop for adding the children to the slave camera. I've attached the fixed version.
Thanks for this fix, it works great.
Cheers,
Filip
> -----Original Message-----
> From: osg-submissions-bounces at lists.openscenegraph.org
> [mailto:osg-submissions-bounces at lists.openscenegraph.org] On
> Behalf Of Robert Osfield
> Sent: 6. oktober 2007 16:59
> To: OpenSceneGraph Submissions
> Subject: Re: [osg-submissions] Add slave camera
>
> Hi Filip,
>
> I've been wondering about the issue with binary compatibility
> - and adding a virtual function breaks binary compatibility
> which is bad news for 2.2.1. It occurred to me that the only
> way not to break binary compatibility would be to modify the
> existing View::addSlave method so that it copied it's
> Camera's subgraph from the master Camera's subgraph.
>
> I have modified and checked in the modified View.cpp, its
> also attached. I didn't have any example code to reproduce
> the original so could you try at your end?
>
> Cheers,
> Robert.
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: View.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20071008/685d0891/attachment.pot
More information about the osg-submissions
mailing list