[x3d-public] Nodes for V4 - Macro node, X3D scripts, HTML scripts, prototypes and ProtoExpander pattern

Andreas Plesch andreasplesch at gmail.com
Tue Aug 30 06:34:18 PDT 2016


On Mon, Aug 29, 2016 at 9:01 AM, Andreas Plesch <andreasplesch at gmail.com>
wrote:

> >>>     b. Usage examples are often helpful for illustrating goals at this
> stage of design.
>
> >>
> >>
> >> Since no internal computations are possible, usage would be limited.
> There is still a class of useful templates: variations of color, dimensions
> (eg., an arrow macro), perhaps timesensor/interpolator/route animation
> macros, perhaps shaders with parameters, probably many others.
> >
> >
> > Simple examples (even prior to any implementation effort) are helpful -
> sort of like unit testing and test-driven development motivations, it is
> tricky to properly implement something new if you can't define what success
> looks like.
>
> Universal Media Materials would be a basic example. As an enhancement a
> Macro could have a 'shine' parameter which allows tweaking of the default
> shininess of the material if provided.
>
I made a quick arrow macro to illustrate how I would use such a node.

http://andreasplesch.github.io/x3dv4/test/Macro.html
and
http://andreasplesch.github.io/x3dv4/test/ArrowMacro.x3d

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160830/dcd2784b/attachment.html>


More information about the x3d-public mailing list