[x3d-public] continuing route issue with X3DJSAIL. I must be doing something wrong. Please provide example generated Java output which runs from this X3D. Request for JavaScript based XML -> X3DJSON help
yottzumm at gmail.com
yottzumm at gmail.com
Tue Apr 18 10:24:24 PDT 2017
Java code and X3D attached. Please provide generated Java code back which runs, so I can look at it and get my java serializer working. I will soon download X3dToJava.xslt, and play with it. I guess you want me to test it too? 😊 or instead? LOL! Not everyone wants to run a stylesheet. I’ve been doing it because I don’t have a good XML to X3D JSON converter yet ☹. Let’s break the monopoly! This was my start of one: https://github.com/coderextreme/X3DJSONLD/blob/master/Standard.js Let’s just say generating X3DJSON is hard. I was even able to generate JSON for the three-x3d-loader. The code is found here: https://github.com/coderextreme/X3DJSONLD/blob/master/Three2Serializer.js so you might base it on that. IDK, working with X3DJSON as a source seems easy enough.
John
$ java bubbles
org.web3d.x3d.sai.InvalidFieldValueException: ROUTE details: FROM TourTime.cycleTime (TimeSensor.SFTime.outputOnly) TO RandomTourTime.set_cycle (Script.ERROR_UNKNOWN_FIELD_TYPE.inputOnly)
ROUTE has source-destination type mismatch, fromField='cycleTime' source and toField='set_cycle' destination have different types.
org.web3d.x3d.sai.InvalidFieldValueException: ROUTE details: FROM TourTime.cycleTime (TimeSensor.SFTime.outputOnly) TO RandomTourTime.set_cycle (Script.ERROR_UNKNOWN_FIELD_TYPE.inputOnly)
ROUTE has source-destination type mismatch, fromField='cycleTime' source and toField='set_cycle' destination have different types.
at org.web3d.x3d.jsail.Core.ROUTEObject.validate(ROUTEObject.java:721)
at org.web3d.x3d.jsail.Core.SceneObject.validate(SceneObject.java:547)
at org.web3d.x3d.jsail.Core.X3DObject.validate(X3DObject.java:1831)
at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:730)
at bubbles.main(bubbles.java:79)
Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException: ROUTE details: FROM TourTime.cycleTime (TimeSensor.SFTime.outputOnly) TO RandomTourTime.set_cycle (Script.ERROR_UNKNOWN_FIELD_TYPE.inputOnly)
ROUTE has source-destination type mismatch, fromField='cycleTime' source and toField='set_cycle' destination have different types.
at org.web3d.x3d.jsail.Core.ROUTEObject.validate(ROUTEObject.java:721)
at org.web3d.x3d.jsail.Core.SceneObject.validate(SceneObject.java:547)
at org.web3d.x3d.jsail.Core.X3DObject.validate(X3DObject.java:1831)
at org.web3d.x3d.jsail.Core.X3DObject.toFileJSON(X3DObject.java:730)
at bubbles.main(bubbles.java:79)
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170418/0eea72a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bubbles.java
Type: application/octet-stream
Size: 13972 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170418/0eea72a6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bubbles.x3d
Type: application/octet-stream
Size: 7371 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170418/0eea72a6/attachment-0003.obj>
More information about the x3d-public
mailing list