<div dir="ltr">I found Blender wraps DirectionalLight in a Transform when exporting X3D.. In freewrl DirectionalLight applies to siblings and lower. So the blender light doesn't show. But I found that was handy for Inlining a blender scene, and applying the lights I wanted in the parent scene. <div><a href="http://dug9.users.sourceforge.net/web3d/sunpath/SunPath.x3d">http://dug9.users.sourceforge.net/web3d/sunpath/SunPath.x3d</a><br></div><div>Also seens to work in X_ITE.<div><a href="http://dug9.users.sourceforge.net/web3d/sunpath/SunPath.html">http://dug9.users.sourceforge.net/web3d/sunpath/SunPath.html</a><br></div></div><div>-Doug</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 11, 2018 at 2:01 PM, Leonard Daly <span dir="ltr"><<a href="mailto:Leonard.Daly@realism.com" target="_blank">Leonard.Daly@realism.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_-2941793593149029475moz-cite-prefix">Andreas,<br>
      <br>
      The spec text that only the selected child of a Switch is
      traversed. It doesn't explicitly state it, but I presume that
      means is rendered (or at least considered for rendering). All
      children of a Switch participate in event handling (sending and
      receiving, including state changes). <br>
      <br>
      At one time (~20 years ago), lighting was expensive and limited to
      8 lights. Light scoping was limited so the scene could be
      rendered. I have not really seen scoped lights in quite a while. I
      think it is possible, but you need to go to extra work to make it
      happen. Unfortunately, X3D (spec) has not kept pace with the rest
      of the graphics community on lighting, while many of the
      applications have. <br>
      <br>
      I would not consider it good practice to include lights as an
      indirect child because they can have an impact beyond the limit of
      the node. <br>
      <br>
      <br>
      Leonard Daly<br>
      <br>
      <br>
      <br>
      Children of switch nodes still participate in all events; however
      the <br>
    </div><span class="">
    <blockquote type="cite">
      <pre>Since lights are child nodes, they can occur as children of switch nodes.

Presumably that means that only light nodes which are traversed in the
switch are active and should be used for illumination. Others occuring
in the switch should be turned off. Is that the intended behaviour ?

I am asking because switch is mostly used with Shape nodes, and x3dom
currently uses all lights whereever they occur.

Thanks, Andreas

</pre>
    </blockquote>
    <p><br>
    </p>
    </span><span class="HOEnZb"><font color="#888888"><div class="m_-2941793593149029475moz-signature">-- <br>
      <font class="m_-2941793593149029475tahoma,arial,helvetica m_-2941793593149029475san m_-2941793593149029475serif" color="#333366">
        <font size="+1"><b>Leonard Daly</b></font><br>
        3D Systems & Cloud Consultant<br>
        LA ACM SIGGRAPH Past Chair<br>
        President, Daly Realism - <i>Creating the Future</i>
      </font></div>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/<wbr>listinfo/x3d-public_web3d.org</a><br>
<br></blockquote></div><br></div>