[osg-users] Stereo convergence param in OSG?

2008-06-26 Thread Ben Discoe
To the best of my knowledge, to do stereo rendering, you must expose two 
parameters, which are known by various names, typically:

1. Eye separation, the distance between the two stereo 'eyes'.
 This is in OSG as osg::DisplaySettings::setEyeSeparation.

2. Convergence, which is like a horizontal offset between the rendered views, 
or it can be thought of as the distance from the camera at which the two images 
converge.
  I cannot find any setting in SceneView or DisplaySettings for this.

As the email below agrees, this is a vital parameter for any real stereo use.  
Perhaps i am just not finding it, is it in OSG somewhere?  I did search the 
list archive, and found no relevant mention of 'convergence'.

Thanks,
Ben

-Original Message-
From: Michal Husak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 2:57 AM
To: Ben Discoe

Hi Ben

 As far as i can tell, OSG does not expose a factor like 
 convergence (or 'Zero parallax plane position').

I am afraid convergence is related to the use of rotated cameras (toe in). it 
produce keystone distortion ...

ZPP does not use rotated cameras - it use just OpenGL viewport manipulation ...

The result is similar for both approaches ...

 Do you know of anyone using OSG-based software who is doing the
 kind of stereo needed?

Unfortunately i do not ... I cannot imagine anybody uses OSG in stereo without 
the possibility to adjust the ZPP or at least convergence ...

Michal Husak
Technical Director

GALI-3D, s.r.o.
Ceska 32
370 01 Ceske Budejovice
Czech Republic

mobile phone:+420 776 018 351
mailto:[EMAIL PROTECTED]
http://www.gali-3d.com


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Stereo convergence param in OSG?

2008-06-26 Thread Farshid Lashkari
Hi Ben,

On Thu, Jun 26, 2008 at 5:08 PM, Ben Discoe [EMAIL PROTECTED] wrote:
 As the email below agrees, this is a vital parameter for any real stereo use. 
  Perhaps i am just not finding it, is it in OSG somewhere?  I did search the 
 list archive, and found no relevant mention of 'convergence'.

You can use the osg::DisplaySettings::setScreenDistance() and
osgUtil::SceneView::setFusionDistance() methods to control how objects
converge in stereo. For example, if you want objects 10 units from the
viewpoint to appear on the monitor surface, you can set the fusion
distance to 10.

-Farshid
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Stereo convergence param in OSG?

2008-06-26 Thread Jan Ciger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ben Discoe wrote:
 
 As the email below agrees, this is a vital parameter for any real
 stereo use.  Perhaps i am just not finding it, is it in OSG
 somewhere?  I did search the list archive, and found no relevant
 mention of 'convergence'.
 

That's because OSG doesn't use that. OSG uses asymetric view frusta,
which is the *correct* way to do stereo. The rotated cameras/toe-in
method that needs convergence setting produces eye strain and distortion.

Eye separation can be set using environment variables, also screen size
and viewer's distance from it (the location of the zero parallax plane)
- - these are all exposed in osg::DisplaySettings.

You can find a good primer how to correctly set up stereo here:
http://local.wasp.uwa.edu.au/~pbourke/projection/stereorender/index.html

Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFIZECPn11XseNj94gRAqu1AKCOrdTUFG/6qbOdd2Vr5qTRIIrLkACgyQlD
ZBNbDWnerOcy0HL2SfI3250=
=+6pT
-END PGP SIGNATURE-
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org