<div dir="ltr"><div><div><div><div><div><div>X3D experts,<br></div><div><br></div>I got stuck on a what must be a basic issue with light scoping.<br><br><a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/lighting.html#Scopingoflights">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/lighting.html#Scopingoflights</a><br><br> I want to use scoping for a directional light, eg. with a global field set to 'false'<br><br></div><Group><br></div>  <DirectionalLight global='false' ... /><br></div>  <Shape DEF='illuminated_by_directional_light><br>    ...<br></div>  </Shape><br></div></Group><br><div><div><div><div><div><br><Group DEF='not_illuminated_by_directional_light'><br>   ..<br></div><div></Group><br><br></div><div>Would this be the correct hierarchy to use ? <br><br></div><div>Now I also want to enclose the directional light in a transform, in order to control it by a routed rotation from a OrientationSensor. At the same time, I do not want to rotate the illuminated shape.<br><br><Group><br></div><div>  <Transform DEF='light_Trafo'><br></div><div>    <DirectionalLight global='false' ... /><br></div><div>  </Transform><br></div><div>  <Shape DEF='illuminated_by_directional_light><br>    ...<br>  </Shape><br></Group><br><Group DEF='not_illuminated_by_directional_light'><br><br></div><div>However, now the Shape is outside the scope of the light, and not affected by it.<br><br></div><div>This is where I am stuck. What would be the correct hierarchy to use for this case ?<br></div><div><br></div><div>This is rather theoretical for me because I believe the global field is not supported by x3dom at this point:<br></div><div><br><a href="https://github.com/x3dom/x3dom/issues/83">https://github.com/x3dom/x3dom/issues/83</a><br><br></div><div>-Andreas<br></div><div><br></div></div></div></div></div></div>