[x3d-public] X3D example to show x3d.py on the web?

John Carlson yottzumm at gmail.com
Sun Dec 25 22:49:24 PST 2022


Success!  I was able to get Web3dLogo-X3d-animated-logo3.py (with my
modifications) working on the web with brython.

Attached are the two updated files in a zip.

Here is the whole project, perhaps minus some python packages.

X3DJSONLD/hello at master · coderextreme/X3DJSONLD (github.com)
<https://github.com/coderextreme/X3DJSONLD/tree/master/hello>

Thanks for feedback.

Note, x3djsonld.py does not work yet!

John


On Fri, Dec 23, 2022 at 9:13 PM Joseph D Williams <joedwil at earthlink.net>
wrote:

> Thanks John,
>
> OK, file seems better now.
>
> Joe
>
>
>
> *From: *John Carlson <yottzumm at gmail.com>
> *Sent: *Friday, December 23, 2022 9:55 AM
> *To: *Don Brutzman <brutzman at nps.edu>; Joe D Williams
> <joedwil at earthlink.net>; x3d-public at web3d.org
> *Subject: *Fwd: [x3d-public] X3D example to show x3d.py on the web?
>
>
>
> There are issues thrown against the generated files from X3dToPython.xslt
> and X3dToJson.xslt, if I'm reading this right.  Actually, I just checked
> the source file against the X3D validator, and there appear to be multiple
> issues!
>
>
>
> Please fix the .x3d in your original zip, Joe!
>
>
>
> John
>
>
>
>
>
> $ jsonlint data/Web3dLogo-X3d-animated-logo2.json
>
> Error: Parse error on line 373:
>
> ... at rotation":[0,0,1,0,#,-1,0,0,-1.571],
>
> -----------------------^
>
> Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got
> 'undefined'
>
>     at Object.parseError
> (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\jsonlint.js:55:11)
>
>     at Object.parse
> (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\jsonlint.js:132:22)
>
>     at parse
> (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\cli.js:82:14)
>
>     at main
> (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\cli.js:135:14)
>
>     at Object.<anonymous>
> (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\cli.js:179:1)
>
>     at Module._compile (node:internal/modules/cjs/loader:1105:14)
>
>     at Object.Module._extensions..js
> (node:internal/modules/cjs/loader:1159:10)
>
>     at Module.load (node:internal/modules/cjs/loader:981:32)
>
>     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
>
>     at Function.executeUserEntryPoint [as runMain]
> (node:internal/modules/run_main:77:12)
>
>
>
> $ python data/Web3dLogo-X3d-animated-logo2.py
>
>   File
> "C:\Users\john\X3DJSONLD\src\main\data\Web3dLogo-X3d-animated-logo2.py",
> line 41
>
>     children=[
>
>              ^
>
> SyntaxError: '[' was never closed
>
>
>
> Attaching files.
>
>
>
> I'm going to set this aside for now, but the last thing I will do is check
> the XML
>
>
>
> *Web3dLogo-X3d-animated-logo2.zip
> <https://mail.google.com/mail/u/0?ui=2&ik=2e448ad1e1&attid=0.1&permmsgid=msg-f:1752956126933292702&th=1853c04f54b4169e&view=att&disp=safe> has
> the bad .x3d file!*
>
>
>
> *Thanks!*
>
>
>
>
>
> ---------- Forwarded message ---------
> From: *Joseph D Williams* <joedwil at earthlink.net>
> Date: Thu, Dec 22, 2022 at 4:47 PM
> Subject: RE: [x3d-public] X3D example to show x3d.py on the web?
> To: John Carlson <yottzumm at gmail.com>, X3D Graphics public mailing list <
> x3d-public at web3d.org>
>
>
>
>
>
> This one?
>
>
>
> *From: *John Carlson <yottzumm at gmail.com>
> *Sent: *Thursday, December 22, 2022 1:26 PM
> *To: *X3D Graphics public mailing list <x3d-public at web3d.org>
> *Subject: *[x3d-public] X3D example to show x3d.py on the web?
>
>
>
> Does anyone have an x3d example they’d like to convert to Python and
> display on the web?
>
>
>
> I’d like a beefier example than “HelloWorld.py”. since that’s been done.
>
>
>
> It should be compatible with X3DOM and x3d.py.
>
>
>
> You’ll get a python file and an HTML file back.
>
>
>
> I trust you will be experienced enough to install brython locally.   I
> will take a video  and post on YouTube.
>
>
>
> Thanks!
>
>
>
> John
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221226/be40d3e8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Web3dLogo3.zip
Type: application/x-zip-compressed
Size: 33517 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221226/be40d3e8/attachment-0001.bin>


More information about the x3d-public mailing list