[vtkusers] vtkLightKit

Ben Held ben.held at staarinc.com
Wed Mar 28 12:08:30 EST 2001


I am doing this in C++.  If I just create a new vtkLightKit, add it to the
renderer and call LightFollowCameraOn(), the object I display are black.  Is
this because the defaults for a new light kit are not appropriate?  The
documentation does not provide any info on proper values for the various
adjustment calls provided in vtkLightKit.  Perhaps it is easier to use


-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Michael Halle
Sent: Wednesday, March 28, 2001 10:57 AM
To: Ben Held
Cc: vtkusers at public.kitware.com
Subject: Re: [vtkusers] vtkLightKit

Look at contrib/examplesTcl/LightKitViewer.tcl

The basic idea is (iren is interactor, ren1 is renderer)

iren LightFollowCameraOff
ren1 LightFollowCameraOn

vtkLightKit lightKit
lightKit AddLightsToRenderer ren1

After that, adjust the key light, fill light, and headlight positions,
relative intensities, and warmth as described in the help in the above


This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
Follow this link to subscribe/unsubscribe:

More information about the vtkusers mailing list