From ea00708026190c6a0b7f3dd7475573f9783989a2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 4 Dec 2012 19:02:45 +0000 Subject: [PATCH] Fixed default camera position --- examples/osgframerenderer/CameraProperty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgframerenderer/CameraProperty.cpp b/examples/osgframerenderer/CameraProperty.cpp index 62ff403d4..89b894bed 100644 --- a/examples/osgframerenderer/CameraProperty.cpp +++ b/examples/osgframerenderer/CameraProperty.cpp @@ -8,7 +8,7 @@ void CameraProperty::setToModel(const osg::Node* node) osg::BoundingSphere bs = node->getBound(); _center = bs.center(); - _eye = _center - osg::Vec3d(0.0, -bs.radius()*distanceRatio, 0.0); + _eye = _center - osg::Vec3d(0.0, bs.radius()*distanceRatio, 0.0); _up = osg::Vec3d(0.0, 0.0, 1.0); _rotationCenter = _center;