Hi Martin,

Could you post the whole modified file please, copy and paste is very
prone to error so I do not take this risk.

Robert.

On Fri, May 1, 2009 at 3:05 PM, Martin Beckett <[email protected]> wrote:
> In MatrixManipulator can we have computeHomePosition() use _homeUp rather 
> than the hardcoded (0,0,1).
> This makes it possible to redefine the viewing direction of 'home' in the 
> other manipulator - so home in a GIS app could be a plan view.
> Since _homeUp is set to (0,0,1) and no current code changes it there 
> shouldn't be any difference for current users.
>
>
> Code:
>
> virtual void computeHomePosition()
>        {
>            if(getNode())
>            {
>                const osg::BoundingSphere& 
> boundingSphere=getNode()->getBound();
>
>                setHomePosition(boundingSphere._center+osg::Vec3( 0.0,-3.5f * 
> boundingSphere._radius,0.0f),
>                     boundingSphere._center,
>                     //osg::Vec3(0.0f,0.0f,1.0f),
>                    _homeUp,
>                    _autoComputeHomePosition);
>            }
>        }
>
>
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=11187#11187
>
>
>
>
>
> _______________________________________________
> 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