[vtkusers] Re: Lighting problem

Goodwin Lawlor goodwin.lawlor at ucd.ie
Fri Feb 18 08:06:35 EST 2005


Hi Paul,

Try transforming your lights (position and focal point) by the actors
transform. Maybe try actor->GetMatrix(matrix);
light->SetTransformMatrix(matrix).

I'd guess that the other actors in your scene wont look right then though...
try moving the light position back along the direction of projection
instead.

hth

Goodwin

"Paul Tait" <paul at opes.com.au> wrote in message
news:007a01c5158a$f1fff200$af0aa8c0 at DEEPTHROAT...
> More info to perhaps pique your interest
>
> I'm moving my actors around with actor->AddPosition(0, 0, deltaZ)
>
> I can see the bottom of my actors but as soon as I get above the
> horizontal its as if the lights switch off.  This only happens AFTER
> I've used actor->AddPosition(0, 0, deltaZ) Before that I can view them
> from any angle.
>
> Paul
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> Behalf Of Paul Tait
> Sent: Thursday, 17 February 2005 5:21 PM
> To: vtkusers at vtk.org
> Subject: [vtkusers] Lighting problem
>
>
> I've just modified my VTK app to accentuate the vertical distances
> between some oil reservoirs. Everything goes fine till  start moving the
> model around. From many angles the it just shows black. By moving around
> to another position I can see it again. I'm using a plain vtlLightKit
> which normally works really well for me. Do I have to inform it or
> something else of the change in the scene ?
>
> Paul Tait
>
> PS Wil... Hows my high contrast LUT coming on ?
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to
> subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 14/02/2005
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>






More information about the vtkusers mailing list