[vtkusers] Problem with shadows

David Gobbi david.gobbi at gmail.com
Sun Jul 16 08:21:14 EDT 2017


Clipping a data set adds scalars to the data set. These scalars are
probably causing the strange coloring that you are seeing. You can tell the
mapper to ignore the scalars, and use the vtkProperty color instead:

mapper->ScalarVisibilityOff();

 - David

On Sun, Jul 16, 2017 at 2:15 AM, abcd efgh <adarshdesai.dsp at gmail.com>
wrote:

> Hello,
>
> I am new to vtk. I have a 3D polydata, I cut it using vtkClipPolydata.
> Now there are some shadow kind of thing, I have called functions to turn
> off shadows
> as well as backface culling as off. But still shadow kind of effect
> remains and the Poly data is sometimes dark due to this.
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170716/4fb30c1c/attachment.html>


More information about the vtkusers mailing list