<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 2, 2016 at 3:27 AM, Joe D Williams <span dir="ltr"><<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I think the 'standard' html browser includes all the runtime needed for the SVG.<br>
Yes, I must be missing something because from what I looked at that same script could be external or internal to the SVG context. Do they need an special svg script node internal to the <svg> ... <./svg> just for convenience or does it do something not possible if the script is outside?. I thought the html scrpt node could actually appear almost anywhere but maybe not enclosed in the svg or other tagset.<br></blockquote><div><br></div><div>The way I understand the svg script element is that it happens to be defined to be equivalent to the HTML script element but is actually a different kind of element. I am sure there were good reasons not to introduce any special functionality. It looks like the main decision was to give it global scope, eg. access to the DOM outside the svg scene (dom). The svg script element is useful when svg is used standalone, as in inkscape for example.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
For x3dom some great javascript provides the X3D 'runtime' and I guess that and maybe other details makes problems for the X3D 'internal' Script node.</blockquote><div><br></div><div>Well, cobweb shows that is is possible to have a javascript runtime with an internal script node which follows the spec, It is just that it is difficult to have both at the same time integration of x3d into the DOM as DOM elements (like svg), and also support for internal x3d scripts. It would be great for backward compatibility to somehow have both ways of interfacing with a x3d scene but it would be a major effort and I am not sure if there is enough motivation to try to realize that in a browser.  </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> And I agree that x3d inline in html can't run like the existing x3d sai 'external' because that interface requires any external application to use x3d sai syntax and always is managed directly by the X3D runtime. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
abstract SAI<br>
<a href="http://www.hypermultimedia.com/x3d/Quick/SAIABSDEFS.htm" rel="noreferrer" target="_blank">http://www.hypermultimedia.com/x3d/Quick/SAIABSDEFS.htm</a><br>
<br>
ecmascript SAI<br>
<a href="http://www.hypermultimedia.com/x3d/Quick/SAIDEFS.htm" rel="noreferrer" target="_blank">http://www.hypermultimedia.com/x3d/Quick/SAIDEFS.htm</a><br>
<br></blockquote><div><br></div><div>This is a nice compact list. Would it make sense for the group to come up with equivalent DOM style interface functions, perhaps on a wiki page ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
working on the sai java bindings.<br></blockquote><div><br></div><div>Andreas</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
----- Original Message ----- From: "Andreas Plesch" <<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>><br>
To: "Joe D Williams" <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>><br>
Cc: "X3D Graphics public mailing list" <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>
Sent: Friday, April 01, 2016 7:46 AM<br>
Subject: Re: [x3d-public] id attribute proposal<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
This is an example on how the DOM via javascript is used to animate. There<br>
is no difference between a script element inside or outside a svg scene<br>
which is a fragment of a document.<br>
<br>
<a href="https://www.w3.org/TR/SVG11/script.html#ScriptElement" rel="noreferrer" target="_blank">https://www.w3.org/TR/SVG11/script.html#ScriptElement</a><br>
<br>
Andreas<br>
<br>
<br>
On Fri, Apr 1, 2016 at 5:23 AM, Joe D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>><br>
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script" rel="noreferrer" target="_blank">https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script</a><br>
<br>
<br>
----- Original Message ----- From: "Andreas Plesch" <<br>
<a href="mailto:andreasplesch@gmail.com" target="_blank">andreasplesch@gmail.com</a>><br>
To: "X3D Graphics public mailing list" <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>
Sent: Thursday, March 31, 2016 4:42 PM<br>
Subject: Re: [x3d-public] id attribute proposal<br>
<br>
<br>
<a href="http://blogs.adobe.com/dreamweaver/2015/06/the-state-of-svg-animation.html" rel="noreferrer" target="_blank">http://blogs.adobe.com/dreamweaver/2015/06/the-state-of-svg-animation.html</a><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
has a lengthy discussion on SVG animation. It concludes that animation via<br>
the DOM are in many cases the best option because SMIL is deprecated and<br>
easily replaced by more powerful JavaScript.<br>
<br>
I was hoping that the article goes into how collisions between SMIL, CSS<br>
and DOM based animation are resolved but it does not. Apparently it is not<br>
a concern.<br>
<br>
Andreas<br>
<br>
It turns out that SVG uses the SMIL animation model:<br>
<br>
<a href="https://www.w3.org/TR/smil-animation/" rel="noreferrer" target="_blank">https://www.w3.org/TR/smil-animation/</a><br>
<br>
It defines that animation does not affect the DOM value of an animated<br>
property but a separate presentation value which is only accessible to the<br>
animation runtime, and not the DOM. The specification does not go into<br>
what<br>
values are used for rendering but the idea is certainly that the<br>
presentation value is used. This would make it necessary for a renderer to<br>
keep track of what attributes are currently animated by SVG and which ones<br>
are not. Since the animate element is the only possible way to do this in<br>
SVG, this is feasible. For the richer X3D scene graph, this would be much<br>
harder and does not seem like a good model to follow at first glance.<br>
<br>
Andreas<br>
<br>
<br>
</blockquote>
<br>
<br>
--------------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">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/listinfo/x3d-public_web3d.org</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br><span class=""><font color="#888888">
<br>
-- <br>
Andreas Plesch<br>
39 Barbara Rd.<br>
Waltham, MA 02453<br>
<br>
</font></span></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Andreas Plesch<br>39 Barbara Rd.<br>Waltham, MA 02453</div>
</div></div>