[x3d-public] Understanding of IS connect for xml...issue for JSON encoding.
Don Brutzman
brutzman at nps.edu
Fri Jul 1 06:49:08 PDT 2016
+1, again thanks
On 7/1/2016 6:26 AM, doug sanden wrote:
> Yes, you can IS to script fields and protoinstance fields in v3.3
>
> -Doug
>
> more..
>
> Dynamic fields -per-instance like Script, or per type like ProtoInstance- are abstracted to look like normal fields during runtime. That means you can/should-be-able-to IS to them (and ROUTE to them) like they are normal fields. That includes builtin, Script and ProtoInstance fields. Except we know the names and types of builtin fields a priori, and for dynamic fields we need to describe their types in the scene file. So ideally they are orthogonal / separate issues: declaring dynamic fields, and ISing / ROUTEing to any field dynamic or builtin.
>
> more..
>
> Gotchas:
>
> - early vrml implementations didn't allow static fields ie Field or InputOutput, just events EventIn and EventOut. I think they are allowed in v3.3, or seem to work.
allowed
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* x3d-public <x3d-public-bounces at web3d.org> on behalf of John Carlson <yottzumm at gmail.com>
> *Sent:* June 30, 2016 9:40 PM
> *To:* X3D Graphics public mailing list
> *Subject:* [x3d-public] Understanding of IS connect for xml...issue for JSON encoding.
>
>
> My understanding of IS connect is as follows. For Script nodes, the nodeField refers to a field "name" attribute value. For regular nodes, the nodeField is an attribute name. Any other gotchas? Does ProtoInstance take an IS node?
>
> If the distinction between field and attribute is not there in VRML (is it?), why do we have it in the JSON encoding? Does it lead to better validation of files?
>
>
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list