[vtkusers] flat shading in vtk

David Gobbi david.gobbi at gmail.com
Mon Jan 25 16:18:19 EST 2010


Try property->SetInterpolationToFlat().

  David

On Mon, Jan 25, 2010 at 2:05 PM, Liam Kurmos
<quantum.leaf at googlemail.com> wrote:
> Is there an easy way to disable shading in vtk?
> I want all pixels drawn for a polygon to be constant colour,
> independent of surface normals.
>
> I'm going to try having only an emissive color and turning off a
> lights, but now i'm stuck turning off the default light.
>
> ren1->RemoveAllLights();
>
> doesn't seem to be having any effect.
>
> searches like
>
> "site:vtk.org/Wiki/VTK/Examples getLights"
>
> are coming up blank, so i wonder if i'm on the right track.
>
> any help much appreciated,
>
>
> Liam
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list