From 890ecb6abb4980448a1d56ba7cb73b2421e9399c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 15 Mar 2013 17:35:43 +0000 Subject: [PATCH] Experiments with modifying the projection matrix to provide keystoning. --- examples/osgkeystone/osgkeystone.cpp | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/examples/osgkeystone/osgkeystone.cpp b/examples/osgkeystone/osgkeystone.cpp index 72f660401..374b12bac 100644 --- a/examples/osgkeystone/osgkeystone.cpp +++ b/examples/osgkeystone/osgkeystone.cpp @@ -17,6 +17,8 @@ */ #include +#include + #include #include #include @@ -30,6 +32,18 @@ int main( int argc, char **argv ) // initialize the viewer. osgViewer::Viewer viewer(arguments); + osg::Vec2d translate(0.0,0.0); + osg::Vec2d scale(1.0,1.0); + osg::Vec2d taper(1.0,1.0); + double angle = 0; // osg::inDegrees(45.0); + + if (arguments.read("-a",angle)) { OSG_NOTICE<<"angle = "<