From 7945f9424639fa636b07fe51adf5739a9d6bff74 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 1 Sep 2008 10:22:06 +0000 Subject: [PATCH] From He Sicong, "I found a bug here in VERTICAL_SPLIT stereo type: The vertical separation not actually displayed as it is set. So some display the up and down stereo images style will not be correct. Someone may forget to change the "Horizontal" to "Vertical" after copying and pasting the code from above HORIZONTAL_SPLIT code segment. I've attached the file. By replacing the incorrect "Horizontal" to "Vertical", the bug is gone. " --- src/osgUtil/SceneView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgUtil/SceneView.cpp b/src/osgUtil/SceneView.cpp index bc48a6aa7..01f350441 100644 --- a/src/osgUtil/SceneView.cpp +++ b/src/osgUtil/SceneView.cpp @@ -571,7 +571,7 @@ void SceneView::computeLeftEyeViewport(const osg::Viewport *viewport) case(osg::DisplaySettings::VERTICAL_SPLIT): { - Viewport::value_type separation = _displaySettings->getSplitStereoHorizontalSeparation(); + Viewport::value_type separation = _displaySettings->getSplitStereoVerticalSeparation(); if (_displaySettings->getSplitStereoVerticalEyeMapping()==osg::DisplaySettings::LEFT_EYE_TOP_VIEWPORT) { @@ -621,7 +621,7 @@ void SceneView::computeRightEyeViewport(const osg::Viewport *viewport) case(osg::DisplaySettings::VERTICAL_SPLIT): { - Viewport::value_type separation = _displaySettings->getSplitStereoHorizontalSeparation(); + Viewport::value_type separation = _displaySettings->getSplitStereoVerticalSeparation(); if (_displaySettings->getSplitStereoVerticalEyeMapping()!=osg::DisplaySettings::LEFT_EYE_TOP_VIEWPORT) {