[vtk-developers] Renderer-based camera light tracking checked in, CORRECTIONS

Lorensen, William E (CRD) lorensen at crd.ge.com
Thu Aug 24 08:44:39 EDT 2000


Folks,
I've changed some scripts and checked in some new images to reflect the correct light/camera
interactions that Mike has donated to vtk. I expect most tests top pass tonight. Some arch-specific
images may be required.

Bill

-----Original Message-----
From: Michael Halle [mailto:halazar at media.mit.edu]
Sent: Wednesday, August 23, 2000 12:15 PM
To: vtk-developers at public.kitware.com
Subject: [vtk-developers] renderer-based camera light tracking checked
in



Hey,

I checked in the changes to add improved light/camera tracking to
vtkRenderer.  

I believe the changes to be backward compatible, since I didn't change
any of the code in the interactors.  So, to use the improved tracking,
new code should turn OFF the interactor's LightFollowCamera flag and
let the renderer handle the tracking.  The Tk interactors in
examplesTcl don't have a way to turn off tracking, so the first light
instanced will always be a headlight (but will be rendered incorrectly
only if the user specified it as a CameraLight, which won't happen in
legacy code).

I also haven't hacked any rendering code outside of vtk*Renderer to
use vtkLight::GetTransformedPosition() and FocalPoint(), so code
that used GetPosition() and GetFocalPoint() won't work correctly
with lights that are CameraLights (Headlights and SceneLights work).
Since a change in lighting behavior could possibly botch all the
regession tests, I don't want to wack too much at once :)

I also added a new test, CameraLights.tcl / CameraLights.py, that 
demonstrates the new functionality.


							--Mike


_______________________________________________
vtk-developers mailing list
vtk-developers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtk-developers




More information about the vtk-developers mailing list