<div dir="ltr"><div>Bob,<br><br>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.<br><br></div><div>lights = GetActiveView().GetRenderer().GetLights()<br></div>for i in range(0, lights.GetNumberOfItems()):<br><div>   lights.GetItemAsObject(i).SetLightTypeToSceneLight()<br></div><div><br>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.<br><br></div><div>hope that helps<br></div><br><div><br><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Fri, Jan 6, 2017 at 4:39 AM, Bob Flandard <span dir="ltr"><<a href="mailto:bflandard@gmail.com" target="_blank">bflandard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Scott,<br><br></div>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).<br><br></div>Thanks, Bob <br><br></div>ParaView 5.2 on Windows 7<br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 6 January 2017 at 00:17, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_8067350818663082026m_-6606515936164823048WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Bob,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">What version of ParaView are you using?  5.1.2 is known to have issues.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Alan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@parav<wbr>iew.org</a>]
<b>On Behalf Of </b>Bob Flandard<br>
<b>Sent:</b> Thursday, January 5, 2017 5:13 PM<br>
<b>To:</b> paraview <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<b>Subject:</b> [EXTERNAL] [Paraview] OSRay and shadows<u></u><u></u></span></p>
</div>
</div><span>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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?<u></u><u></u></p>
</div>
<p class="MsoNormal">Thanks, Bob<u></u><u></u></p>
</div>
</span></div>
</div>
</div>

</blockquote></div></div></div><br></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>