[vtkusers] Drawing custom image with depth buffer and a translucent plane

Elvis Stansvik elvis.stansvik at orexplore.com
Tue Oct 23 13:32:30 EDT 2018


I believe this is a limitation of VTK. Translucent polygonal geometry with
opacity != 1.0 can't be rendered intersected with a volume other than in a
back-to-front or front-to-back manner.

Someone correct me if I'm wrong (we'd also very much like to be able to do
this).

Elvis

Den fre 12 okt. 2018 kl 22:20 skrev Pato Sandana <
patricio.sandana at synopsys.com>:

> Hi Everyone,
>
>
>
> I’m trying to draw a vtkVolume and a vtkPlaneWidget both intersecting and
> the vtkPlaneWidget is translucent. I cannot achieve that, either the plane
> is totally behind or front.
>
>
>
> For a vtkActor with the same box extent this works.
>
>
>
> I tried to get the z-buffer from the context using
> vtkRenderer::GetZbufferData() method, but I only get 1s. (Is this correct?)
>
> I also tried to write the z-buffer data I got with
> vtkRenderer::SetZbuferData() method, but the plane is still behind.
>
>
>
> Any hints how to achieve this? Thanks in advance.
>
>
>
> Regards,
>
>
>
> *Pato Sandaña*
>
> TCAD Senior R&D Engineer
>
> Synopsys Inc. – Santiago, Chile
>
> [image:
> https://spp/pic/corporate/Lists/Signatures%20Database/Attachments/164/CS12924_AutomotiveEmailSignature_2.jpg]
>
>
>
>
> _______________________________________________
> 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:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181023/b9be3647/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 11353 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181023/b9be3647/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 11353 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181023/b9be3647/attachment-0001.jpg>


More information about the vtkusers mailing list