[vtkusers] Lights - more info

James C. Robinson j.robinson at kepler.ie
Wed Nov 20 07:35:11 EST 2002


Dear All,

No replies so far! In the meantime, I discovered (somewhere in the doc) that
the first light added to a vtkRenderer's vtkLightCollection is automatically
turned into a headlight. I then swapped the order in which I add the lights:

    this->Renderer->AddLight(Headlight) ;
    this->Renderer->AddLight(KeyLight) ;
    this->Renderer->AddLight(FillLight) ;

making sure that the light that I wanted as a headlight was first. This
improved the result, in that I got more consistent lighting. However, all I
am getting is the Headlight. I counted the lights in the collection
(GetNumberOfItems) and it is 3, but the other two lights don't seem to have
any effect.

Also, when using the SetDirectionAngle method, what exactly do elevation and
azimuth refer to. I assume that it is relative to the Cartesian coordinates
(e.g. elevation 0 , azimuth 0 means looking back along the x-axis) but how
does this relate to what happens when the camera moves (and so should all
the lights).

More ideas please........


Regards,

Jim

______________________

James C. Robinson, PhD,
Chartered Engineer,
Kepler Engineering Software Ltd.,
42 Rivergrove, 
Glanmire, Co. Cork,
Eire

Tel:         +353-21-4822028
Tel:         +353-87-2393010
Fax:        +353-21-4822721
E-mail:     j.robinson at kepler.ie
______________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5628 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021120/85ada3e3/attachment.bin>


More information about the vtkusers mailing list