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.
"
This commit is contained in:
Robert Osfield
2008-09-01 10:22:06 +00:00
parent 5484981693
commit 7945f94246

View File

@@ -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)
{