[vtkusers] Illumination in vtk

Dominik Szczerba domi at vision.ee.ethz.ch
Tue Jun 27 03:55:33 EDT 2006


is this what you need?

  gridActor->GetProperty()->SetAmbient(0.1);
  gridActor->GetProperty()->SetDiffuse(0.3);
  gridActor->GetProperty()->SetSpecular(1.0);
  gridActor->GetProperty()->SetSpecularPower(30.0);

--DS

sha1 at doc.ic.ac.uk wrote:
> 
> Dear all,
>   Shading and illumination are two different things. Shading can be set in vtk
> using vtkactor->property->Flat/Phong etc. However , I am not clear how to
> set/manipulate illumination in vtk. 
> 
> Regards,
> 
> Hassan Amin
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-- 
Dominik Szczerba, Dr.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list