<div dir="ltr">If it isn't the scalars, then it is probably the normals. If the data has bad normals, then lighting of the data will be incorrect.<div><br></div><div>You can try generating new normals for the data with vtkPolyDataNormals. Make sure that you read the documentation for this class, it has lots of options.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 17, 2017 at 12:31 PM, abcd efgh <span dir="ltr"><<a href="mailto:adarshdesai.dsp@gmail.com" target="_blank">adarshdesai.dsp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, <div>if I turn off scalars then I see only white color, by the way even after that I see the shadow effects, how can I turn off the shadows in the scene completely.</div><div>I think the problem is with respect to shadows.</div><div><br></div><div>Thanks again.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 16, 2017 at 5:21 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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:</div><div><br></div><div>mapper->ScalarVisibilityOff();</div><div><br></div><div> - David</div><div><div class="m_-7232447695725801896h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 16, 2017 at 2:15 AM, abcd efgh <span dir="ltr"><<a href="mailto:adarshdesai.dsp@gmail.com" target="_blank">adarshdesai.dsp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am new to vtk. I have a 3D polydata, I cut it using vtkClipPolydata.</div><div>Now there are some shadow kind of thing, I have called functions to turn off shadows</div><div>as well as backface culling as off. But still shadow kind of effect remains and the Poly data is sometimes dark due to this.</div><div><br></div><div>Thanks</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>