-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
On 2009-12-11 03:35, HyeongCheol Kim wrote: > Hi, Jan! > Thanks again, > but I wonder what appropriative coordinates means. > I'm using trackball manuplator so I have been trying to get camera pointer > when I set stereo mode as HORIZONTAL_SPLIT. > If I can get two camera pointer when I set stereo mode as HORIZONTAL_SPLIT > (left and right), I think that might be possible to change their focal length > to create nagative parallax stereo. > Is it wrong? > If my knowledge is too short as you think, haha;; > I'm so sorry about that! You certainly can get the focal length of the cameras (or rather their projection matrices) by getting the osgViews from your viewer instance and then fetching the cameras. osg::Camera has a get/setProjectionMatrix methods. You can use that to set up your camera frustums by hand. However, even with the default settings, it is possible to get negative disparity, just make sure that the stereo-related environment variables are set correctly to match your setup. You can get the list of all variables by typing: osgviewer --help-env and the variables you need are: OSG_SCREEN_DISTANCE=2.0 OSG_SCREEN_HEIGHT=2.0 OSG_SCREEN_WIDTH=5.0 OSG_EYE_SEPARATION=0.06 OSG_STEREO_MODE=QUAD_BUFFER These are the config for our VizWall, you need to customize them to match your setup - mainly the screen size and viewer distance are important (numbers are in meters), then the eye separation needs to match the scale of your model (0.06 is 6cm). The math behind is well explained here: http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/ Regards, Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD4DBQFLIqqGn11XseNj94gRApIpAKDAmS/uCZUmyEHDcU9UZjlHfRGZ4ACXXCiq e8bIeOVJz0oADa1kDnecKg== =clLa -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

