[vtkusers] planar object is very dark when camera is perpendicular to its normal.

David Doria daviddoria at gmail.com
Tue Jan 10 08:11:42 EST 2012


On Mon, Jan 9, 2012 at 10:39 PM, zlf <jxdw_zlf at yahoo.com.cn> wrote:
> Thank you. It works.
> I meet another problem now. The wireframe is bright when camera targets its
> front face. But it is dark when camera targets its back face.
>
> http://vtk.1045678.n5.nabble.com/file/n5133227/l1.jpg
> http://vtk.1045678.n5.nabble.com/file/n5133227/l2.jpg

You could use this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/NoShading

Or you could delete the normals array from the wireframe polydata. The
reason it changes color with angle is that typically shading (color)
has to do with the interaction between the light source and the
surface normal.

David



More information about the vtkusers mailing list