[vtkusers] Rendering artifact at opacity<1
marcin.krotkiewski
marcin.krotkiewski at gmail.com
Wed Nov 8 09:08:46 EST 2017
Thanks a lot, Ken! This works much better. However ;) now I got very
fat-looking fonts and lines (attached).
Anything suggestions what I can do with that?
Thanks!
Marcin
On 11/08/2017 02:29 PM, Ken Martin wrote:
> Try using depth peeling to resolve the transparency.
>
>
> //@{
> /**
> * Turn on/off rendering of translucent material with depth peeling
> * technique. The render window must have alpha bits (ie call
> * SetAlphaBitPlanes(1)) and no multisample buffer (ie call
> * SetMultiSamples(0) ) to support depth peeling.
> * If UseDepthPeeling is on and the GPU supports it, depth peeling
> is used
> * for rendering translucent materials.
> * If UseDepthPeeling is off, alpha blending is used.
> * Initial value is off.
> */
> vtkSetMacro(UseDepthPeeling,int);
> vtkGetMacro(UseDepthPeeling,int);
> vtkBooleanMacro(UseDepthPeeling,int);
> //@}
>
>
>
>
> On Wed, Nov 8, 2017 at 6:09 AM, marcin.krotkiewski
> <marcin.krotkiewski at gmail.com <mailto:marcin.krotkiewski at gmail.com>>
> wrote:
>
> Dear developers,
>
> I am observing strange rendering artifacts on my triangulated
> surface when I use transparency. The artifacts are observed at
> certain angles only. I've attached 3 pictures:
>
> - opacity_1.png shows the model as it looks without transparency
> - opacity_09.png shows the model at an angle chosen such that the
> artifact on the surface is visible.
> - opacity_0.9_behind.png shows the same model with transparency
> rotated around to a view that does not show the artifact
>
> I am using vtk 8.0 with the OpenGL 2 rendering backend.
>
> Is this a bug, or am I doing sth wrong?
>
> Thanks!
>
> Marcin
>
>
> _______________________________________________
> Powered by www.kitware.com <http://www.kitware.com>
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> <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 <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Search the list archives at:
> http://markmail.org/search/?q=vtkusers
> <http://markmail.org/search/?q=vtkusers>
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> <http://public.kitware.com/mailman/listinfo/vtkusers>
>
>
>
>
> --
> Ken Martin PhD
> Distinguished Engineer
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
>
> This communication, including all attachments, contains confidential
> and legally privileged information, and it is intended only for the
> use of the addressee. Access to this email by anyone else is
> unauthorized. If you are not the intended recipient, any disclosure,
> copying, distribution or any action taken in reliance on it is
> prohibited and may be unlawful. If you received this communication in
> error please notify us immediately and destroy the original message.
> Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171108/38614d7e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opacity_09_peeling.png
Type: image/png
Size: 142084 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171108/38614d7e/attachment-0001.png>
More information about the vtkusers
mailing list