<div dir="ltr">Attaching test case. x3d.py does not produce containerField attributes, AFAIK.<div><br></div><div>The HAnimJoint nodes in the HAnimHumanoid joints field could have a containerField. Distinguishing skeleton children (one) from joints children (many) could be difficult.  Perhaps look for USE fields. The HAnimMotion nodes in the HAnimHumanoid motions field could have a containerField.</div><div><br></div><div>My suggestion to add containerField to add containerField to x3d.py got shot down, so I'm pouting a bit.</div><div><br></div><div>No, HAnimHumanoid does not have a children, addChildren or removeChildren field from my readings.</div><div><div><br></div><div>John</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 26, 2023 at 9:17 AM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I see John submitted a ticket,<br>
<a href="https://github.com/castle-engine/view3dscene/issues/69" rel="noreferrer" target="_blank">https://github.com/castle-engine/view3dscene/issues/69</a> . As I<br>
mentioned there, please attach or link there a testcase.<br>
<br>
CGE/view3dscene follow the containerField specified in X3D XML<br>
specification, <a href="https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfNodes.html#HAnimJoint" rel="noreferrer" target="_blank">https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/EncodingOfNodes.html#HAnimJoint</a><br>
. Maybe the testcase just misses containerField="xxx" usage at<br>
respective "<USE ...>" elements.<br>
<br>
Regards,<br>
Michalis<br>
<br>
<br>
wt., 26 wrz 2023 o 08:01 Joe D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>> napisał(a):<br>
><br>
> > The problem is with X3DJSONLD and view3dscene assuming that children is a field of HAnimHumanoid.<br>
><br>
><br>
><br>
> HAnimHumanoid includes fields.<br>
><br>
> The skeleton field defines a hierarchy of Joint nodes.<br>
><br>
> The first joint of the hierarchy, root, names the container field, skeleton, for the hierarchy, and is the ancestor of all other children nodes in the hierarchy.<br>
><br>
> x3dv<br>
><br>
>  skeleton<br>
><br>
>   Joint<br>
><br>
>     children<br>
><br>
>       Joint ...<br>
><br>
> skeleton is the container for the joint hierarchy.<br>
><br>
><br>
><br>
> x3d<br>
><br>
>  Joint containerfield skeleton<br>
><br>
>    Joint containerfield children<br>
><br>
>     ...<br>
><br>
> skeleton is the containerfield for the joint hierarchy<br>
><br>
><br>
><br>
> Just a guess at what you are concerned about.<br>
><br>
> What is not happening? If in doubt, check the schema.<br>
><br>
> Joe<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>
> Sent: Sep 25, 2023 10:36 PM<br>
> To: Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>><br>
> Cc: Peitso, Loren (CIV) <<a href="mailto:lepeitso@nps.edu" target="_blank">lepeitso@nps.edu</a>>, X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>
> Subject: Re: [x3d-public] Discussion: containerField for x3d.py XML export<br>
><br>
><br>
><br>
> The problem is with X3DJSONLD and view3dscene assuming that children is a field of HAnimHumanoid.<br>
><br>
> That's not right!<br>
><br>
> John<br>
><br>
> On Sun, Sep 24, 2023 at 2:47 PM Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>> wrote:<br>
>><br>
>> Thanks for continued troubleshooting.<br>
>><br>
>><br>
>><br>
>> Please do not do anything with containerField handling in x3d.py since it is unique to XML encoding.<br>
>><br>
>><br>
>><br>
>> If you encounter any incorrect handling, please provide a regular issue report that notes<br>
>><br>
>> Model, in .x3d/.x3dv and also .py<br>
>> Error or warning that was encountered, relevant tools, etc.<br>
>><br>
>><br>
>><br>
>> I can then isolate the problem and fix it.  When errors do occur, it is usually an error in the scene, but sometimes a simple omission of some sort somewhere deep in the code autogeneration of the library.<br>
>><br>
>><br>
>><br>
>> p.s. also thanks for your recent issue reports on X3DJSAIL, very helpful.  I have made a number of improvements this weekend, hoping to publish tonight.<br>
>><br>
>><br>
>><br>
>> all the best, Don<br>
>><br>
>> --<br>
>><br>
>> Don Brutzman  Naval Postgraduate School, Code USW/Br        <a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a><br>
>><br>
>> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149<br>
>><br>
>> X3D graphics, virtual worlds, navy robotics <a href="https://faculty.nps.edu/brutzman" rel="noreferrer" target="_blank">https://faculty.nps.edu/brutzman</a><br>
>><br>
>><br>
>><br>
>> From: John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>
>> Sent: Sunday, September 24, 2023 11:34 AM<br>
>> To: Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>>; Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>>; Peitso, Loren (CIV) <<a href="mailto:lepeitso@nps.edu" target="_blank">lepeitso@nps.edu</a>>; X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>
>> Subject: Discussion: containerField for x3d.py XML export<br>
>><br>
>><br>
>><br>
>> First of all, great work on x3d.py, Loren and Don, I feel like I am polishing a diamond.<br>
>><br>
>><br>
>><br>
>> I am considering adding the containerField attribute (not field) to XML output in x3d.py. This is mainly to support requirements of view3dscene.  It complains if I don’t add the containerField attributes in HAnim (skeleton and joints containerFields, maybe more)—the default, children, is not an acceptable to view3dscene.  Also, not having a skin containerField is weird when dropping arbitrary Shape nodes into a HAnimHumanoid.<br>
>><br>
>><br>
>><br>
>> Does adding the containerField attribute seem like a good idea, or should I push back on browser vendors?<br>
>><br>
>><br>
>><br>
>> I plan to do something like I do for VRML when printing out joints and skeleton fields etc.  I won’t print out the containerField for obvious fields, i have a list of these somewhere…geometry, appearance, material, etc<br>
>><br>
>><br>
>><br>
>> Should I allow the x3d.py app programmer to add a containerField attribute, or should I compute it as best i can, and save browser vendors the pain?<br>
>><br>
>><br>
>><br>
>> I think what this means is passing an optional parameter to some each.XML() method calls.<br>
>><br>
>><br>
>><br>
>> After writing this message, the answer seems obvious.<br>
>><br>
>><br>
>><br>
>> Comments?<br>
>><br>
>><br>
>><br>
>> John<br>
><br>
><br>
><br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>