From 07550df2f2a2fd3922a08d01070067a827b87ec1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 30 Jul 2013 06:39:36 +0000 Subject: [PATCH] From svn/trunk merged "Changed default cull mask to match the left cull mask so that mono rendering of presentations with left/right stereo images/movies works fine." --- applications/present3D/present3D.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/applications/present3D/present3D.cpp b/applications/present3D/present3D.cpp index 78f281300..1fd34f1cd 100644 --- a/applications/present3D/present3D.cpp +++ b/applications/present3D/present3D.cpp @@ -491,10 +491,20 @@ int main( int argc, char **argv ) } // set up stereo masks - viewer.getCamera()->setCullMask(0xffffffff); + viewer.getCamera()->setCullMaskLeft(0x00000001); viewer.getCamera()->setCullMaskRight(0x00000002); + bool assignLeftCullMaskForMono = true; + if (assignLeftCullMaskForMono) + { + viewer.getCamera()->setCullMask(viewer.getCamera()->getCullMaskLeft()); + } + else + { + viewer.getCamera()->setCullMask(0xffffffff); + } + // set up the camera manipulators. { osg::ref_ptr keyswitchManipulator = new osgGA::KeySwitchMatrixManipulator;