<div dir="auto">My albiet impractical approach was to bring your own skeleton, and add whatever motion there is in the bvh file to the Motion object or HAnimMotion element.   I did not realize that BVH files contained their own skeleton.   Seems like one should Protoify a standard skeleton and pass the motion as a parameter.   But I didn’t even get a chance to adequately look at a bvh file beforehand.   May I suggest we pursue the Motion method, if we are all in agreement?</div><div dir="auto"><br></div><div dir="auto">I realize that X3DOM/Xj3d may not support the Motion/mocap stuff in XML.   I’m not aware if these are currently supported.  I do know that X_ITE does.  I do know there is BVH handling in JavaScript.</div><div dir="auto"><br></div><div dir="auto">So it seems like we’re translating bvh to non-standard skeletons, instead of translating BVH to standard motion.</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 7, 2022 at 5:16 PM Joseph D Williams <<a href="mailto:joedwil@earthlink.net">joedwil@earthlink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72" style="overflow-wrap: break-word;"><div class="m_-7229339152183155924WordSection1"><p class="MsoNormal">Joe >> However the piro bvh example is Not Level 1, or any level because the bvh skeleton is (typically) Not a legal Hanim level of articulation. <u></u><u></u></p><p class="MsoNormal">This skeleton may be typical in bvh archives because it is a legacy artifact from before we had a world standard realistic skeleton. Just look at it. Is that the way your back works? But, the bvh skeleton is simple for simple stuffs.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">A point is that the bvh skeletons I have seen are not any Hanim level because the spine is connected in a different way. There are other minor difs also. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">In the following, it is first about how to use a Standard Hanim skeleton with the bvh animation. <u></u><u></u></p><p class="MsoNormal">Please not simply activating the bvh capture skeleton with the bvh animation because the bvh skeleton is probably not a standard hierarchy Hanim skeleton. </p><p class="m_-7229339152183155924MsoListParagraph"><u></u> <u></u></p><p class="m_-7229339152183155924MsoListParagraph"><u></u> <u></u></p><ul style="margin-top:0in" type="disc"><li class="m_-7229339152183155924MsoListParagraph" style="margin-left:0in">As far as which approach is best – not currently an issue.  At present, am simply trying to convert legacy BVH files into the most compliant X3D HAnim possible.  That path can give us a LOT of content.  Still moving forward, so far…</li></ul><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Which is best is not an issue because bvh is not an authoring approach, it is a transport approach. For example, data from a defined bvh capture skeleton applied to a defined playback skeleton. The main problem is that the bvh skeleton is (probably) not any Hanim skeleton. </p><p class="MsoNormal">I think we get usable content when the bvh animation is incorporated with _<i>your</i>_ “Standard” Hanim skeleton. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The animation is fully  incorporated with your skeleton when the animation is set up using x3d animation styles with reasonable keytimes and keyframe data, and therefore can be used as a basis for detailed animation of _<i>your</i>_ skeleton. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Another idea for the x3d user code would be to allow construction of an interpolator that just listed the constant keytime interval instead of every keytime. That is what the gltf prefers since the rules for setting key times is more simple than x3d. However, since the bvh is aimed at video, that still leaves the problem of mostly too much keyvalue data. </p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If we can provide a reasonable conversion from the bvh skeleton to Hanim loa4, then the user can edit and simplify the key and keyvalue data to finally adapt the animation to the target skeleton and integrate it with other animations.</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks Again, </p><p class="MsoNormal">Joe</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Again, the reason the target playback is a ‘standard’ loa4 is that the player will not complain if there is a joint that is not animated. The author can always easily add animation of joints not controlled by the bvh import. </p></div></div><div lang="EN-US" link="blue" vlink="#954F72" style="overflow-wrap: break-word;"><div class="m_-7229339152183155924WordSection1"><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:brutzman@nps.edu" target="_blank">Brutzman, Donald (Don) (CIV)</a><br><b>Sent: </b>Sunday, October 30, 2022 12:21 PM<br><b>To: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joseph D Williams</a><br><b>Cc: </b><a href="mailto:x3d-public@web3d.org" target="_blank">X3D Graphics public mailing list</a>; <a href="mailto:brutzman@nps.edu" target="_blank">Brutzman, Donald (Don) (CIV)</a><br><b>Subject: </b>RE: [x3d-public] FW: BVH to X3D Conversion bug</p></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Joe you are correct historically – but we added a third level for HAnim motion node in X3D4.  Schema, DTD are up-to-date, examples corrected too.  Am correcting other tools and diagnostics as I find them.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><ul style="margin-top:0in" type="disc"><li class="m_-7229339152183155924MsoListParagraph" style="margin-left:0in">X3D4 Architecture, Clause 26 Humanoid Animation (HAnim) component<u></u><u></u></li><li class="m_-7229339152183155924MsoListParagraph" style="margin-left:0in"><b>Table 26.2 — Humanoid animation (HAnim) component support levels</b><u></u><u></u></li><li class="m_-7229339152183155924MsoListParagraph" style="margin-left:0in"><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-DIS/Part01/components/hanim.html#t-supportLevels" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-DIS/Part01/components/hanim.html#t-supportLevels</a><u></u><u></u></li></ul><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">As far as which approach is best – not currently an issue.  At present, am simply trying to convert legacy BVH files into the most compliant X3D HAnim possible.  That path can give us a LOT of content.  Still moving forward, so far…<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Building an X3D widget to follow your note and control frame-by-frame timing of HAnimMotion advancement by TimeSensor will be interesting…<u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New""><u style="font-family:"Courier New""></u> <u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">all the best, Don<u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">-- <u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Don Brutzman  Naval Postgraduate School, Code USW/Br        <a href="mailto:brutzman@nps.edu" target="_blank" style="font-family:"Courier New"">brutzman@nps.edu</a><u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149<u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New"">X3D graphics, virtual worlds, Navy robotics https://</span> <span style="font-size:10pt;font-family:"Courier New""><a href="http://faculty.nps.edu/brutzman" target="_blank" style="font-family:"Courier New"">faculty.nps.edu/brutzman</a><u style="font-family:"Courier New""></u><u style="font-family:"Courier New""></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal"><b>From:</b> x3d-public <<a href="mailto:x3d-public-bounces@web3d.org" target="_blank">x3d-public-bounces@web3d.org</a>> <b>On Behalf Of </b>Joseph D Williams<br><b>Sent:</b> Friday, October 28, 2022 7:04 PM<br><b>To:</b> X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br><b>Subject:</b> [x3d-public] FW: BVH to X3D Conversion bug<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Brought out to public<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal"><b>From: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joseph D Williams</a><br><b>Sent: </b>Friday, October 28, 2022 5:49 PM<br><b>To: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a>; <a href="mailto:tdnorbra@nps.edu" target="_blank">Norbraten, Terry (CIV)</a>; <a href="mailto:x3d-public@web3d.org" target="_blank">X3D Graphics public mailing list</a><br><b>Cc: </b><a href="mailto:brutzman@nps.edu" target="_blank">Brutzman, Donald (Don) (CIV)</a><br><b>Subject: </b>RE: BVH to X3D Conversion bug<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><ul style="margin-top:0in" type="disc"><li class="m_-7229339152183155924MsoListParagraph" style="margin-left:0in">The Pirouette.x3d has<u></u><u></u></li><li class="m_-7229339152183155924MsoListParagraph" style="margin-left:0in"><component level='1' name='HAnim’/><u></u><u></u></li></ul><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">An error.<u></u><u></u></p><p class="MsoNormal">Hanim has basically two levels – <u></u><u></u></p><p class="MsoNormal">skeleton with segment geometry and <u></u><u></u></p><p class="MsoNormal">skeleton with skin. <u></u><u></u></p><p class="MsoNormal">Check me on this. <u></u><u></u></p><p class="MsoNormal">However the piro example is Not Level 1, or any level because the skeleton is Not a legal level of articulation. <u></u><u></u></p><p class="MsoNormal">This skeleton may be typical in bvh archives because it is a legacy artifact from before we had a world standard realistic skeleton. Just look at it. Is that the way your back works? But, it is simple for simple stuffs.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If you play with this loa non-conformer, like for instance hook the animation up to any of the more or less standard and proven stand walk run jump twist etc. animations in the archive, then I am fairly sure you will see unexpected gestures. And, when one or some of these work in a ‘standard’ hierarchy skeleton, then add it to the “Standard” examples. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Certainly, as you progress with authored hanim animation style, then you will wish you had started with current vs legacy skeleton, same as possible regret if you started with anything else than an loa4. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">However, this example certainly shows that out of any bvh collections, the native production is probably only a very rough starting point with lots of work left to adapt the captured motion to a usable playback character. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So (from the Peanut Gallery), please do not run that non-conforming skeleton as a conforming hanim character anymore unless, If you really can’t get conforming x3d hanim skeleton as playback, then please don’t archive as hanim without proper bvh skeleton Disclaimer. <u></u><u></u></p><p class="MsoNormal">Again, just convert to use the ‘standard’ loa4 as the target playback, at humanoid scale. Then, if interesting, the animations can be extracted for use in a legal skeleton and coded for realtime rather than videotime. Please don’t just simply recreate the bvh-encoded skeleton – convert directly to loa4 at human scale and then you can see what you really have.  <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Please note one advantage of the typical video frame rate seen in these animation thingees, is that to make a video from these your player does not need to use interpolators since you give it the exact keyframe interval data. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">More fun with realtime hanim. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Best regards,<u></u><u></u></p><p class="MsoNormal">Joe<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal"><b>From: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a><br><b>Sent: </b>Friday, October 28, 2022 2:53 PM<br><b>To: </b><a href="mailto:joedwil@earthlink.net" target="_blank">Joe D Williams</a>; <a href="mailto:tdnorbra@nps.edu" target="_blank">Norbraten, Terry (CIV)</a><br><b>Cc: </b><a href="mailto:brutzman@nps.edu" target="_blank">Brutzman, Donald (Don) (CIV)</a><br><b>Subject: </b>Re: BVH to X3D Conversion bug<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Last i heard, HAnim is acceptable.  Joe can confirm, cced.<u></u><u></u></p></div></div><div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Fri, Oct 28, 2022 at 10:00 AM Norbraten, Terry (CIV) <<a href="mailto:tdnorbra@nps.edu" target="_blank">tdnorbra@nps.edu</a>> wrote:<u></u><u></u></p></div><blockquote style="border-style:none none none solid;border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt;border-left-color:rgb(204,204,204)"><div><p class="MsoNormal" style="margin-left:24pt">One issue is that the BVH converter is not translating the correct level for H-Anim. <u></u><u></u></p><div><p class="MsoNormal" style="margin-left:24pt"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt">The Pirouette.x3d has<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt"><component level='1' name='HAnim’/><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt">Should be<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-left:24pt"><component level='1' name=‘H-Anim’/>   <span style="color:rgb(255,38,0)"><<< require the hyphen </span><u></u><u></u></p><div><p class="MsoNormal" style="margin-right:0in;margin-bottom:12pt;margin-left:24pt"><u></u> <u></u></p><blockquote style="margin-top:5pt;margin-bottom:5pt"><div><p class="MsoNormal" style="margin-left:204pt">On Oct 28, 2022, at 05:59, Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>> wrote:<u></u><u></u></p></div><p class="MsoNormal" style="margin-left:204pt"><u></u> <u></u></p><div><div><div><p class="MsoNormal" style="margin-left:204pt">Thank you John for excellent logs and sleuthing.<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt">Terry, the error immediately jumping out at me is the following.  At least one library is not getting bundled properly.<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><p class="MsoNormal" style="margin-left:240pt"><u></u><span style="font-size:10pt;font-family:Symbol"><span style="font-family:Symbol">·<span style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">        </span></span></span><u></u>java.lang.ClassNotFoundException: javax.vecmath.Vector3d<u></u><u></u></p><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt">Great discussion yesterday Terry, thanks.  I have created the pre-release file site at<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><p class="MsoNormal" style="margin-left:240pt"><u></u><span style="font-size:10pt;font-family:Symbol"><span style="font-family:Symbol">·<span style="font-style:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">        </span></span></span><u></u><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fx3d%2Ffiles%2FX3D-Edit%2520Pre-Release%2520Testing%2F&data=05%7C01%7Cbrutzman%40nps.edu%7Ccfce743709d84501fcd208dab9521e76%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638026059745002134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=5nGgyeQabvwSA5rQbsW5k1%2FOxZJgoQlYKbvhjYYhaeI%3D&reserved=0" target="_blank">https://sourceforge.net/projects/x3d/files/X3D-Edit%20Pre-Release%20Testing/</a><u></u><u></u></p><div><div><p class="MsoNormal" style="margin-left:204pt"><span style="font-size:10pt;font-family:"Courier New""> </span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"><span style="font-size:10pt;font-family:"Courier New"">all the best, Don</span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"><span style="font-size:10pt;font-family:"Courier New"">-- </span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"><span style="font-size:10pt;font-family:"Courier New"">Don Brutzman  Naval Postgraduate School, Code USW/Br        <a href="mailto:brutzman@nps.edu" target="_blank" style="font-family:"Courier New"">brutzman@nps.edu</a></span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"><span style="font-size:10pt;font-family:"Courier New"">Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149</span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-left:204pt"><span style="font-size:10pt;font-family:"Courier New"">X3D graphics, virtual worlds, Navy robotics https://</span> <span style="font-size:10pt;font-family:"Courier New""><a href="http://faculty.nps.edu/brutzman" target="_blank" style="font-family:"Courier New"">faculty.nps.edu/brutzman</a></span><u></u><u></u></p></div></div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><div><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><div><p class="MsoNormal" style="margin-left:204pt"><b>From:</b> John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> <br><b>Sent:</b> Thursday, October 27, 2022 12:09 PM<br><b>To:</b> Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</a>>; Norbraten, Terry (CIV) <<a href="mailto:tdnorbra@nps.edu" target="_blank">tdnorbra@nps.edu</a>><br><b>Subject:</b> Re: Trying new download--X3D-Edit 4<u></u><u></u></p></div></div></div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><div style="border:1pt solid rgb(0,70,121);padding:2pt"><div><p class="MsoNormal" style="margin-right:2.5in;margin-left:204pt;margin-bottom:0.0001pt;line-height:12pt;background-color:rgb(0,70,121)"><span style="font-size:10pt;color:yellow">NPS WARNING: *external sender* verify before acting.</span><u></u><u></u></p></div></div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div><div><div><div><p class="MsoNormal" style="margin-left:204pt">I have confirmed the Pirouette.bvh in archives and pirouette.bvh are the same, essentially, just different whitespace.   I will now try to see if X3D-Edit will load the archive version. <u></u><u></u></p></div><div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div></div><div><div><p class="MsoNormal" style="margin-left:204pt">Attached are the logs that are showing up in Windows 10 X3D-Edit dev/var/log.<u></u><u></u></p></div></div><div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div></div><div><div><p class="MsoNormal" style="margin-left:204pt">I haven't looked into them yet, I will now move to Linux.<u></u><u></u></p></div></div><div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div></div><div><div><p class="MsoNormal" style="margin-left:204pt">If you could send me the X3d-Edit steps how to convert BVH to X_ITE and X3DOM, that would be great.<u></u><u></u></p></div></div><div><div><p class="MsoNormal" style="margin-left:204pt"> <u></u><u></u></p></div></div></div></div></div></div></blockquote></div></div></div></blockquote></div></div></div><p class="MsoNormal" style="margin-right:0.5in;margin-bottom:5pt;margin-left:40.8pt">Forward old email if necessary.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<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></div>