From 0300607dbb281b746584bac5e6b8421b942eea1b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 23 Jan 2004 13:38:28 +0000 Subject: [PATCH] Fixed the handling of the Producer Fovy so that it accounts for Producer now using degrees in set and get methods --- examples/osgstereoimage/osgstereoimage.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/osgstereoimage/osgstereoimage.cpp b/examples/osgstereoimage/osgstereoimage.cpp index 13e99f7c2..8c837b2e6 100644 --- a/examples/osgstereoimage/osgstereoimage.cpp +++ b/examples/osgstereoimage/osgstereoimage.cpp @@ -23,8 +23,6 @@ #include #include - - typedef std::vector FileList; class SlideEventHandler : public osgGA::GUIEventHandler, public osg::NodeCallback @@ -482,7 +480,7 @@ int main( int argc, char **argv ) Producer::Camera* cam = viewer.getCameraConfig()->getCamera(i); Producer::RenderSurface* rs = cam->getRenderSurface(); rs->useCursor(false); - fovy = cam->getLensVerticalFov(); + fovy = osg::DegreesToRadians(cam->getLensVerticalFov()); } float radius = 1.0f;