[x3d-public] [x3dom-users] simple X3D -> JSON -> X3DOM, D3.js

Don Brutzman brutzman at nps.edu
Wed Feb 25 13:30:54 PST 2015


cc: lists for repeatability

On 2/25/2015 12:20 PM, John Carlson wrote:
> Can  someone provide me with a flipper.json in X3D JSON encoding which encodes the X3D on http://www.x3dom.org/x3dom/test/functional/flipper.html.

Published version that is likely origin of Yvonne's work is

http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter07-EventAnimationInterpolation/

	Dolphin/DolphinMorpher.x3d
	DolphinMorpher.xhtml (X3DOM)
	DolphinMorpher.html  (documentation)
	DolphinMorpher.json

Incidentally we were never able to find the author of the original Maya model.  We found this in the original VRML Proto Repository.  If anyone knows of the provenance please advise, we hope to give credit someday.

	https://savage.nps.edu/Savage/Biologics/Dolphin/

>  Or I have attached the X3D here.  If you're not allowed by licensing, let me know.  I cannot seem to get Don's stylesheet to work.

The stylesheets won't work on alllowercase elementnames in X3DOM HTML, only valid CamelCaseNames.


> On Wed, Feb 25, 2015 at 9:23 AM, Leonard Daly <Leonard.Daly at realism.com <mailto:Leonard.Daly at realism.com>> wrote:
>
>     On 2/25/2015 7:04 AM, John Carlson wrote:
>>
>>     How do I see Yvonne Jung's JSON loader?  I see a JSON dumper.
>>
>
>     John,
>
>     I am not sure of the difference between a loader and dumper. I have not seen the source code for page (mostly I didn't look). It is my understanding that Yvonne took the animated porpoise and converted from .x3d to .json using Don's stylesheet. Then wrote the code that imported the .json file into X3DOM.
>
>
>     Leonard Daly
>
>
>
>
>>     On Feb 18, 2015 12:12 PM, "Leonard Daly" <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. 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.
>>
>>         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.
>>
>>         Ultimately, the license choice is yours; however, which one you choose depends on what you what to happen with it. A very public use license will allow others to take what you have done and incorporate it into anything and resell it. If you are not careful with the name, your name could be co-opted too. If you want contributions to remain as open-source, than a GPL-type license might be the right choice. Wikipedia has a good starting page on software licenses: http://en.wikipedia.org/wiki/Software_license (Free license comparisons: http://en.wikipedia.org/wiki/Comparison_of_free_and_open-source_software_licenses). Until you figure it out, I recommend that you be restrictive and only let people use it exactly as is (since you already put it out for public use).
>>
>>
>>         Leonard Daly
>>
>>
>>
>>
>>         On 2/18/2015 9:23 AM, John Carlson wrote:
>>>         I have created a converter which will convert simple X3D (one file, no scripts) to JSON, and then to JavaScript for inclusion into an X3DOM D3 application.  There is a Java file to converted XML to JSON (fairly generic), and then a Node.js app to convert the JSON to JavaScript.  This should work in chrome.  I am looking to extend it to other browsers if possible. Comments and contributions are welcome.   If possible, someone could create an XSLT stylesheet to do something similar based on my example.  See attached.   Also let me know what kind of license I should use.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list