Lighting...

BAYAN MOHAMED QANDIL bqandil at julian.uwo.ca
Tue Aug 24 12:44:29 EDT 1999


Hello everyone...

  I've been making my own routines to controlling a simple box using cpp.
My problem is that I can't get the light to follow the camera.  I'm not
using the vtkRenderWindowInteractor so I don't want to use the 
LightFollowCameraOn() function.  I used the following simple lines which
should work:

  light->SetPosition(camera->GetPosition());
  light->SetFocalPoint(camera->GetFocalPoint());

  for some reason, this makes the light shine on the exact opposite side
of the box.  I don't understand why.  Any input would be appreciated.

bayan



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list