[vtkusers] Re: Lighting problem
Paul Tait
paul at opes.com.au
Mon Feb 21 19:51:59 EST 2005
Sorry should of told you I'd already tried that. It does the same but
its dimmer. Just using plain old 4.2. with the
vtkWin32RenderWindowInteractor I'm going to try an jiffy something up in
python that exhibits the problem.
Paul
-----Original Message-----
From: Goodwin Lawlor [mailto:goodwin.lawlor at ucd.ie]
Sent: Monday, 21 February 2005 9:28 PM
To: Paul Tait
Subject: Re: [vtkusers] Re: Lighting problem
Hi Paul,
Sounds like there is a bug in the interactor style when using
vtkLightKit... which one are you using?
Have you tried your scene without the light kit and just the default
light setup? Does it have the same problem?
I tried an example I have with the light kit and it works ok when moving
actors around. What version of VTK are you using?
Goodwin
----- Original Message -----
From: "Paul Tait" <paul at opes.com.au>
To: "'Goodwin Lawlor'" <goodwin.lawlor at ucd.ie>
Sent: Monday, February 21, 2005 4:56 AM
Subject: RE: [vtkusers] Re: Lighting problem
> Hmmmmm
>
> As I understand it vtkLightKit uses parallel light sources so distance
> shouldn't make any difference. Interestingly when I first move my
> actors they display correctly but only dissappear when I move them
> with the mouse. Also I leave the position of my top (vertically
> speaking) actor the same so you would think that it would still be lit
> correctly.
>
> Paul
>
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] Re: Lighting problem
>
>
> 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
> >
>
>
>
> _______________________________________________
> 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: 266.1.0 - Release Date: 18/02/2005
>
>
>
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.1.0 - Release Date: 18/02/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.3.0 - Release Date: 21/02/2005
More information about the vtkusers
mailing list