Hi Forest,

The Camera simply doesn't have a "zoom" scale, it just has a view matrix.

The "zoom" is only relevant to specific camera manipulator models that
have a concept of zooming - like osgGA::TrackballManipulator and
osgGA/TerrainManipulator, so you could get this info directly from
these if you are using them.

Robert.

2008/9/18 forest37 <[EMAIL PROTECTED]>:
>
>  hi all,
>     When the secne is zoomed in or out ,I want to get the zoom scale.I do it
> like this:
>     osg::Camera* camera= viewer.getCamera();
>     osg::Matrix vm=camera->getViewMatrix();
>     osg::Vec3 scale=vm.getScale();
>
>     the result is that scale always equals to (1,1,1).What does this mean
> and how can I get the reall scale of the scene?
>
>     thanks
>
> best regards
>
> forest
>
>
>
> ________________________________
> [广告] 买房不必东奔西走,上房老大,看"二手房"网上房展会
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to