[x3d-public] Cleaned MultiFacialAnimationMenu.txt

John Carlson yottzumm at gmail.com
Sun Dec 22 18:23:20 PST 2024


Hi Don,

Thanks for kudos.  I think the link may be different from the attachment, I
am not sure though.

I can include some of your changes, and they will help!  Normally, I’m
doing python rather than XML.  That’s why there’s extraneous quotes.

Great to hear about new X3D-Edit 4.0 version for latest NetBeans.

The displacer names came from interpolator names, so confusion is natural!
I was including both CoordinateInterpolators and HAnimDisplacers at one
point.

Understood that Prototypes don’t work in X3DOM, more work is needed there
(possibly implementation of ProtoInstance is needed in X3DOM?). I primarily
work with Sunrize, Castle, FreeWRL and then X_ITE if I want to deploy.
Your X3D-Edit is great, but I typically do development from the
command-line so I can easily filter and sort (unique) validation results
and logs.  Further options to X3DJSAIL for schematron welcome!  I will look
into C14N options.

In an attempt to remove scripts per Andreas’ post, I ran into an issue
where I couldn’t send an event to an MFNode.  At this point, I am stuck,
and I’m not sure how to proceed.  I will likely archive that python and go
back.

On Sun, Dec 22, 2024 at 1:42 PM Brutzman, Donald (Don) (CIV) <
brutzman at nps.edu> wrote:

> [Oops a runaway email.  Corrected copy follows.]
>
> Hi John.  Thanks for sharing this impressive model.  Incidentally there is
> no prior version in the examples archive, numerous details follow.
>
> First made some adjustments for inclusion in the archive.  Then had some
> major trouble with the model, and then discovered that it was invalid.
> Started over again.  Found and fixed stray apostrophe at end of line 1245.
>
>    - <Material DEF="MenuBackground_Material" diffuseColor="0 0 1" />'
>
> Then found and fixed similar error on line 1251:
>
>    - <Script DEF="ScriptToggle">'
>
> At this point the model validates, both with X3D XML DTD and X3D XML
> Schema.  Checked into version control in that form.  You can View History
> there to see a series of changes.
>
> Then applied X3D canonicalization (C14N) to regularize whitespace and line
> breaks, making comparison differencing of changes possible.
>
> Then made initial adjustments to meta-tag metadata.  I think that you and
> Joe should be listed first as authors since you made changes to the other
> authors' models, and are the primary authors of this model.
>
> After a bit, began thinking that a more accurate name is
> FacialAnimationComparisonScripts.x3d with future variations
> FacialAnimationComparisionDisplacers (and
> possibly FacialAnimationComparisionInline someday).
>
>    -
>    https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScripts.x3d
>
> I'm using X3D-Edit 4.0 to make all of these checks and corrections.  We
> have a new release available on SourceForge, awaiting NetBeans confirmation
> on their plugin page.  If you want to use it, available at
>
>    - X3D-Edit 4.0 Distribution, 19 December 2024
>    - https://sourceforge.net/projects/x3d/files
>
>    - Apache NetBeans Plugin Portal: X3D-Edit
>    - (verification pending for NetBeans 24)
>    - https://plugins.netbeans.apache.org/catalogue/?id=90
>
> My changes are all committed to SourceForge and pushed to Web3D Example
> Archives.  Lots to see there!
>
>    - X3D Example Archives: Humanoid Animation, Facial Animation, Facial
>    Animation Comparison Scripts
>    - User selection of X3D models with alternate Facial Animation Control
>    System (FACS) behaviors driven by Java
>    -
>    https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScriptsIndex.html
>    - looks like X_ITE is working OK, full-screen version:
>    -
>    https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScriptsX_ITE.html
>    - Can experiment with live editing using X_ITE Playground Editor (some
>    fiddling with full-screen buttons may be necessary)
>    -
>    https://create3000.github.io/x_ite/playground/?url=https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScripts.x3d
>
> Continuing improvements welcome. Suggestions to you and Joe for continuing
> work:
>
>    - Better description please, I don't think that I captured it
>    correctly.
>    - If you don't plan future variations, we might further simplify
>    rename to FacialAnimationComparison.x3d
>    - Describe design, first an overview/README and then possibly in
>    detail.  With diligent effort this might become a paper in Web3D 2025
>    conference.
>    - Fix DEF and name values to better describe each node's purpose and
>    also match HAnim rules.  For example you have a many DEF names claiming to
>    be an interpolator, but they are actually displacers.  Confusing.
>    - X3DOM apparently still does not support Prototypes, Castle Model
>    Viewer does not support JavaScript.  Looks like you are only using those
>    for the menus (which is really great progress in X3D modeling).
>
> Have fun with X3D HAnim!  🙂
>
>
> P.S. A great many issues reported by X3D Schematron.
>
> P.P.S. X3D HTML documentation shows many HAnim details plus a routing
> table, which can significantly assist debugging.
>
>    - X3D Model Documentation: FacialAnimationComparisonScripts.x3d
>    -
>    https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScripts.html
>
>    - Event Graph ROUTE Table shows event connections.
>    - The following ROUTE chain begins an event-routing loop! Loop occurs
>       at nodeDepth=4.
>       - ROUTE ScriptToggle.diffuseColor TO
>       MenuBackground_Material.diffuseColor
>       -
>    https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScripts.html#EventGraph
>
>    - Visualization report for HAnimHumanoid model hanim0_humanoid
>    -
>    https://www.web3d.org/x3d/content/examples/HumanoidAnimation/FacialAnimation/FacialAnimationComparisonScripts.html#humanoidHAnimHumanoidReport
>
> Very respectfully yours.
>
> 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:* John Carlson <yottzumm at gmail.com>
> *Sent:* Thursday, December 19, 2024 11:18 PM
> *To:* X3D Graphics public mailing list <x3d-public at web3d.org>; Brutzman,
> Donald (Don) (CIV) <brutzman at nps.edu>; doug sanden <
> highaspirations at hotmail.com>; Joe D Williams <joedwil at earthlink.net>;
> Holger Seelig <holger.seelig at yahoo.de>
> *Subject:* Cleaned MultiFacialAnimationMenu.txt
>
>
>  Don,
>
> Please upgrade the previous example in the archive that I provided for
> MultiFacialAnimation.  I  don't see it on the page yet, it's probably
> waiting for a build.
>
> This one doesn't have useless HAnimDisplacers and corresponding ROUTEs.
>
> Works in Sunrize and not in FreeWRL.  Maybe Doug can take a look.  I
> tried two separate JavaScript engines (default and -J DUK). Sunrize wins
> this round. I upgraded and added back a CDATA section, but something else
> appears to be wrong for FreeWRL.
>
> For those that prefer GitHub, here are a couple of links.  The major magic
> in the python is figuring out how to do a Script CDATA section.
>
> ci2had/python/cleanup.py at main · coderextreme/ci2had
> <https://github.com/coderextreme/ci2had/blob/main/python/cleanup.py> (HAnimDisplacer
> clean up)
> ci2had/resources/CleanedMultiFacialAnimationMenu.x3d at main ·
> coderextreme/ci2had
> <https://github.com/coderextreme/ci2had/blob/main/resources/CleanedMultiFacialAnimationMenu.x3d>
>
> I will continue to work on removing the script.
>
> Here's it's cousin that no longer works in FreeWRL.  I have not tried all
> versions:
>
> ci2had/resources/MultiFacialAnimationMenu.x3d at main · coderextreme/ci2had
> <https://github.com/coderextreme/ci2had/blob/main/resources/MultiFacialAnimationMenu.x3d>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20241222/3695639f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 178688 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20241222/3695639f/attachment-0001.png>


More information about the x3d-public mailing list