From 6fed4022a64813cdc90b71e0b61b12ced007de45 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 11 Apr 2008 13:04:21 +0000 Subject: [PATCH] Added reference to osgstereomatch example to osgmultiplerendertargets. Added usage example use OpenSceneGraph-Data/Images examples --- .../osgmultiplerendertargets.cpp | 8 ++++++++ examples/osgstereomatch/README.txt | 14 ++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/examples/osgmultiplerendertargets/osgmultiplerendertargets.cpp b/examples/osgmultiplerendertargets/osgmultiplerendertargets.cpp index c7e68958b..2709f151c 100644 --- a/examples/osgmultiplerendertargets/osgmultiplerendertargets.cpp +++ b/examples/osgmultiplerendertargets/osgmultiplerendertargets.cpp @@ -34,6 +34,14 @@ #include +// +// Below is relatively straight forward example of use OpenGL multiple render targets extension +// to FrameBufferObjects/GLSL shaders. +// +// Another, more sophisticated MRT example can be found in the osgstereomatch example. +// + + // The callback modifies an input image. struct MyCameraPostDrawCallback : public osg::Camera::DrawCallback { diff --git a/examples/osgstereomatch/README.txt b/examples/osgstereomatch/README.txt index a179d041f..694dd4d24 100644 --- a/examples/osgstereomatch/README.txt +++ b/examples/osgstereomatch/README.txt @@ -4,14 +4,20 @@ A simple algorithm is implemented in both a single- and multi-pass way to show t The normal osgviewer is used for display and one can obtain the time spent on the GPU by pressing the "s" key twice. -The sample data was downloaded from the Middlebury Stereo Vision Page at http://vision.middlebury.edu/stereo/ Usage examples: --------------- -osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 -osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 --single -osgstereomatch --left teddyL.png --right teddyR.png --min 10 --max 57 --window 7 +Using sample data in OpenSceneGraph-Data distribution: + + osgstereomatch --left Images/dog_left_eye.jpg --right Images/dog_right_eye.jpg --min 0 --max 31 --window 9 + osgstereomatch --left Images/dog_left_eye.jpg --right Images/dog_right_eye.jpg --min 0 --max 31 --window 9 --single + +Using sample data available from the Middlebury Stereo Vision Page at http://vision.middlebury.edu/stereo/ : + + osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 + osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 --single + osgstereomatch --left teddyL.png --right teddyR.png --min 10 --max 57 --window 7 Algorithm and implementation details: