javascript - XML3D: XFLOW syntax -
i have 2 question regarding xflow syntax:
can use xflow data gained
<assetdata>
node?what difference between
<data>
,<assetdata>
seem 2 have same functionalities. or in other words assetdata node considered datacontainer.
right main difference between <data>
, <assetdata>
includes
attribute, can reference <assetdata>
's name
attribute , scoped enclosing <asset>
. designed way make possible nest assets or declare many assets in same document without having worry making sure ids may use unique (like if use src
attribute of <data>
elements, reference html id).
the other differences are:
- you can't nest
<assetdata>
elements. can same functionality usingincludes
attribute though. <assetdata>
elements can used inside<asset>
element
aside work <data>
elements do, can give them compute operators or nest other data inside them or overwrite data <data>
elements. may merged in future version of xml3d.
have @ recursive asset example more complicated use case.
Comments
Post a Comment