[vtkusers] vtkLightKit
Ben Held
ben.held at staarinc.com
Wed Mar 28 12:08:30 EST 2001
Michael,
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
vtkLight?
Ben
-----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
example.
--Mike
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list