[vtk-developers] Antialiasing broken in Qt5
Kilgus, Thomas
t.kilgus at Dkfz-Heidelberg.de
Tue May 26 11:50:06 EDT 2015
Hi Marcus and David,
I would love to make this run with Qt5 for a demo application. Is there any (straightforward) job I can take care of to help tracking down the issue?
Regards,
Thomas
-----Ursprüngliche Nachricht-----
Von: vtk-developers [mailto:vtk-developers-bounces at vtk.org] Im Auftrag von Marcus D. Hanwell
Gesendet: Donnerstag, 14. Mai 2015 17:40
An: David Lonie
Cc: VTK Developers
Betreff: Re: [vtk-developers] Antialiasing broken in Qt5
Good to know, we need to do more testing with Qt 5 it seems, the API is pretty close but a lot fo the way they do platform abstraction chanegd (moving into plugins for each platform). I have ParaView build with Qt 5 here, and can try to dig into this a little more if I can find some time.
On Thu, May 14, 2015 at 10:21 AM, David Lonie <david.lonie at kitware.com> wrote:
> I setup a Qt5 build, and this is indeed a problem.
>
> It looks like we'll need to do some more work to get VTK to play nice
> with Qt5, at least on X11 (possibly other windowing systems as well).
> The root cause of the multisampling problem is that Qt5 no longer
> provides things like Q_WS_X11 and QX11Info, and the section of
> QVTKWidget::SetRenderWindow that initializes the GLX visual is inside
> a "#ifdef Q_WS_X11" block, and thus never gets called. It appears that
> all of the visual configuration (double buffering, stencil, MSAA,
> alpha planes, etc) are currently not being used when build against Qt5 on (at least) X11 as a result.
>
> For now, the only workaround I see is to stick with Qt4 until this can
> be addressed. I've filed a bug here:
>
> http://www.vtk.org/Bug/view.php?id=15469
>
> Dave
>
> On Tue, May 12, 2015 at 8:32 AM, David Lonie <david.lonie at kitware.com>
> wrote:
>>
>> Bumping -- can someone with a Qt5 build around do a quick test to see
>> if multisampling works in a QVTKWidget? Has anyone been working on
>> Qt5 support that might have an idea what's happening?
>>
>> On Thu, May 7, 2015 at 9:17 AM, David Lonie <david.lonie at kitware.com>
>> wrote:
>>>
>>> On Thu, May 7, 2015 at 8:31 AM, Christoph Kolb
>>> <c.kolb at dkfz-heidelberg.de> wrote:
>>>>
>>>> your fix works for me in the RGrid example and also in SimpleView
>>>> with Qt4.
>>>> But not in Qt5.
>>>> If you run the SimpleView example with Qt5, multisampling is off
>>>> again which is inexplicable to me because in my understanding the
>>>> QVTKWidget was simply painting the GL buffer rendered by a
>>>> vtkRenderWindow which should already be antialiased... Is that wrong?
>>>
>>>
>>> Hmm, I'm not super familiar with the Qt layer in VTK. Perhaps
>>> someone else on the list might know?
>>>
>>> Looking at the QVTKWidget implementation, I don't see why the Qt
>>> version would make a difference regarding MSAA. Let's see if someone
>>> on the list has any ideas, and I'll ask around to see what I can find out.
>>>
>>> Dave
>>
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Search the list archives at: http://markmail.org/search/?q=vtk-developers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list