[x3d-public] Using prototype expander on H-Anim figures. Offer of service for prototype expansion.

John Carlson yottzumm at gmail.com
Fri Jul 1 14:20:46 PDT 2016


NancyPrototypes.json successfully expands and runs in Cobweb (not X3DOM—missing sensor nodes I think).  Attached.  Also, I converted the JSON to XML for Cobweb and other purposes (yours).  Note that there are no HAnim nodes or Protos in these files and they run okay.  Note that the result XML is smaller than the original (but whitespace is taken out).  I tested the result file in Octaga.

I think it’s time to start working on Script nodes, if we can solve the extra nodes in containerFields because of Protos (like chopping the extra nodes off).  I have introduced some bugs in Scripts currently in the Proto Expander.  Also, it would be good to get all ProtoExpanded-Script files working in Cobweb.  There may be more name-mangling to do.   Likely the scripts may need to be modified now.

Code is at https://github.com/coderextreme/X3DJSONLD.   The prototype expander is PPP.js and an example of how to run it is in runppp.sh  The prototype expander is incorporated into the X3DJSON Loader, found in index.html (run node app.js and go to http://localhost:3000 after doing an npm install—npm install downloads a bunch of files I haven’t checked the license of.  Look in node_modules and for the main modules see package.json).

Good luck!

If there are any other proto based files you want me to expand, let me know in a private (or public) message.

Also there may be some work if the externprotodeclare interfaces don’t match the protodeclare interfaces.

John
Sent from Mail for Windows 10

From: John Carlson
Sent: Sunday, June 19, 2016 6:54 AM
To: x3d-public at web3d.org; Don Brutzman; Roy Walmsley; Joe D Williams
Subject: Using prototype expander on H-Anim figures. Debugging.

I have started work on NancyPrototypes.json in the Prototype Expander.  I was able to get all the DEFs and ROUTEs hooked up I think (I am not sure about the USEs yet).  So I have some data which could be debugged to tell me more information about what I am doing wrong.  For example, I may be copying default values or any value to too many places or I may be missing critical USEs.  The animation isn’t correct yet, so if you have any insight about that, let me know.

Included are the orginal and expanded X3D XML.  The expanded file is NancyExpanded.x3d.  Thanks, John

There is no scripting in these files, to my knowledge.

Insight into why the text doesn’t show in X3DOM would be appreciated!

Sent from Mail for Windows 10


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160701/b06811ba/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NancyPrototypes.json
Type: application/json
Size: 1183701 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160701/b06811ba/attachment-0001.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NancyExpanded.x3d
Type: application/octet-stream
Size: 132505 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160701/b06811ba/attachment-0001.obj>


More information about the x3d-public mailing list