Camera/Light FocalPoint/Position

Eduardo Kortright eduardo at cs.uno.edu
Mon May 29 11:06:48 EDT 2000


Hello,

Sorry to bother everyone with what is probably a trivial question.
The VTK User's Manual has the following innocent-looking example:

vtkCamera cam1
vtkLight light
  light SetPosition [cam1 GetPosition]

This tcl code will not work on a recent nightly release of VTK for
Windows.

The result is an error:  Object named: light, could not find requested
method:  SetPosition or the method was called with incorrect arguments.

The same happens if you try to set the FocalPoint for the light.  The
same error occurs if you similarly try to set the camera's position and
focal point as well.  No error occurs if you specify coordinates using
constants as in

  light SetPosition 0 0 3

What am I missing?  Thanks for any pointers.

--
Eduardo Kortright   Department of Computer Science
eduardo at cs.uno.edu   University of New Orleans
Voice: (504) 280-6626   Lakefront Campus
FAX:   (504) 280-7228   New Orleans, LA 70148


--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list