Added reference to osgstereomatch example to osgmultiplerendertargets.
Added usage example use OpenSceneGraph-Data/Images examples
This commit is contained in:
parent
52c9acade3
commit
6fed4022a6
@ -34,6 +34,14 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
//
|
||||||
|
// 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.
|
// The callback modifies an input image.
|
||||||
struct MyCameraPostDrawCallback : public osg::Camera::DrawCallback
|
struct MyCameraPostDrawCallback : public osg::Camera::DrawCallback
|
||||||
{
|
{
|
||||||
|
@ -4,11 +4,17 @@ 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 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:
|
Usage examples:
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
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
|
||||||
osgstereomatch --left tsukubaL.png --right tsukubaR.png --min 0 --max 15 --window 5 --single
|
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
|
osgstereomatch --left teddyL.png --right teddyR.png --min 10 --max 57 --window 7
|
||||||
|
Loading…
Reference in New Issue
Block a user