[x3d-public] HAnim Winter and Spring: some progress

Andreas Plesch andreasplesch at gmail.com
Mon Sep 18 11:55:21 PDT 2023


I processed the Leif.x3d to remove the white boxes, filter out
skincoordindices with very small weights, and limit the numerical
precision of floating point numbers (it looks like the original source
had four or five digits after the decimal point):

https://andreasplesch.github.io/Library/Viewer/index.html?url=https://gist.githubusercontent.com/andreasplesch/10ac4252e769fb7970e5eacab71fc6be/raw/958a8c8830750ff7315384c2941851a67fa2bca1/Leif_091823.x3d

This includes the processing script commented out. Using an
appropriate numerical precision reduces the file size almost by half.

https://andreasplesch.github.io/Library/Viewer/index.html?url=https://gist.githubusercontent.com/andreasplesch/10ac4252e769fb7970e5eacab71fc6be/raw/958a8c8830750ff7315384c2941851a67fa2bca1/Leif_orig_with_script.x3d

is the original xml conversion with a running processing script which
logs to the console, for playing around and completeness. The script
is executed and after pressing Update

-Andreas

On Sun, Sep 17, 2023 at 10:51 PM Andreas Plesch <andreasplesch at gmail.com> wrote:
>
> The alternative was to code a simple maximum search which only  uses
> pairs, implemented in a functional style with reduce for brevity.
> Probably quite a bit slower but only needed when first processing the
> node.
>
> The x3dom.org automatic, nightly dev builds from the github repo
> currently do not seem to work. So I put the dev builds for the current
> x3dom repo on the github cdn at
>
> https://andreasplesch.github.io/x3dom/dist/x3dom-full.js
> https://andreasplesch.github.io/x3dom/dist/x3dom.js
> https://andreasplesch.github.io/x3dom/dist/x3dom.css
> https://andreasplesch.github.io/x3dom/dist/doc
>
> I can probably maintain these for now for updates to the x3dom github repo.
>
> The x3dom editor at
>
> https://andreasplesch.github.io/Library/Viewer/index.html now uses the
> github.io cdn for the dev version.
> See https://andreasplesch.github.io/Library/Viewer/index.html?url=https://www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring/Leif.x3d
>
> The way jsdelivr works the files are also available as
>
> https://cdn.jsdelivr.net/gh/andreasplesch/x3dom@gh-pages/dist/x3dom.js
> etc.
>
> -Andreas
>
> On Sun, Sep 17, 2023 at 9:28 PM Joe D Williams <joedwil at earthlink.net> wrote:
> >
> > > The texcoordindex array is too large for the Math.max function which is used. There is a simple alternative.
> >
> > OK, are there any other limits? What is the alternative?
> > thanks Andreas, I tried to get that one loaded in the
> >
> >
> > -----Original Message-----
> > From: Andreas Plesch <andreasplesch at gmail.com>
> > Sent: Sep 17, 2023 8:50 AM
> > To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>
> > Cc: Joseph D Williams <joedwil at earthlink.net>, Michalis Kamburelis <michalis.kambi at gmail.com>, Carol McDonald <cemd2 at comcast.net>, Katy Schildmeyer KS APPAREL DESIGN <katy at ksappareldesign.com>, X3D Public Mailing List (x3d-public at web3d.org) <x3d-public at web3d.org>
> > Subject: Re: HAnim Winter and Spring: some progress
> >
> > Thanks for sharing.
> >
> > It turns out that none of the event utilities are listed in the x3dom
> > documentation pages due to an oversight in the documentation
> > generation but they are all supported.
> >
> > I looked at the Leif model and the problem it exposed was a limitation
> > of the number of parameters (65536) a function can accept in the
> > underlying javascript engine. The texcoordindex array is too large for
> > the Math.max function which is used. There is a simple alternative.
> > With that, the animation sequence works but shows graphical artefacts
> > including white cubes.
> >
> > -Andreas
> >
> > On Sun, Sep 17, 2023 at 12:12 AM Brutzman, Donald (Don) (CIV)
> > wrote:
> > >
> > > Joe, thanks for discussion and updates today.
> > >
> > >
> > >
> > > X3D Example Archives: Humanoid Animation, Winter And Spring
> > > https://www.web3d.org/x3d/content/examples/HumanoidAnimation/WinterAndSpring
> > >
> > >
> > >
> > > Have updated Lief, Lily, Tufani, GrandKidsBox, and Test Cycle Time Start . These appear to work in view3dscene and X_ITE. Looks like X3DOM is missing TimeTrigger.
> > >
> > >
> > >
> > > https://doc.x3dom.org/author/nodes.html
> > >
> > >
> > >
> > > You need to fix Shape geometry that is direct child of HAnimJoint – invalid, not allowed, even if (sensibly) tolerated by some players.
> > >
> > >
> > >
> > > I can keep adding models and regularizing names – diff/merge with version control keeps the best and avoids losing the rest.
> > >
> > >
> > >
> > > Small adjustments are being applied to various tools as we go.
> > >
> > >
> > >
> > > Always appreciate for your efforts, steady as she goes.
> > >
> > >
> > >
> > > 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
> > >
> > >
> >
> >
> >
> > --
> > Andreas Plesch
> > Waltham, MA 02453
> >
> >
>
>
> --
> Andreas Plesch
> Waltham, MA 02453



-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list