Re: [osg-users] osgviewerQT shows garbage when viewer is destroyed and re-created

2008-08-18 Thread René Molenaar
Qt 4.4 includes a QGraphicsView class, this class can be used to perform OpenGL drawing, instead of using the QGLWidget. This might open up some new possibilities for embedding osg in the QGraphicsView. I will take a look at the possibilities. Rene 2008/8/17 René Molenaar <[EMAIL PROTECTED]> >

Re: [osg-users] osgviewerQT shows garbage when viewer is destroyed and re-created

2008-08-17 Thread René Molenaar
(i use qt 4.4.1 and osg 2.6, and adapted vierwerqt example sources) The QOSGWidget works for me on linux. On windows I got the pixelformat error but, I got the QOSGWidget to work, and the --CompositeViewer version, by adding the traits->setInheritedWindowPixelFormat = true; line. I don't see any

Re: [osg-users] osgviewerQT shows garbage when viewer is destroyed and re-created

2008-05-07 Thread Mathieu Champlon
Hi Robert, I quickly hacked the --QOSGWidget mode in order to work around the "invalid pixel format" error (forcing traits->setInheritedWindowPixelFormat = true;) and the result is the same : trashed scene on the second run. I tried adding the piece of code you suggested but it does not change

Re: [osg-users] osgviewerQT shows garbage when viewer is destroyed and re-created

2008-05-07 Thread Robert Osfield
Hi Mathieu, The error with -QOSGWidget looks to be a bug in this code, but its a totally different path that the default path which uses GraphicsWindowEmbedded to adapt the Viewer. QOSGWidget is the most flexible path for integration and long term I'd like this to be the default route under Qt.

Re: [osg-users] osgviewerQT shows garbage when viewer is destroyed and re-created

2008-05-07 Thread Mathieu Champlon
Hello, Thanks for your reply ! I am indeed running "osgviewerQT windows.ive". If I add --QOSGWidget I get this error message right away : Windows Error #2000: [Screen #0] GraphicsWindowWin32::setWindow() - Unable to create OpenGL rendering context. Reason: The pixel format is invalid. Followed

Re: [osg-users] osgviewerQT shows garbage when viewer is destroyed and re-created

2008-05-07 Thread Robert Osfield
Hi Mathieu, I've tried your windows.ive and the suggested mods to osgviewerQT and it works fine even for running 6 viewers consecutively using osgviewerQT windows.ive, but if I add --QOSGWidget I get a crash on the second run. FYI, I'm running under Linux. What command line are you using? Robe