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