[vtkusers] Using QVTKWidget with QT5 on Linux

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Thu May 7 23:55:30 EDT 2015


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/20150507/2c3edbac/attachment.html>


More information about the vtkusers mailing list