[vtkusers] Shading Problems with Para.Surf.

Elias Breunig elias.breunig at googlemail.com
Fri Oct 22 09:28:12 EDT 2010


Sign error! As always :-)

Case somebody else in the community needs a Paraboloid, I attached the
corrected source files again.

Elias

2010/10/22 Elias Breunig <elias.breunig at googlemail.com>:
> Thanks that did the trick! Seems like I've to look into the
> derivatives one more time....
>
> Elias
>
> 2010/10/22 David Doria <daviddoria at gmail.com>:
>> On Fri, Oct 22, 2010 at 7:52 AM, Elias Breunig
>> <elias.breunig at googlemail.com> wrote:
>>>
>>> Dear all,
>>>
>>> I've written a Parametric Paraboloid class that generates paraboloid
>>> surface data. It is based on vtkParametricEllipsoid and I basically
>>> just exchanged the fundamental equations and definitions. Works fine
>>> so far, but when I render the surface i get a somehow strange shading
>>> effect on the surface, to be more prescise, a quard-foil of dark areas
>>> (see attached image). Has anyone an idea where this might originate
>>> from and how to get rid of it. I played around a bit with ambient and
>>> diffuse parameters but couldn't achieve any effect at all.
>>>
>>> Thanks for advice
>>>
>>> Elias
>>
>> My guess is that your normals are incorrect. Try:
>> actor->GetProperty()->SetInterpolationToFlat();
>> to turn off shading which uses the normals and see if looks correct.
>> David
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkParametricParaboloid.h
Type: application/octet-stream
Size: 3547 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101022/e6d493ae/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkParametricParaboloid.cpp
Type: application/octet-stream
Size: 2784 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101022/e6d493ae/attachment-0001.obj>


More information about the vtkusers mailing list