[vtkusers] vtkLightKit
Michael Halle
halazar at media.mit.edu
Thu Nov 14 11:32:31 EST 2002
James C. Robinson writes:
> However, it results in the entire mesh being less visible (badly lit)
> than the default light.
Why does it look bad? Too bright? You probably need to turn the existing
headlight light off if it's on. From memory, you need to get the existing
lights from the renderer, InitTraversal, loop over each light (there's
probably just one), and either remove it or set its intensity to 0. Then
add the LightKit.
You can also add your own lights in camera space by setting the light type
to be a CameraLight. CameraLights are in a normalized coordinate space
attached to the camera frame.
Michael Halle
mhalle at bwh.harvard.edu
More information about the vtkusers
mailing list