[vtkusers] Artifacts in rendering PolyData with opacity < 1
David Pont
david_pont at hotmail.com
Mon Nov 20 13:07:39 EST 2000
I think what you want is vtkDepthSortPolyData. I pipe my polydata through
vtkPolyDataNormals, vtkDepthSortPolyData and then on to a vtkPolyDataMapper
and it works very nicely.
Small problem is I forget where I got it from, it does not seem to be part
of the distribution?.
I would recommend getting it from the source, so search the list archive, or
maybe someone else can remember where it comes from?. Otherwise I can send
what I have to you.
regards
Dave Pont
>From: "Alejandro F. Frangi" <afrangi at doc.ic.ac.uk>
>Reply-To: alex at isi.uu.nl
>To: vtkusers at public.kitware.com
>Subject: [vtkusers] Artifacts in rendering PolyData with opacity < 1
>Date: Mon, 20 Nov 2000 09:53:39 +0100
>
>Hi all,
>
> I'm rendering a vtkPolyData set and after i map it with a
>PolyDataMapper I want to select give the surface (actor) a given
>opacity. Now, if the opacity is unitary there are noproblems. As soon as
>I use a smaller opcaity I get funny rendering artifacts when interacting
>with the object. Does anybody know the reason of this and how can be
>solved? I tried by recomputing the normals before rendering but this
>does not make any difference.
>
> newNormals = vtkPolyDataNormals::New();
> newNormals->SetInput(surface);
> newNormals->SplittingOff();
> newNormals->SetConsistency(1);
> newNormals->SetComputePointNormals(1);
> newNormals->FlipNormalsOff();
> newNormals->Update();
>
> Any hint of how to solve this?
>
>
> Thanks,
> Alex
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
More information about the vtkusers
mailing list