I'm not entirely sure what you mean by "scale of the scene" from your
message.  To me, this is an application concept. The user sets the scale
using some user interface, and the application stores this value and
modifies the scene graph to redraw the scene at a different size. If your
application were set up this way, you would already have the scale and
wouldn't need to retrieve it from OSG.
   -Paul



________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of forest37
        Sent: Thursday, September 18, 2008 9:22 AM
        To: [email protected]
        Subject: [osg-users] how to get model scale?
        
        
         
         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
         
         


________________________________

        [广告] 买房不必东奔西走,上房老大,看"二手房"网上房展会
<http://popme.163.com/link/003984_0909_8679.html> 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to