[vtkusers] Using QVTKWidget with QT5 on Linux

Pavel Kalinnikov pavelkalinnikov at gmail.com
Fri May 8 07:14:34 EDT 2015


* replace QVTKWidget by QVTKWidget2, sorry for the typo

2015-05-08 11:51 GMT+03:00 Pavel Kalinnikov <pavelkalinnikov at gmail.com>:

> I tried to make all steps of "VTK calls" section, but it doesn't help. Do
> I really need depth peeling? The scene doesn't have any translucency, just
> an opaque sphere and a pyramid.
>
> Besides, if I replace QVTKWidget by QVTKWidget, everything works just fine.
>
> 2015-05-08 6:55 GMT+03:00 Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>:
>
>> Yep. It seems like depth peeling is OFF. You will have to turn depth
>> peeling ON explicitly on the VTK render window.
>>
>> http://www.vtk.org/Wiki/VTK/Depth_Peeling
>>
>>
>>
>>
>> Warm Regards,
>>
>> Sankhesh Jhaveri
>> Research & Development Engineer
>> Kitware, Inc.
>> *Phone*: (518) 881 4417
>> *Fax*: (518) 371 4573
>>
>>
>>
>> On Wed, May 6, 2015 at 4:57 PM, Pavel Kalinnikov <
>> pavelkalinnikov at gmail.com> wrote:
>>
>>> Here is the screenshot of working example from Examples/GUI/Qt/Events.
>>>
>>> One more thing I forgot to say - VTK works good on my Linux (when not
>>> using QVTKWidget).
>>>
>>> 2015-05-06 23:45 GMT+03:00 David E DeMarle <dave.demarle at kitware.com>:
>>>
>>>> If you can share the right/wrong images, that would help diagnose the
>>>> cause.
>>>>
>>>> Is there opacity in the scene? If so depth peeling is needed to render
>>>> the faces in the right order. To do depth peeling we need to ask the GPU
>>>> what it can do and that can get messed up with different paths to the
>>>> graphics context layers (under Qt vs natively for example.)
>>>>
>>>>
>>>>
>>>>
>>>> David E DeMarle
>>>> Kitware, Inc.
>>>> R&D Engineer
>>>> 21 Corporate Drive
>>>> Clifton Park, NY 12065-8662
>>>> Phone: 518-881-4909
>>>>
>>>> On Wed, May 6, 2015 at 4:31 PM, Pavel Kalinnikov <
>>>> pavelkalinnikov at gmail.com> wrote:
>>>>
>>>>> Hi everyone!
>>>>>
>>>>> I have the following environment:
>>>>>  * OS - x64 Ubuntu 12.04.5 LTS
>>>>>  * Qt 5.4
>>>>>  * VTK 6.2.0
>>>>>
>>>>> I'm trying to use QVTKWidget and it seems like it doesn't work
>>>>> properly. When I try to render some 3d object in this widget, I see that
>>>>> faces get rendered in a wrong order (maybe there are some problems with
>>>>> z-buffer or something).
>>>>> The same code built on Windows works perfectly.
>>>>>
>>>>> Also I tried to build and run the standard example
>>>>> Examples/GUI/Qt/Events distributed along with VTK-6.2.0, and it has the
>>>>> same problem in my Linux environment. And again, it works on Windows.
>>>>>
>>>>> Am I doing something wrong or is it a bug?
>>>>> Is there anyone who can fix this?
>>>>> Is there any known workaround for this case?
>>>>>
>>>>> Thank you,
>>>>> Pavel Kalinnikov
>>>>>
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>>
>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150508/f24bcb1f/attachment.html>


More information about the vtkusers mailing list