[vtkusers] Problem with shadows
David Gobbi
david.gobbi at gmail.com
Mon Jul 17 15:06:41 EDT 2017
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.
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.
- David
On Mon, Jul 17, 2017 at 12:31 PM, abcd efgh <adarshdesai.dsp at gmail.com>
wrote:
> Thanks,
> 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.
> I think the problem is with respect to shadows.
>
> Thanks again.
>
> On Sun, Jul 16, 2017 at 5:21 AM, David Gobbi <david.gobbi at gmail.com>
> wrote:
>
>> 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/20170717/da12e2f9/attachment.html>
More information about the vtkusers
mailing list