<div dir="ltr">This is giving me a chance to try out SplineInterpolators, and it is fun. I updated the moving light to smoothly turn around, and added a second circling light. Both was possible with only a few lines using spline interpolation, and no scripts.<div><br></div><div>Here is a question for spline experts. I could produce a path resembling a circle with only three key values (start,middle, start) and key velocities, using SplinePositionInterpolator. The velocities are tangential to the path. It turns out that a velocity magnitude of about 4 times the intended radius produces a good approximation of a circle. How would one produce an exact circle path with SplinePositionInterpolator ?</div><div><br></div><div>updated but a little busy now:</div><div><br></div><div><a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/leaf.html" rel="noreferrer" target="_blank" style="font-size:12.8px">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/leaf.html</a><br style="color:rgb(0,0,0);font-size:12.8px"><a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/rust_metal_ambient_texture.html" rel="noreferrer" target="_blank" style="font-size:12.8px">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/rust_metal_ambient_<wbr>texture.html</a><span style="color:rgb(0,0,0);font-size:12.8px">> </span><a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/rust_metal_shininess_texture.html" rel="noreferrer" target="_blank" style="font-size:12.8px">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/rust_metal_shininess_<wbr>texture.html</a><br style="color:rgb(0,0,0);font-size:12.8px"><a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/synthetic_metal_textures_specular_map.html" rel="noreferrer" target="_blank" style="font-size:12.8px">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/synthetic_metal_<wbr>textures_specular_map.html</a><br></div><div><br></div><div>Andreas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 5, 2017 at 8:14 PM, Michalis Kamburelis <span dir="ltr"><<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2017-05-06 1:55 GMT+02:00 Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>>:<br>
> On Mon, May 1, 2017 at 5:34 AM, Michalis Kamburelis<br>
> <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br>
>><br>
>> 2017-05-01 1:48 GMT+02:00 Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>>:<br>
>> ><br>
>> > Very nice. I forked and updated the examples in cors branch to use https<br>
>> > and<br>
>> > a x3dom crossOrigin field for loading the textures with rawgit. As a<br>
>> > result<br>
>> > the examples now are live on these rawgit links:<br>
>> ><br>
>> ><br>
>> > <a href="https://github.com/andreasplesch/demo-models/blob/cors/common_surface_shader/x3dom/live_links.md" rel="noreferrer" target="_blank">https://github.com/<wbr>andreasplesch/demo-models/<wbr>blob/cors/common_surface_<wbr>shader/x3dom/live_links.md</a><br>
>> ><br>
>> > for example:<br>
>> ><br>
>> ><br>
>> > <a href="https://rawgit.com/andreasplesch/demo-models/cors/common_surface_shader/x3dom/leaf.html" rel="noreferrer" target="_blank">https://rawgit.com/<wbr>andreasplesch/demo-models/<wbr>cors/common_surface_shader/<wbr>x3dom/leaf.html</a><br>
>> ><br>
>><br>
>> This is great, this makes them comfortable to view online! I applied<br>
>> your changes:)<br>
>><br>
><br>
> I am experimenting a bit more with the common surface shader examples.<br>
> Making the point light source dynamic shows off the detail of the<br>
> pseudo-relief of the normaltexture:<br>
> <a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/leaf.html" rel="noreferrer" target="_blank">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/leaf.html</a><br>
> <a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/rust_metal_ambient_texture.html" rel="noreferrer" target="_blank">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/rust_metal_ambient_<wbr>texture.html</a><br>
> <a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/rust_metal_shininess_texture.html" rel="noreferrer" target="_blank">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/rust_metal_shininess_<wbr>texture.html</a><br>
> <a href="https://rawgit.com/andreasplesch/demo-models/css-x3dom/common_surface_shader/x3dom/synthetic_metal_textures_specular_map.html" rel="noreferrer" target="_blank">https://rawgit.com/<wbr>andreasplesch/demo-models/css-<wbr>x3dom/common_surface_shader/<wbr>x3dom/synthetic_metal_<wbr>textures_specular_map.html</a><br>
><br>
> The great textures deserve highlighting :)<br>
><br>
<br>
Yes!<br>
<br>
You did it first:) I had recorded in my TODO file to do "either an<br>
animation of light or a PlaneSensor to move the light". Indeed --- the<br>
effect of these textures is most awesome when the light source is<br>
moving relative to the lit object. In my view3dscene, I used the "Edit<br>
-> Edit Lights" feature to move the light at runtime and test this.<br>
<br>
I browse the changes from your andreasplesch:css-x3dom branch, and<br>
merged them all to my demo-models master branch:)<br>
<br>
Thank you!<br>
<span class="HOEnZb"><font color="#888888">Michalis<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div>