[vtkusers] Problem with lighting: Dark 3D objects, SetLightType() has no effect?
Petru Pau
ppau at risc.uni-linz.ac.at
Mon Jun 7 05:05:57 EDT 2004
My solution to this was to add another light source, somewhere to the "back"
of the object (I did not care about shades). Something like that:
vtkLight light1 = vtkLight.New();
light1.SetPosition(0,0,20);
light1.SetFocalPoint(0, 0, 0);
vtkLight light2 = vtkLight.New();
light2.SetPosition(0,0,-20);
light2.SetFocalPoint(0, 0, 0);
renderer.AddLight(light1);
renderer.AddLight(light2);
Hope this helps.
Petru
More information about the vtkusers
mailing list