Pierre,

Thanks for the response.  osgviewer works as expected.  It must be
something like you describe in the initialization.

Thanks

Scott

On Tue, Sep 29, 2009 at 2:50 AM, Pierre Bourdin (gmail)
<[email protected]> wrote:
> Hi Scott,
> does it works with osgviewer ?
>
> something like
>
> osgviewer --stereo QUAD_BUFFER cow.osg
>
> should display the cow in stereo without any error...
>
> Also I can't remember it exactly, but I think you have to re-init the
> context or something like this when switching to quadbuffer stereo...
> When switching in other stereo mode it is not necessary...
>
> Maybe others can be more helpful...
>
> Pierre.
>
> Le lundi 28 septembre 2009 à 17:42 -0500, Scott Senften a écrit :
>> HI all,
>>
>> I'm having two difficulties with osgviewerQtWidget on linux, and I was
>> hoping someone else may have already seen this and can give me some
>> insight as to my troubles.
>>
>> In main.cpp, I added the following lines to turn on quadbuffer stereo.
>>
>>
>>     QPointer<testMainWin> myMainWindow = new testMainWin;
>>
>> #if DO_OUTBOARD_WINDOW
>>     QPointer<testOutboardWin> mySecondaryWindow = new testOutboardWin;
>> #endif
>>
>>     /* added these 3 lines */
>>     osg::DisplaySettings* ds = osg::DisplaySettings::instance();
>>     ds->setStereo( true );
>>     ds->setStereoMode( osg::DisplaySettings::QUAD_BUFFER );
>>
>>   // The .ui file uses the "Promoted" widget, CompositeViewerQOSG
>>     osg::ref_ptr<CompositeViewerQOSG> compositeViewer =
>> myMainWindow->ui.osgGraphicsArea;
>>
>>     osg::ref_ptr<ViewQOSG> view1 = new ViewQOSG(
>> myMainWindow->ui.graphicsView1 );
>>     view1->setObjectName("ViewQOSG 1");
>>
>>
>> When I do so, I get the following warning/error
>>
>> Warning: detected OpenGL error 'invalid operation' after RenderBin::draw(,)
>>
>> quadbuffer stereo is anabled on the system and I have other OGL apps
>> that work as expected.  It appears that the context is valid but I
>> haven't been able to retrieve the visual it thinks it's using to see
>> if it's picked an appropriate one.
>>
>> ANAGLYPHIC stereo works as expected.
>>
>> My other issue is trying to get a visual with alpha.  Similarly...
>>
>>     QPointer<testMainWin> myMainWindow = new testMainWin;
>>
>> #if DO_OUTBOARD_WINDOW
>>     QPointer<testOutboardWin> mySecondaryWindow = new testOutboardWin;
>> #endif
>>
>>     /* added these two lines */
>>     osg::DisplaySettings* ds = osg::DisplaySettings::instance();
>>     ds->setMinimumNumAlphaBits( 1 );
>>
>>   // The .ui file uses the "Promoted" widget, CompositeViewerQOSG
>>     osg::ref_ptr<CompositeViewerQOSG> compositeViewer =
>> myMainWindow->ui.osgGraphicsArea;
>>
>>     osg::ref_ptr<ViewQOSG> view1 = new ViewQOSG(
>> myMainWindow->ui.graphicsView1 );
>>     view1->setObjectName("ViewQOSG 1");
>>
>>
>> This gives me
>>
>> X Error: BadMatch (invalid parameter attributes) 8
>>   Extension:    143 (Uknown extension)
>>   Minor opcode: 5 (Unknown request)
>>   Resource id:  0x6400026
>> Error: In Texture::Extensions::setupGLExtensions(..) OpenGL version
>> test failed, requires valid graphics context.
>> Segmentation fault
>>
>> which I'm assuming is because the context is either invalid or not current.
>>
>> If anyone has seen these problems and has some insight, I'd be
>> grateful for your experience.
>>
>> Thanks
>>
>> Scott
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Pierre BOURDIN
> I.M.E.R.I.R.
> Av. Pascot BP 90443
> 66004 PERPIGNAN
> tél: 04 68 56 84 95
> fax: 04 68 55 03 86
> email: [email protected]
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to