Hi Robert and All,

I just wanted to know if the proposal I made some weeks ago doesn't seem to
fit some requirements,
or simply passed unnoticed.

Thank you,
Ricky


On Wed, Mar 14, 2012 at 15:42, Riccardo Corsi <[email protected]>wrote:

> Hi all,
>
> sorry that it took long to setup the proposal...
> Eventually the code change was minimal:
>
> 1. added a method void updateCamera(osg::Camera*) on CameraManip base
> class. I propose a default implementation that sets the camera view matrix
> by using the existing getInverseMatrix method, so that standard
> manipulators don't need any change.
>
> 2. viewer classes call the new method instead of setting explicitly the
> camera view matrix, for instance:
>
> //old call -_camera->setViewMatrix(_cameraManipulator->getInverseMatrix());
> _cameraManipulator->updateCamera(_camera);
>
> This brings enough flexibility for the cases that I have in mind at the
> moment.
>
> The changed files are in the attached zip, based on osg 3.1.0.
> If it's better not to provide a default implementation for the new method,
> I can remove it and re-implement it in all derived manipulators.
>
> If the approach looks reasonable I will make a submission out of it.
>
> Ricky
>
>
>
> On Tue, Mar 6, 2012 at 17:06, Robert Osfield <[email protected]>wrote:
>
>> HI Ricky,
>>
>> On 6 March 2012 14:36, Riccardo Corsi <[email protected]> wrote:
>> > I totally agree on the general approach.
>> > Still, if you want to go for the change on the  osgGA::CameraManipulator
>> > base class as a first step,
>> > I'd be glad to help with that.
>>
>> Why not have a bash at modifying osgGA::CameraManipulator to work for
>> the purpose you have in mind then post this as proposal, we can then
>> tweak this if required.
>>
>> Robert.
>> _______________________________________________
>> 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