First have a look at the osgViewer 's doc :

Environmental Variables:
OSG_EYE_SEPARATION <float>      physical distance between eyes
OSG_SCREEN_DISTANCE <float>     physical distance between eyes and screen
OSG_SCREEN_HEIGHT <float>       physical screen height
OSG_SPLIT_STEREO_AUTO_ADJUST_ASPECT_RATIO <mode>        OFF | ON Default to ON 
to compenstate for the compression of the aspect ratio when viewing in 
split screen stereo. Note, if you are setting fovx and fovy explicityly 
OFF should be used.
OSG_SPLIT_STEREO_HORIZONTAL_EYE_MAPPING <mode>  LEFT_EYE_LEFT_VIEWPORT | 
LEFT_EYE_RIGHT_VIEWPORT
OSG_SPLIT_STEREO_HORIZONTAL_SEPARATION <float>  number of pixels between 
viewports
OSG_SPLIT_STEREO_VERTICAL_EYE_MAPPING <mode>    LEFT_EYE_TOP_VIEWPORT | 
LEFT_EYE_BOTTOM_VIEWPORT
OSG_SPLIT_STEREO_VERTICAL_SEPARATION <float>    number of pixels between 
viewports
OSG_STEREO <mode>       OFF | ON
OSG_STEREO_MODE <mode>  QUAD_BUFFER | ANAGLYPHIC | HORIZONTAL_SPLIT | 
VERTICAL_SPLIT | LEFT_EYE | RIGHT_EYE


and set the environnment variables accordingly .

That's all

Rémy


Renan Mendes a écrit :
> Hi, everyone.
>
>           What is OSG's support on stereoscopy? I have a dual-head 
> video card and I needed that the images shown in the two monitors were 
> slightly different in terms of view angle (my final objective, of 
> course, is to project these two images on a screen making use of the 
> stereoscopic polarized projection technique). Does anyone have any 
> reference on the subject? Or even some already developed code? I'd 
> really appreciate it.
>
>           Thanks,
>
>                 Renan M Z Mendes
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>   


-- 
Remy Deslignes

Ingenieur Developement / Software Engineer 

Tel: +33 (0)1.53.90.11.19

===========================================
 Silicon Worlds S.A.
 224, rue Saint Denis
 75002 Paris  France
 Tel: +33 (0)1.53.90.11.11
 Fax: +33 (0)1.53.90.11.12
 http://www.silicon-worlds.fr
=========================================== 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to