[x3d-public] good example for ECMAScripting and Protos?

John Carlson yottzumm at gmail.com
Thu Aug 2 00:09:02 PDT 2018


Here are three JSON files produced by X3DJSONLD.  Two are produced by DOM2JSONSerializer.json, and one is produced by X3dToJson.xslt.  Can anyone see perhaps why the one without #sourceText got messed up?

Curious.

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Thursday, August 2, 2018 12:37 AM
To: vmarchetti at kshell.com; X3D-Public
Subject: RE: [x3d-public] good example for ECMAScripting and Protos?

Well, when I run the conversions from the command line, there’s a #sourceText.  IDK what’s happening, except I remove the Scripts from the XML, after sending to the browsers. The only thing I can conclude is that they are being converted back to JSON.  But no other file does the same thing that I’ve found. Hmm.

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Thursday, August 2, 2018 12:32 AM
To: vmarchetti at kshell.com; X3D-Public
Subject: RE: [x3d-public] good example for ECMAScripting and Protos?

Vince, I’m trying to identify why the file you give does not have #sourceText when converted to JSON.   Can you try with X3D-edit?

I will pursue this some.

John

Sent from Mail for Windows 10

From: vmarchetti at kshell.com
Sent: Wednesday, August 1, 2018 9:04 PM
To: John Carlson; X3D-Public
Subject: Re: [x3d-public] good example for ECMAScripting and Protos?

See 
http://www.kshell.com/pages/pointcloudvisualization/SphereDirectedPointSet.x3d

It is a X3D file with with a Prototype + ecmascript definition of a point cloud, with a vector attached to each point of the cloud.
Example used is just points randomly distributed on sphere with directs pointed radially outward.

Potential uses would be to implement the scanning design pattern at http://x3dgraphics.com/examples/X3dForAdvancedModeling/Scanning/X3dMeshDesignPatternIndex.html , or
visualizing fluid flow or  electromagnetic field

On Jul 31, 2018, at 10:30 PM, John Carlson <yottzumm at gmail.com> wrote:

Is there a good example of ECMAScripting in X3D that I can use to test my X3D JSON ECMAScript preprocessor?  Preferably with Protos 
 
 
Thanks!
 
John
 
_______________________________________________
x3d-public mailing list
x3d-public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180802/dbffc26c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SphereDirectedPointSet.json
Type: application/json
Size: 39676 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180802/dbffc26c/attachment-0002.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SphereDirectedPointSet.json.new
Type: application/octet-stream
Size: 132066 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180802/dbffc26c/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SphereDirectedPointSet.new.json
Type: application/json
Size: 126512 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180802/dbffc26c/attachment-0003.json>


More information about the x3d-public mailing list