Re: [osg-users] QOSGWidget display problem
Hi, Thanks for the fix! the null-returning paintEngine solved flickering problem for me as well. I am using a simplified osgviewerQtWidget and the flickering was very painful before I applied your suggestion. Thank you! Cheers, Ehsan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24772#24772 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
Hi, Ehsan Azar wrote: Hi, Thanks for the fix! the null-returning paintEngine solved flickering problem for me as well. I am using a simplified osgviewerQtWidget and the flickering was very painful before I applied your suggestion. do you mind posting your final version? Others might find it useful. rgds jp Thank you! Cheers, Ehsan -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=24772#24772 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
Cedric, Martin, et al. I'm glad the null-returning QPaintEngine function seems to work for you. Unfortunately, I don't really have any other suggestions for testing it to determine whether or not you should label the fix acceptable. This is a question each project team must answer for themselves. I might recommend answering at least the following questions to make the determination (among any other questions that your project may need to be answered). 1) Is the behavior acceptable? 2) Does this solution fit well in the context of the documentation and the public interface for each library that is involved? 3) (Project team member responsibility) Is the solution documented so that other developers on the team can understand the purpose of the solution, its prerequisites (if any) and its side effects (if any)? Perhaps the Qt mailing lists could lead you to a better testing scheme, especially since this appears to be a Qt/graphics engine integration issue (i.e. it probably isn't specific to Qt/OSG integration). Good luck... D.J. On Sat, Dec 19, 2009 at 12:13 PM, Cedric Pinson cedric.pin...@plopbyte.net wrote: I tried this fix and it works fine now. Thank you for the fix Cheers, Cedric -- Provide OpenGL services around OpenSceneGraph and more +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net On Sat, 2009-12-19 at 05:58 +, Martin Beckett wrote: I remember Don's point about the background paint attribute being different on windows Qt but i could never get a reliable fix. The dummy QPaintEngine function has fixed the flicker problem for me on Windows (XP, Qt4.6.0, Osg 2.9.6). What further testing do we need for it to be an accepted fix? Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21688#21688 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
I tried this fix and it works fine now. Thank you for the fix Cheers, Cedric -- Provide OpenGL services around OpenSceneGraph and more +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net On Sat, 2009-12-19 at 05:58 +, Martin Beckett wrote: I remember Don's point about the background paint attribute being different on windows Qt but i could never get a reliable fix. The dummy QPaintEngine function has fixed the flicker problem for me on Windows (XP, Qt4.6.0, Osg 2.9.6). What further testing do we need for it to be an accepted fix? Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21688#21688 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org signature.asc Description: This is a digitally signed message part ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
I remember Don's point about the background paint attribute being different on windows Qt but i could never get a reliable fix. The dummy QPaintEngine function has fixed the flicker problem for me on Windows (XP, Qt4.6.0, Osg 2.9.6). What further testing do we need for it to be an accepted fix? Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21688#21688 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
I've run across the flickering problem before. There seems to be various side effects with certain Qt attributes, but I got better results changing setAttribute(Qt::WA_NoSystemBackground); to setAttribute(Qt::WA_OpaquePaintEvent); in QOSGWidget.cpp. You can follow the thread below or dig up the QOSGWidget demo with a 4-way split window I submitted for more help with Qt atttributes. // Date: Tue, 16 Jun 2009 10:07:16 + // From: Eric Pouliquen epouliq...@silicon-worlds.fr // Subject: Re: [osg-submissions] New QOSGWidget demo with a 4-way split // windowand bonus outboard window. // Suggested replacing the two setAttribute calls with this... //setAttribute(Qt::WA_OpaquePaintEvent); // This solverd a flickering problem on Windows // 8600 GT (185.85) and a Quadro FX1400 (182.65) // but causes a visible black border to be visible in the rendering // windows on Linux. This problem gone when WA_PaintOnScreen // is used in combination. // Hmmm... // According to Qt doc, WA_PaintOnScreen is X11 only and disables // double-buffering. I think this just means it disables a // buffer swap under Qt control. We want OSG to have full control. // // Equivalent to qt_x11_set_global_double_buffer(false)? // // Tried turning it off and got severe flashing on Linux. // Looks like without this we get an extraneous clear and // buffer swap form Qt. setAttribute(Qt::WA_PaintOnScreen); // This flags that something other than Qt is responsible for // all rendering in the window under the widget's control. setAttribute(Qt::WA_OpaquePaintEvent); // This seems superfluous now. // setAttribute(Qt::WA_NoSystemBackground); -Don Leich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
Greetings OpenSceneGraph/Qt users, I, also, noticed bad behavior (blinking and such) with the QOSGWidget example code. It has been a while since I last worked with it, but I believe that after digging around in the documentation and deep in the source code that I (partially) corrected the problem by overriding the virtual QWidget function, paintEngine: QPaintEngine* QOSGWidget::paintEngine () const { return 0; } Check your documentation for QWidget::paintEngine, and then give my suggestion a try; it seems to work for me. I am currently using OpenSceneGraph 2.8.2 with Qt 4.5.2 on 32 bit Windows XP Professional. I am building my project with Visual Studio 2005. I believe my fix may also work for linux users, but I haven't tested it. Good luck... D.J. On Mon, Dec 14, 2009 at 1:05 PM, Don Leich d...@ilight.com wrote: I've run across the flickering problem before. There seems to be various side effects with certain Qt attributes, but I got better results changing setAttribute(Qt::WA_NoSystemBackground); to setAttribute(Qt::WA_OpaquePaintEvent); in QOSGWidget.cpp. You can follow the thread below or dig up the QOSGWidget demo with a 4-way split window I submitted for more help with Qt atttributes. // Date: Tue, 16 Jun 2009 10:07:16 + // From: Eric Pouliquen epouliq...@silicon-worlds.fr // Subject: Re: [osg-submissions] New QOSGWidget demo with a 4-way split // window and bonus outboard window. // Suggested replacing the two setAttribute calls with this... // setAttribute(Qt::WA_OpaquePaintEvent); // This solverd a flickering problem on Windows // 8600 GT (185.85) and a Quadro FX1400 (182.65) // but causes a visible black border to be visible in the rendering // windows on Linux. This problem gone when WA_PaintOnScreen // is used in combination. // Hmmm... // According to Qt doc, WA_PaintOnScreen is X11 only and disables // double-buffering. I think this just means it disables a // buffer swap under Qt control. We want OSG to have full control. // // Equivalent to qt_x11_set_global_double_buffer(false)? // // Tried turning it off and got severe flashing on Linux. // Looks like without this we get an extraneous clear and // buffer swap form Qt. setAttribute(Qt::WA_PaintOnScreen); // This flags that something other than Qt is responsible for // all rendering in the window under the widget's control. setAttribute(Qt::WA_OpaquePaintEvent); // This seems superfluous now. // setAttribute(Qt::WA_NoSystemBackground); -Don Leich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
Sorry, I should have said this fix instead of my fix; someone else may have seen this, too, or I may have gotten the idea from someone else (directly, indirectly, or otherwise). Thanks, D.J. On Mon, Dec 14, 2009 at 1:14 PM, D.J. Caldwell dlcaldwel...@gmail.com wrote: Greetings OpenSceneGraph/Qt users, I, also, noticed bad behavior (blinking and such) with the QOSGWidget example code. It has been a while since I last worked with it, but I believe that after digging around in the documentation and deep in the source code that I (partially) corrected the problem by overriding the virtual QWidget function, paintEngine: QPaintEngine* QOSGWidget::paintEngine () const { return 0; } Check your documentation for QWidget::paintEngine, and then give my suggestion a try; it seems to work for me. I am currently using OpenSceneGraph 2.8.2 with Qt 4.5.2 on 32 bit Windows XP Professional. I am building my project with Visual Studio 2005. I believe my fix may also work for linux users, but I haven't tested it. Good luck... D.J. On Mon, Dec 14, 2009 at 1:05 PM, Don Leich d...@ilight.com wrote: I've run across the flickering problem before. There seems to be various side effects with certain Qt attributes, but I got better results changing setAttribute(Qt::WA_NoSystemBackground); to setAttribute(Qt::WA_OpaquePaintEvent); in QOSGWidget.cpp. You can follow the thread below or dig up the QOSGWidget demo with a 4-way split window I submitted for more help with Qt atttributes. // Date: Tue, 16 Jun 2009 10:07:16 + // From: Eric Pouliquen epouliq...@silicon-worlds.fr // Subject: Re: [osg-submissions] New QOSGWidget demo with a 4-way split // window and bonus outboard window. // Suggested replacing the two setAttribute calls with this... // setAttribute(Qt::WA_OpaquePaintEvent); // This solverd a flickering problem on Windows // 8600 GT (185.85) and a Quadro FX1400 (182.65) // but causes a visible black border to be visible in the rendering // windows on Linux. This problem gone when WA_PaintOnScreen // is used in combination. // Hmmm... // According to Qt doc, WA_PaintOnScreen is X11 only and disables // double-buffering. I think this just means it disables a // buffer swap under Qt control. We want OSG to have full control. // // Equivalent to qt_x11_set_global_double_buffer(false)? // // Tried turning it off and got severe flashing on Linux. // Looks like without this we get an extraneous clear and // buffer swap form Qt. setAttribute(Qt::WA_PaintOnScreen); // This flags that something other than Qt is responsible for // all rendering in the window under the widget's control. setAttribute(Qt::WA_OpaquePaintEvent); // This seems superfluous now. // setAttribute(Qt::WA_NoSystemBackground); -Don Leich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
Hi, I dont know if it's the same problem, but for my application i have flickering on windows not on linux. To be sure it was not a qt issue, i tried QT opengl demo, and it works fine, so i guess we would need to investigate the issue. One question i have is, is it better to let osg setup the context or could not we mimic the context creation as done in qt opendl demo. It's maybe a stupid question but without digging yet inside, i would like to find some lead to follow. Cheers, Cedric -- Provide services around OpenSceneGraph +33 659 598 614 Cedric Pinson mailto:cedric.pin...@plopbyte.net http://www.plopbyte.net On Sat, 2009-12-12 at 23:42 +, Martin Beckett wrote: I have the same problem on Windows for 2.8 and 2.9.6 The only solution I have found is to rebuild Qt with experimental OpenGL rendering support - but that makes all the dialogs too slow to be usable. Otherwise AdaptorWidget works well, sorry I am at a client next week so I can't investigate further. Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21378#21378 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org signature.asc Description: This is a digitally signed message part ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] QOSGWidget display problem
I have the same problem on Windows for 2.8 and 2.9.6 The only solution I have found is to rebuild Qt with experimental OpenGL rendering support - but that makes all the dialogs too slow to be usable. Otherwise AdaptorWidget works well, sorry I am at a client next week so I can't investigate further. Cheers, Martin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=21378#21378 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org