[vtkusers] How to disable lighting?

Kevin Wright krw at viz-solutions.com
Wed Sep 25 12:35:09 EDT 2002


At 09:30 AM 9/25/2002 -0700, you wrote:
>Does anyone know how to disable lighting like
>glDisable(GL_LIGHTING) in OpenGL? Sometimes we do need
>to disable lightings and shadings...
>
>I tried switchOff vtkLight and even removing all the
>lights from renderer, but it seems that the light is
>still there.
>
>Ping

If you set ambient light to 1.0 and diffuse light to 0.0 on all the actors:
         actor->GetProperty()->SetAmbient(1.0);
         actor->GetProperty()->SetDiffuse(0.0);

I think you'll get what you want.

Kevin.






More information about the vtkusers mailing list