Also i wanted to clarify that when i tried to use the command line :
 
osgviewer cow.osg --stereo QUAD_BUFFER
 
it gives me the following  :
 
Warning: Could not find plugin to read objects from file "QUAD_BUFFER".
Error: [Screen #0] GraphicsWindowWin32::setPixelFormat() - No matching pixel for
mat found based on traits specified
  GraphicsWindow has not been created successfully.
Error: [Screen #0] GraphicsWindowWin32::setPixelFormat() - No matching pixel for
mat found based on traits specified
  GraphicsWindow has not been created successfully.
Error: [Screen #0] GraphicsWindowWin32::setPixelFormat() - No matching pixel for
mat found based on traits specified
  GraphicsWindow has not been created successfully.
Viewer::realize() - failed to set up any windows
Error: [Screen #0] GraphicsWindowWin32::setPixelFormat() - No matching pixel for
mat found based on traits specified
  GraphicsWindow has not been created successfully.
Viewer::realize() - failed to set up any windows

--- On Tue, 5/12/09, Robert Osfield <[email protected]> wrote:

From: Robert Osfield <[email protected]>
Subject: Re: [osg-users] Stereo Problem
To: [email protected], "OpenSceneGraph Users" 
<[email protected]>
Date: Tuesday, May 12, 2009, 4:54 AM

Hi Ibrahim? Olfat?  Could you sign with your first name so we know how
to address you, thanks,

On Tue, May 12, 2009 at 9:45 AM, olfat ibrahim <[email protected]>
wrote:
> Hello
>
> Iam running my program with the option --stereo and the stereo seems to
work
> fine in the screen but i can not get my nvidia glass to start working with
> it can any one help me ?

By default the OSG will use anaglyphic stereo when you enable stereo,
but it also supports a range of other stereo options.  For shutter
glasses you'll probably just need to request quad buffer stereo via:

 osgviewer cow.osg --stereo QUAD_BUFFER

For more command line details run

  osgviewer --help

And via env vars:

  osgviewer --help-env

Programatically you can enable stereo via osg::DisplaySettings (the
above command line options and env vars just set it.) See the
osgstreoimage example for an example of programmatically enabling
stereo.

There is a big but... and that's does you graphics card/OpenGL driver
support quad buffer stereo.  I can't answer this as you've provide no
info w.r.t hardware/drivers you are using.  For NVidia it's just their
Quadro line that supports quad buffer stereo.

Robert.



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

Reply via email to