<div dir="auto">Ah it's the form versus function again.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 6, 2016 8:40 AM, "Roy Walmsley" <<a href="mailto:roy.walmsley@ntlworld.com">roy.walmsley@ntlworld.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="#0563C1" vlink="#954F72"><div class="m_3050218539267770197WordSection1"><p class="MsoNormal">Hi again,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I had some personal replies as follows:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Imperative includes verbs. Declarative does not????<span style="font-size:12.0pt"><u></u><u></u></span></p><p class="MsoNormal">Or, declarative is who what where when and imperative is how.<span style="font-size:12.0pt"><u></u><u></u></span></p><p class="MsoNormal">And why is causative. X5D?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">A question then: Is X3D, in its current form, declarative or imperative?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For example, I might have the following simple scene extract:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><Group><u></u><u></u></p><p class="MsoNormal"> <Transform translation = “0,0,2”><u></u><u></u></p><p class="MsoNormal"> <Shape><u></u><u></u></p><p class="MsoNormal"> <Box><u></u><u></u></p><p class="MsoNormal"> </Box><u></u><u></u></p><p class="MsoNormal"> </Shape><u></u><u></u></p><p class="MsoNormal"> </Transform><u></u><u></u></p><p class="MsoNormal"></Group><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is this declarative, or imperative? I’ve simply told it to draw a box, in the specified location, with the default size and appearance. I haven’t told it how to draw the box. On the other hand, I didn’t say “Draw a box with its centre two metres off the ground.”. Neither did I say “Draw a scene”. Granted, there are no verbs. There again, X3D doesn’t have them! In comparison, however, I have told it how to draw a scene. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">It’s all a matter of the level of abstraction that you’re basing your judgement on… And whether you are looking up or down …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Roy<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> x3d-public [mailto:<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@<wbr>web3d.org</a>] <b>On Behalf Of </b>Roy Walmsley<br><b>Sent:</b> 06 December 2016 12:00<br><b>To:</b> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br><b>Subject:</b> [x3d-public] Philosophical contemplations<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">First, a disclaimer. The contemplations below do not claim to represent the viewpoint of the Web3D Consortium. Indeed, they may not even represent my own personal viewpoint. They are expressed purely as stimulation for discussion.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u>Contemplation 1<u></u><u></u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Recently Leonard has been seeking comments about “Essential elements of X3D”. While I would suggest that the question is not well phrased, since he is probably thinking about what should be in the next version of X3D, it did lead me into thinking more liberally.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" align="center" style="text-align:center"><b><span style="font-size:20.0pt">X3D<u></u><u></u></span></b></p><p class="MsoNormal">X3D – Extensible 3D.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Imagine sitting in your own office or living room. Contemplate what X3D structures (nodes) you would want available to model it. Pause for thought …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Now, consider what structures (nodes) you would want to build a representation of the real thing, as opposed to the virtual one. Pause for thought …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Now, extend that last thought to consider what structures (nodes) you would want to build a representation of the whole building. Pause for thought …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">And why stop there, what about the whole town (or city, or village, as appropriate), or the whole country, or the whole earth, or the whole solar system, or even the universe. Long pause for thought (and ignore any practicalities such as data size) …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But why just 3D? These places aren’t static. They are dynamic. A fourth dimension, time, is involved. It took time for me to write this e-mail. It will take you time to read it (or maybe tl:dr).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">What structures (nodes) are required to fully support this extra dimension? At any or all of these levels. Pause for thought …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So should we, perhaps, be calling this extensible 4D? I.e.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" align="center" style="text-align:center"><b><span style="font-size:20.0pt">X4D<u></u><u></u></span></b></p><p class="MsoNormal">Coincidentally, the next version of X3D is planned to be version 4 !!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u>Contemplation 2<u></u><u></u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Imperative, or declarative. There’s no such thing! What they really are is levels of abstraction.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Let’s take, as an illustration, humanoid animation. Assume we have built an H-Anim figure, fully skinned, and clothed (or, to use other terminology, we have taken our mesh model of a humanoid and fully rigged it ready for animation). Now we can define a simple “step left foot forward” motion, by specifying a few joint rotations. Is this declarative or imperative programming? All the details about vertex transformations are hidden from the animator by the H-Anim implementation.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Similarly, we can define “step right foot forward”, “swing left arm”, “swing right arm”, “look left”, “look ahead”, etc, etc. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Now, consider the requirements for defining “walk from Point A to Point B”. We could define it in terms of the basic motions referred to above. Is this declarative or imperative programming?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Similarly, we could define “get in the car”, “drive from Point C to Point D”.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We can then consider generalising it some more, to define the motion “go to work”. This might involve the sub-steps “Leave the house”, “walk to the car”, “get in the car”, “drive to the work car park”, “get out of the car”, “walk from the car park to the office”. Each of these steps is broken down more. So “walk to the car” involves, at the very least, “step left foot forward”, “step right foot forward” multiple times (no comments about hopping please!). Each single step motion involves individual joint rotations, which in turn are used to calculate vertex transformations. To say nothing of rendering the model at each frame from the start to the finish.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So, it’s really about choosing the abstraction levels. Optimising each one, and allowing appropriate parameterisation …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Well, that’s enough for now,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Feel free to come up with your own …<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Roy<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></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></div>