Thanks David, The Python code works well enough for my use. I see what you mean about 5.1, it almost does what I want, but is messes up the light directions.
Regards, Bob On 6 January 2017 at 13:49, David E DeMarle <dave.dema...@kitware.com> wrote: > Bob, > > There is no control for that just yet. Work is in progress to provide the > full complement of light controls. If you are working in builting mode, you > can resort to python as follows. > > lights = GetActiveView().GetRenderer().GetLights() > for i in range(0, lights.GetNumberOfItems()): > lights.GetItemAsObject(i).SetLightTypeToSceneLight() > > Note: the light position bug in 5.1 that Alan was referring to had the > effect of making making the light positions fixed (scene lights in vtk > terms). In 5.2 that was corrected and now they are camera relative lights > that move with the viewer as they do with GL rendering. > > hope that helps > > > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > > On Fri, Jan 6, 2017 at 4:39 AM, Bob Flandard <bfland...@gmail.com> wrote: > >> Hi Scott, >> >> Here's a state file, where the shadow of the cylinder is approximately >> perpendicular the the arrows on the ground. As I move the model around in >> 3d with the mouse, I'd like the shadow to remain perpendicular to the >> arrows, similar to how it would look if I walked around the cylinder on a >> sunny day (assuming I didn't walk extremely slowly). I'd like the light >> source to be fixed relative to ground rather than the screen - I'm >> surprised that isn't the default or an option (at least I haven't found it). >> >> Thanks, Bob >> >> ParaView 5.2 on Windows 7 >> >> On 6 January 2017 at 00:17, Scott, W Alan <wasc...@sandia.gov> wrote: >> >>> Bob, >>> >>> What version of ParaView are you using? 5.1.2 is known to have issues. >>> >>> >>> >>> Alan >>> >>> >>> >>> *From:* ParaView [mailto:paraview-boun...@paraview.org] *On Behalf Of *Bob >>> Flandard >>> *Sent:* Thursday, January 5, 2017 5:13 PM >>> *To:* paraview <paraview@paraview.org> >>> *Subject:* [EXTERNAL] [Paraview] OSRay and shadows >>> >>> >>> >>> Hello, >>> >>> How can I lock the light source direction to change with the 3d viewing >>> angle, so that the shadows with OSRay don't imply a moving light source as >>> I rotate the model in 3d? >>> >>> Thanks, Bob >>> >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> >> >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview