[x3d-public] Fwd: BVH tasks, joining forces; BVH-to-X3D progress with X3D-Edit

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Thu Oct 27 07:55:17 PDT 2022


[adding to private email thread, pushing up to x3d-public]

 

John thanks for steady scrutiny and sleuthing for BVH-too-X3D conversions.

 

Further progress: have successfully used the published X3D-Edit 4.0 to
convert the three.js conversion model.

*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
/PirouetteIndex.html
*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
/Pirouette.html

 

X3D-Edit import illustration, open source classes, and download
availability:

*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
/X3D-EditBvhImport.png
*
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/X3dEdit
4.0/X3dEditModuleSuite/X3dSourceFilePalette/src/org/web3d/x3d/hanim/bvh
*	https://sourceforge.net/projects/x3d/files/ (X3D-Edit 4.0 is now at
97 downloads, 33 this week)

 

So the X3D-Edit converter basically works, now it is time to check and
improve it.  Hoping to epitomize our best practices for BVH-to-X3D4.


I think X_ITE and X3DOM might both be working, some limbs flash by
periodically, apparently we might need a better Viewpoint. sure enough, if
scrolling through auto-generated viewpoints, you can see a coherent skeleton
jittering around, looks like "which way is up" is needed plus a ground plane
background.

*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
/PirouetteX_ITE.html
*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
/PirouetteX3dom.xhtml

 

Improvement suggestions are most welcome.  Example bvh inputs and X3D model
results are also maintained in sourceforge, allowing us to track ongoing
improvements to the converted model.

*
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examp
les/HumanoidAnimation/MotionAnimation/
*	see Pirhouette.bvh  Pirhouette.bvh.txt  Pirhouette.x3d

 

Of note is that the github three.js site does not appear to give any
provenance information for this model (and BVH file format does not have a
place to put that information).  So we haven't figured out proper
accreditation yet.

*	https://threejs.org/examples/#webgl_loader_bvh
*
https://github.com/mrdoob/three.js/blob/dev/examples/models/bvh/pirouette.bv
h
*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation
/PirouetteThreeJsLoaderScreenshot.png

 

It may have originated from the multiple pirouette files here:

*	CMU Graphics Lab Motion Capture Database: Motions
*	http://mocap.cs.cmu.edu/search.php?subjectnumber=%&motion=%
*	Subject #5 (modern dance) file index

 

                                             Subject #5 (modern dance)

 

05_01   05_01.tvd           05_01.c3d               05_01.amc
05_01.mpg               05_01.avi            walk      

05_02   05_02.tvd           05_02.c3d               05_02.amc
05_02.mpg               05_02.avi            dance - expressive arms,
pirouette           

05_03   05_03.tvd           05_03.c3d               05_03.amc
05_03.mpg               05_03.avi            dance - sideways arabesque,
turn step, folding arms           

05_04   05_04.tvd           05_04.c3d               05_04.amc
05_04.mpg               05_04.avi            dance - sideways arabesque,
folding arms, bending back   

05_05   05_05.tvd           05_05.c3d               05_05.amc
05_05.mpg               05_05.avi            dance - quasi-cou-de-pied,
raised leg above hip-height, jete en tourant  

05_06   05_06.tvd           05_06.c3d               05_06.amc
05_06.mpg               05_06.avi            dance - cartwheel-like start,
pirouettes, jete        

05_07   05_07.tvd           05_07.c3d               05_07.amc
05_07.mpg               05_07.avi            dance - small jetes,
attitude/arabesque, shifted-axis pirouette, turn  

05_08   05_08.tvd           05_08.c3d               05_08.amc
05_08.mpg               05_08.avi            dance - rond de jambe in the
air, jete, turn           

05_09   05_09.tvd           05_09.c3d               05_09.amc
05_09.mpg               05_09.avi            dance - glissade devant,
glissade derriere, attitude/arabesque         

05_10   05_10.tvd           05_10.c3d               05_10.amc
05_10.mpg               05_10.avi            dance - glissade devant,
glissade derriere, attitude/arabesque         

05_11   05_11.tvd           05_11.c3d               05_11.amc
05_11.mpg               05_11.avi            dance - sideways steps,
pirouette 

05_12   05_12.tvd           05_12.c3d               05_12.amc
05_12.mpg               05_12.avi            dance - arms held high, pointe
tendue a terre, upper body rotation    

05_13   05_13.tvd           05_13.c3d               05_13.amc
05_13.mpg               05_13.avi            dance - small jetes, pirouette 

05_14   05_14.tvd           05_14.c3d               05_14.amc
05_14.mpg               05_14.avi            dance - retire derriere,
attitude/arabesque      

05_15   05_15.tvd           05_15.c3d               05_15.amc
05_15.mpg               05_15.avi            dance - retire derriere,
attitude/arabesque      

05_16   05_16.tvd           05_16.c3d               05_16.amc
05_16.mpg               05_16.avi            dance - coupe dessous, jete en
tourant               

05_17   05_17.tvd           05_17.c3d               05_17.amc
05_17.mpg               05_17.avi            dance - coupe dessous, grand
jete en tourant   

05_18   05_18.tvd           05_18.c3d               05_18.amc
05_18.mpg               05_18.avi            dance - attitude/arabesque,
jete en tourant, bending back     

05_19   05_19.tvd           05_19.c3d               05_19.amc
05_19.mpg               05_19.avi            dance - attitude/arabesque,
jete en tourant, bending back     

05_20   05_20.tvd           05_20.c3d               05_20.amc
05_20.mpg               05_20.avi            dance - attitude/arabesque,
jete en tourant, bending back

 

 

Onward we go.  Have fun with X3D BVH human motion animation!

 

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

 

From: x3d-public <x3d-public-bounces at web3d.org> On Behalf Of John Carlson
Sent: Wednesday, October 26, 2022 10:58 PM
To: X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: [x3d-public] Fwd: BVH tasks, joining forces, vim plugin

 

Using Blender to convert BVH to X3D:

 

 

https://alastaira.wordpress.com/2014/04/25/batch-conversion-of-bvh-to-fbx-mo
tion-capture-files/
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Falastaira
.wordpress.com%2F2014%2F04%2F25%2Fbatch-conversion-of-bvh-to-fbx-motion-capt
ure-files%2F&data=05%7C01%7Cbrutzman%40nps.edu%7Cae1718f44ffe4a3aed6608dab7e
067c6%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638024474405315099%7CUnkn
own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVC
I6Mn0%3D%7C2000%7C%7C%7C&sdata=H5xAla%2BrAlP%2B5249XNyUlxHYHXA9MO7KVLvnAtidF
HU%3D&reserved=0> 

 

(This produces FBX, but how about X3D?)

 

 

---------- Forwarded message ---------
From: John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com> >
Date: Thu, Oct 27, 2022 at 12:51 AM
Subject: Re: BVH tasks, joining forces, vim plugin
To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu <mailto:brutzman at nps.edu>
>

 

There seem to be a few steps forward.

 

Download bvh zips from cgspeed (create script, possibly cloning "BVH to FBX"
Script, replacing FBX conversion with X3D conversion).  Use x3d-edit or
other to convert bvh to x3d.

 

Fix any time-out issues with connection to savage.nps.edu
<http://savage.nps.edu> .

 

Fix John's X3D-Edit.

 

I'll probably be zonked till 3, then I'll start work on download ugh!

 

John

 

On Wed, Oct 26, 2022 at 8:29 PM Brutzman, Donald (Don) (CIV)
<brutzman at nps.edu <mailto:brutzman at nps.edu> > wrote:

John: thanks, I just tested, X3D-Edit converted successfully (with warning
about very large file) and result validated for me.  Haven't viewed the
scene animation in X3D yet.

 

Am running a full build on HAnim examples and will upload/announce on
x3d-public when this example is ready.

 

Preliminary results in sourceforge at

 

*
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examp
les/HumanoidAnimation/MotionAnimation/
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourcefor
ge.net%2Fp%2Fx3d%2Fcode%2FHEAD%2Ftree%2Fwww.web3d.org%2Fx3d%2Fcontent%2Fexam
ples%2FHumanoidAnimation%2FMotionAnimation%2F&data=05%7C01%7Cbrutzman%40nps.
edu%7Cae1718f44ffe4a3aed6608dab7e067c6%7C6d936231a51740ea9199f7578963378e%7C
0%7C0%7C638024474405315099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQI
joiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=qOLTherBcky7
MOnKetIGihsNuuASDEnVISxPkpchQIg%3D&reserved=0> 
*	see Pirhouette.bvh  Pirhouette.bvh.txt  Pirhouette.x3d

 

Results will be going to

 

*
https://www.web3d.org/x3d/content/examples/HumanoidAnimation/MotionAnimation

 

Question: were you able to find the original pirouette.bvh used by three.js
in the CMU repository?  Or elsewhere on Web?  The github three.js site does
not appear to give any provenance information for this model (and BVH file
format does not have a place to put that).

 

Onward we go.

 

all the best, Don

 

From: John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com> > 
Sent: Wednesday, October 26, 2022 2:59 PM
To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu <mailto:brutzman at nps.edu>
>; Michalis Kamburelis <michalis.kambi at gmail.com
<mailto:michalis.kambi at gmail.com> >; Joe D Williams <joedwil at earthlink.net
<mailto:joedwil at earthlink.net> >; Nicholas Polys <npolys at vt.edu
<mailto:npolys at vt.edu> >
Subject: Fwd: BVH tasks, joining forces, vim plugin

Joe, Nicholas, can you help with debugging conversion of this pirouette.bvh
in X3D-Edit?  There's a ton of stack trace from X3D-Edit when one tries the
first two options from the X3D-Edit menu.  I'm unsure if the .bvh file
currently works on michalis' convert.php page (may be worth a look as well,
looked like .bvh was not accepted model type.

I believe this may be the bvh file:

 

https://github.com/mrdoob/three.js/blob/dev/examples/models/bvh/pirouette.bv
h
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
m%2Fmrdoob%2Fthree.js%2Fblob%2Fdev%2Fexamples%2Fmodels%2Fbvh%2Fpirouette.bvh
&data=05%7C01%7Cbrutzman%40nps.edu%7Cae1718f44ffe4a3aed6608dab7e067c6%7C6d93
6231a51740ea9199f7578963378e%7C0%7C0%7C638024474405315099%7CUnknown%7CTWFpbG
Zsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2
000%7C%7C%7C&sdata=84hT5OBGHmOfFw36J94H%2FDPEeRZ3cn7gmI3zYgFjmMA%3D&reserved
=0> 

 

I will go looking for more .bvh files in three.js

 

GL,

 

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221027/1060e930/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5353 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221027/1060e930/attachment-0001.p7s>


More information about the x3d-public mailing list