<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii" /><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class="" /></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks John.<br>
<br>
I'm currently working on a converter OpenStreetMap to x3dom for representation of buildings, all that in node.js.<br>
<br>
As a very first proof of concept, I made it: <a href="http://www.openearthview.net">http://www.openearthview.net</a><br>
<br>
It would so useful to have a more 'native' implementation of json format in x3dom library...<br>
<br>
Clement<br><br><div class="gmail_quote">Le 13 août 2015 20:41:24 UTC+02:00, John Carlson <yottzumm@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Not a fix to the issue, but a work around.  The work around is to build the children before adding to the parent node.  This involved reordering 2 lines of code in my current X3D JSON loader.   I would like to try this on more scenes.   Here is some code for you to try yourself: <a href="http://coderextreme.net/DolphinLoad.xhtml" class="">http://coderextreme.net/DolphinLoad.xhtml</a><div class=""><br class="" /></div><div class="">John<br class="" /><div><blockquote type="cite" class=""><div class="">On Aug 13, 2015, at 12:38 PM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline" /><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I have discovered a couple of shortcomings.  There is an open issue on x3dom about coordinates for a indexed set (IndexedFaceSet in this case) <a
href="https://github.com/x3dom/x3dom/issues/361" class="">https://github.com/x3dom/x3dom/issues/361</a>.    The way my JSON loader works, it creates X3DOM nodes on the fly while parsing the X3DJSON.   This means that the IndexedFaceSet is loaded before the Coordinate.  What I will try to do is create the nodes in post order form, creating the parents after the children.  That seems to be the best approach so far.</div><div class=""><br class="" /></div><div class=""><br class="" /></div><div class=""><br class="" /></div><br class="" /><br class="" /><blockquote type="cite" class=""><blockquote type="cite" class="">On Feb 18, 2015 12:12 PM, "Leonard Daly" <<a href="mailto:Leonard.Daly@realism.com" class="">Leonard.Daly@realism.com</a><<a href="mailto:Leonard.Daly@realism.com" class="">mailto:Leonard.Daly@realism.com</a>>> wrote:<br class="" /><br class="" />       John,<br class="" /><br class=""
/>       Are you aware that Don Brutzman did an initial JSON converter using a style sheet to go from .x3d -> x3d-json. The description is at <a href="http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding" class="">http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding</a>. The code is at sourceforge (link in the wiki page), and has been added to X3D-Edit.<br class="" /><br class="" />       Yvonne Jung developed a JSON loader for X3DOM. You can see an example at <a href="http://www.x3dom.org/x3dom/test/functional/flipper.html" class="">http://www.x3dom.org/x3dom/test/functional/flipper.html</a>.<br class="" /><br class="" />       The initial work was completed last October. The wiki page lists several considerations. The Consortium is considering standardizing the JSON format. We would like everyone's comments and thoughts on the work that has been done,
particularly where there are shortcomings or failures.<br class="" /><br class="" />       Leonard Daly<br class="" /><br class="" /></blockquote></blockquote></div></div></blockquote></div><br class="" /></div><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br /></pre><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />X3dom-users mailing list<br />X3dom-users@lists.sourceforge.net<br /><a href="https://lists.sourceforge.net/lists/listinfo/x3dom-users">https://lists.sourceforge.net/lists/listinfo/x3dom-users</a><br /></pre></blockquote></div><br>
clement@igonet.fr</body></html>