[vtkusers] displaying polydata without lighting

Tushar Udeshi udeshi at mcs.anl.gov
Wed Jul 12 19:14:55 EDT 2000


Hello!
This may be a trivial quesiton but I've been trying to do the following
for the past 2 days without any success:

I need to display vtkPolyData as flat shaded unlit polygons. The OpenGL
equivalent of that would be:

glDisable(GL_LIGHTING);
render the polygons

How do I do the same using vtk? I've tried setting the StartMethod of the
corresponding vtkPolyDataMapper to do glDisable(GL_LIGHTING) but that
has no effect.

Any help would be greatly appreciated.

Regards,
Tushar









More information about the vtkusers mailing list