[osg-users] how to get model scale?

forest37 forest37 at 163.com
Thu Sep 18 08:21:39 PDT 2008


 
 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
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080918/3e0d92a3/attachment-0002.htm>


More information about the osg-users mailing list