[x3d-public] [x3dom-users] Issue with naive X3D JSON loading. Coordinate getPoints() not present

clement at igonet.fr clement at igonet.fr
Thu Aug 13 15:14:04 PDT 2015


Thanks John.

I'm currently working on a converter OpenStreetMap to x3dom for representation of buildings, all that in node.js.

As a very first proof of concept, I made it: http://www.openearthview.net

It would so useful to have a more 'native' implementation of json format in x3dom library...

Clement

Le 13 août 2015 20:41:24 UTC+02:00, John Carlson <yottzumm at gmail.com> a écrit :
>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: http://coderextreme.net/DolphinLoad.xhtml
><http://coderextreme.net/DolphinLoad.xhtml>
>
>John
>> On Aug 13, 2015, at 12:38 PM, John Carlson <yottzumm at gmail.com>
>wrote:
>> 
>> I have discovered a couple of shortcomings.  There is an open issue
>on x3dom about coordinates for a indexed set (IndexedFaceSet in this
>case) https://github.com/x3dom/x3dom/issues/361
><https://github.com/x3dom/x3dom/issues/361>.    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.
>> 
>> 
>> 
>> 
>> 
>>>> On Feb 18, 2015 12:12 PM, "Leonard Daly" <Leonard.Daly at realism.com
><mailto:Leonard.Daly at realism.com><mailto:Leonard.Daly at realism.com
><mailto:Leonard.Daly at realism.com>>> wrote:
>>>> 
>>>>        John,
>>>> 
>>>>        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 http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding
><http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding>. The code is at
>sourceforge (link in the wiki page), and has been added to X3D-Edit.
>>>> 
>>>>        Yvonne Jung developed a JSON loader for X3DOM. You can see
>an example at http://www.x3dom.org/x3dom/test/functional/flipper.html
><http://www.x3dom.org/x3dom/test/functional/flipper.html>.
>>>> 
>>>>        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.
>>>> 
>>>>        Leonard Daly
>>>> 
>
>
>
>------------------------------------------------------------------------
>
>------------------------------------------------------------------------------
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>X3dom-users mailing list
>X3dom-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/x3dom-users

clement at igonet.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20150813/fc9f8d98/attachment.html>


More information about the x3d-public mailing list