-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2009-12-16 14:56, Teodor Hanchevici wrote: > Hi there, > > OK, after some fiddling around I was able to make the application run by > setting the following in the environment: > > OSG_STEREO ON > OSG_STEREO_MODE QUAD_BUFFER > > In my code I have the following: > osg::DisplaySettings::instance()->setStereo(true); > > osg::DisplaySettings::instance()->setStereoMode(osg::DisplaySettings::StereoMode::QUAD_BUFFER);
You do not need to set both - setting the environment variables has the same effect as the code. The osg::DisplaySettings are, I believe, used only when you create a window, so if you have used that command after a window has been opened, it is not taken into account. > > but it seems it is not enough. My application is showing only one component. > Are there any other things to be set in the code to enable the quad buffer > rendering? > > Using the QTViewer, even with the environment variables set, I cannot render > stereo, so this makes me wonder if the issue is QT related. Does stereo work if you set the environment variables and use normal osgviewer executable to view some model? If that doesn't work too, then the problem is most likely with either the configuration of your driver or your hardware. Check if any error messages are printed out when you run the program from command line - if quad buffer visual is not available, you will get a stream of OpenGL errors in the terminal. The application may continue to run, but it will be without stereo. Qt is not really likely to be the culprit, because it does not interfere with OpenGL rendering. Qt only provides a window into which an OpenGL context is attached and it knows nothing about quad buffering being enabled or disabled. Regards, Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLKPRnn11XseNj94gRAsEzAJ90Or+R4/yMzJClJ6DaP7J0CfcWiQCggYBe RJffOOZRPojXJvZJPen86wI= =aqgW -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

