[x3d-public] Proto field default value question

John Carlson yottzumm at gmail.com
Sun Jun 7 13:27:08 PDT 2020


Yes, that was covered on the list some time ago.

On Sun, Jun 7, 2020 at 3:11 PM Andreas Plesch <andreasplesch at gmail.com>
wrote:

> Apologies for being a bit too concise but I think we have it sorted out.
>
> Please note that it is not allowed for proto to instance itself (for
> recursive definitions):
>
>
> https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/concepts.html#Prototypescopingrules
>
> -Andreas
>
> On Sat, Jun 6, 2020 at 12:06 PM Joseph D Williams <joedwil at earthlink.net>
> wrote:
> >
> >
> >
> > Something ignored if something default?
> >
> >
> >
> > Please use the last value you get, which is the value used in the
> instance, if given.
> >
> > If I read this right, what you said is that you are ignoring the
> instance value if there is a default value in the proto?
> >
> > Actually, if that is so, something is missing in our ability to
> prototype.
> >
> > The main idea is that, for the x3d user, the proto can be used just like
> any x3d concrete node instance.
> >
> > So, the instance is either the same, or it is different. The user
> expects to be able to set initial values for appropriate fields of the
> instance.
> >
> >
> >
> > Anyway, the proto is not like a DEF/USE, which seems easy, until you
> start actually systematically solve problems with questions like what
> happens to the USE when you change the DEF, or what if you purposefully
> provide another, same name DEF in the same context, and use solutions that
> tend toward very tolerant processing.
> >
> >
> >
> > Hey, the proto is how we make our own nodes. That is the way it has
> always been and the best tools provide the highest functionality protos.
> For example how can we develop hanim Joint and Site, improving sensors, and
> even extend hanim deformable mesh like animations? Bigness in protos with
> scripts and childlike protos, and import/export weird and wonderful data,
> is required for user to actively augment the standard nodes and adjust
> those fields.
> >
> >
> >
> > And really, it is so wonderful to expose realistically usable protos to
> the web. Hey, if a proto cannot instance itself, is it really a proto?
> >
> > Bridge the great gap between the great vrml/x3d plugins and the joyfully
> evolving xmlization and domification of realtime interactive x3d.
> >
> >
> >
> > Thanks to All,
> >
> > Joe
> >
> >
> >
> >
> >
> > From: Andreas Plesch
> > Sent: Friday, June 5, 2020 12:50 PM
> > To: X3D Graphics public mailing list
> > Subject: Re: [x3d-public] Proto field default value question
> >
> >
> >
> > Probably I missed something. Anyways, in my x3dom efforts the node
> >
> > field value is always ignored if there is a default value in the
> >
> > ProtoInterface.
> >
> >
> >
> > -Andreas
> >
> >
> >
> > _______________________________________________
> >
> > x3d-public mailing list
> >
> > x3d-public at web3d.org
> >
> > http://web3d.org/mailman/listinfo/x3d-public_web3d.org
> >
> >
>
>
>
> --
> Andreas Plesch
> Waltham, MA 02453
>
> _______________________________________________
> 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/20200607/9a6c2c84/attachment-0001.html>


More information about the x3d-public mailing list