[x3d-public] example model illustrating DEF/USE copy-by-sharing relationships
John Carlson
yottzumm at gmail.com
Wed Aug 7 12:53:38 PDT 2024
I dug a bit deeper in the Java app, and saw setUSE instead of using a
variable reference to the DEF node. While disappointed, I understand the
difficulty in using shared references in hierarchical code. Perhaps
there’s more under the covers.
https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/DEF_USE_AnimationExample.java
What I will eventually try to do is share references in X3DJSONLD
serialized output, but I’m afraid what the XML output will look like. I
will probably try this starting with Java.
Perhaps an existing Java example shows shared references?
John
On Tue, Aug 6, 2024 at 1:34 AM John Carlson <yottzumm at gmail.com> wrote:
> I looked at the XML model, but I didn’t see how it was related to SAI,
> except via conversions. I didn’t read the Mantis yet either. Without
> looking at the bindings or the Mantis, does this involve using variable
> references (for example, Java variables) in more than one place in binding
> code? Re-using a variable for a node instead of using a USE field.
>
> That would be a tremendous step forward. Perhaps that’s something I can
> work on in X3DJSONLD!
>
> Hmm!
>
> John
>
> On Mon, Aug 5, 2024 at 3:49 AM Brutzman, Donald (Don) (CIV) via x3d-public
> <x3d-public at web3d.org> wrote:
>
>> Dick Puk and I continue working steadily on specification Mantis issues.
>> Latest is
>>
>>
>> - DEF/USE labelling and functionality needs to be better specified
>> for SAI and programming languages
>> - https://www.web3d.org/member-only/mantis/view.php?id=690
>>
>>
>> Towards this end, I build a new animation model that seems helpful.
>> Feedback welcome.
>>
>>
>> - X3D Example Archives: X3D4AM, X3D for Advanced Modeling,
>> Animation, DEF USE Animation Example
>> - Illustrate how USE nodes implement copy by reference, resulting in
>> immediate changes when original DEF node is modified.
>> -
>> https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/DEF_USE_AnimationExample.x3d
>> -
>> https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/DEF_USE_AnimationExampleIndex.html
>> -
>>
>>
>> Incidentally I used both XMLSpy and X3D-Edit to create the model, which
>> was interesting and effective. Also updated all the catalog files for X3D
>> Examples Archive to make such tasks even easier. Meanwhile found a setting
>> in XMLSpy that aligns handling of whitespace with X3D Canonical Form, which
>> is what we use in version control and diffing and XML security and X3D
>> Binary. Pretty simple adjustment: use 2 spaces instead of tabs for
>> indentation.
>>
>>
>> - Altova XMLSpy https://www.altova.com/xmlspy-xml-editor
>> -
>> https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/XMLSpyPrettyPrintSpacingTextViewSettings.png
>>
>>
>> Have fun with X3D! 🙂
>>
>>
>> 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
>> https://faculty.nps.edu/brutzman
>>
>>
>> _______________________________________________
>> 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/20240807/338050bd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 40746 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20240807/338050bd/attachment-0001.png>
More information about the x3d-public
mailing list