[x3d-public] What are scripts used for, and can we create declaratively?

John Carlson yottzumm at gmail.com
Mon May 25 20:05:24 PDT 2020


Here's what I use Script for:

"Force-directed" layout of graph nodes and edges.
Random trajectories, like the wind blowing.
Resizing, reshaping randomly.
Animating shading language parameters for big meshes.
Animating viewpoint along great circles.(generating a random location for
the next point to visit)
Changing background cubemaps.
Interactive placement of nodes in mathematical graphs.

For the cubemaps, I might be able to do this with an existing interpolator,
I haven't given it enough thought.

The most important for me is animating shading language parameters that
change the shape and size of my models in a shading language.  I don't know
how to do this in XML/Scripting that is performant enough.  I have 100x100
meshes that I animate the surface of.  In addition, I would like to add a
prismatic effect. I have done this best in PlayCanvas.

If someone wants to standardize my code, here are the 3 examples I use:

https://coderextreme.net/X3DJSONLD/src/main/html/flowers.xhtml

Porting between shaders is a *pain in the butt* and I have to keep separate
shaders for each browser.

I *know* shading languages are fast enough for this.  I don't really have a
good solution for IndexedFaceSet.

Your input is welcome.  Ideally we'd have a declarative shading language?

Subdividing surfaces as X3DOM is a great solution, we just need to get it
in the standard!

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200525/2b8e36e3/attachment-0001.html>


More information about the x3d-public mailing list