<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Date: Tue, 11 Apr 2017 11:10:49 -0700<br>
From: Leonard Daly <<a href="mailto:Leonard.Daly@realism.com">Leonard.Daly@realism.com</a>><br><br>...<br>
There is an X3D loader for Three<br>
(<a href="https://github.com/jonaskello/three-x3d-loader" rel="noreferrer" target="_blank">https://github.com/<wbr>jonaskello/three-x3d-loader</a>); however, it's node set<br>
is very limited (e.g., no animation) and it does not appear to provide a<br>
DOM interface.</blockquote><div><br></div><div>There is also a vrml parser and  loader: <a href="https://github.com/mrdoob/three.js/pull/10371">https://github.com/mrdoob/three.js/pull/10371</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> John Carlson mentioned he had one, but I am not sure if<br>
it meets the DOM interface requirements. Johannes mentioned that they<br>
looked into Three as a renderer, but at the time there were too many<br>
differences between X3D and how Three handled the scene graph and<br>
rendered the result.<br>
<br>
Initial Requirements<br>
1) Use Three.js for all rendering<br>
2) Provides DOM interface to X3D scene<br>
3) Handle most X3D nodes<br>
4) Easy to add new nodes or features (see A-Frame for an example of "easy")<br></blockquote><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The application needs to be able to run in the DOM and construct a scene<br>
graph using Three from X3D tags (nodes) in the HTML file. In general all<br>
tags and attributes (nodes and fields) need to be accessible from DOM<br>
(both read and write). Internal animations (TimeSensor --> Interpolator<br>
--> TargetNode) need to work.<br>
<br>
So far my preliminary investigation indicates that the problem is<br>
doable. The difficult part appears to be parsing the nodes In the HTML<br>
file and keeping the DOM reference from the node to the Three object.</blockquote><div><br></div><div>Hm, sounds like a job for A-Frame which does the parsing (or registration of new elements with the browser) and linking from DOM to Three.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> I<br>
have no idea of the performance would be, though it does need to be near<br>
90 fps (browser willing).<br></blockquote><div><br></div><div>Three is well optimized but it may come down to limiting geometry and using shaders well.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Does anyone have any insights, comments, or thoughts on such an application?<br></blockquote><div><br></div><div>A lot depends on the time frame and available resources/man power. </div><div>Starting from scratch using modern JS and web APIs, repurposing pieces from x3dom, cobweb, or a-frame, building on top of a-frame, or trying to incrementally adapt x3dom to three.js are all options. I would favor the last two if relatively fast results (< one year) with limited resources are expected but x3dom is aging somewhat and using a-frame will require non x3d node names (or a a-X3D spec.).</div><div><br></div><div>-Andreas</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--<br>
*Leonard Daly*<br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Chair<br>
President, Daly Realism - /Creating the Future/<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170411/6a50e9c7/attachment-0001.html" rel="noreferrer" target="_blank">http://web3d.org/pipermail/<wbr>x3d-public_web3d.org/<wbr>attachments/20170411/6a50e9c7/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 11 Apr 2017 14:22:56 -0400<br>
From: <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>><br>
To: Leonard Daly <<a href="mailto:Leonard.Daly@realism.com">Leonard.Daly@realism.com</a>>, X3D Public<br>
        <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>
Subject: Re: [x3d-public] X3DOM and Three.js<br>
Message-ID: <<a href="mailto:58ed1efe.9468370a.a7d9d.2cf4@mx.google.com">58ed1efe.9468370a.a7d9d.2cf4@<wbr>mx.google.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
My plan for X3D JSON is to use the Proxy object and avoid the DOM.  I suggest we add an attribute that says ?SETTABLE? and ?GETTABLE? as two fields of each object so that we don?t overload the Proxy object with a bunch of changes.<br>
<br>
If you want something that interacts with the DOM, go for it.  I will report on modifications to three-x3d-loader later.  It uses another variety of JSON, but converts the JSON to DOM.   I don?t know if it has observers or not.<br>
<br>
John<br>
Sent from Mail for Windows 10<br>
<br>
From: Leonard Daly<br>
Sent: Tuesday, April 11, 2017 2:11 PM<br>
To: X3D Public<br>
Subject: [x3d-public] X3DOM and Three.js<br>
<br>
I would like to have an application that merged X3DOM and Three.js. The specific requirements are below. I would like to use this to easily handle X3D declarative data and the ability to investigate additional capabilities that are included in Three (animation, shaders, rendering, VR, etc.). There are also many tools that work in conjunction with Three that would be nice to use at various times. I also want to have the DOM interaction provided by X3DOM.<br>
There is an X3D loader for Three (<a href="https://github.com/jonaskello/three-x3d-loader" rel="noreferrer" target="_blank">https://github.com/<wbr>jonaskello/three-x3d-loader</a>); however, it's node set is very limited (e.g., no animation) and it does not appear to provide a DOM interface. John Carlson mentioned he had one, but I am not sure if it meets the DOM interface requirements. Johannes mentioned that they looked into Three as a renderer, but at the time there were too many differences between X3D and how Three handled the scene graph and rendered the result.<br>
Initial Requirements<br>
1) Use Three.js for all rendering<br>
2) Provides DOM interface to X3D scene<br>
3) Handle most X3D nodes<br>
4) Easy to add new nodes or features (see A-Frame for an example of "easy")<br>
The application needs to be able to run in the DOM and construct a scene graph using Three from X3D tags (nodes) in the HTML file. In general all tags and attributes (nodes and fields) need to be accessible from DOM (both read and write). Internal animations (TimeSensor --> Interpolator --> TargetNode) need to work.<br>
So far my preliminary investigation indicates that the problem is doable. The difficult part appears to be parsing the nodes In the HTML file and keeping the DOM reference from the node to the Three object. I have no idea of the performance would be, though it does need to be near 90 fps (browser willing).<br>
Does anyone have any insights, comments, or thoughts on such an application?<br>
--<br>
Leonard Daly<br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Chair<br>
President, Daly Realism - Creating the Future<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170411/d336c679/attachment.html" rel="noreferrer" target="_blank">http://web3d.org/pipermail/<wbr>x3d-public_web3d.org/<wbr>attachments/20170411/d336c679/<wbr>attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<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>
<br>
------------------------------<br>
<br>
End of x3d-public Digest, Vol 97, Issue 24<br>
******************************<wbr>************<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>