[X3D-Ecosystem] HAnim Trimmers (begone useless animations)

John Carlson yottzumm at gmail.com
Fri Jun 21 19:38:01 PDT 2024


Some time ago, I began work on removing nodes from the “scenegraph” that
were no longer influencing the visual results—things like ROUTEs that
wouldn’t get fired because there was no potential event that could fire
them, “dead sensors” and defaulted interpolators with no effect on
animation, etc.  i came up with something like this for HAnimHumanoid:
https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/java/net/coderextreme/NewHAnimHumanoid.java

There’s also traversal methods:

https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/java/net/coderextreme/Remove.java


No one has reviewed this,TMK, and I’m not sure they need to, but if someone
wants to do something besides create, update and read scenegraphs, and if
someone wants to do massive node removals on existing scenegraphs, this
code could come in handy.

It offers no additional functionality, it just simplifies the programmers’
lives.  It’s merely traversal plus getters and setters

If you want to review this, please do!  I will release it under an Apache
license if needed.

As I continue to pursue this in Blender, code like this might be used in
x3d.py prior to export.

If you consider this code useful, let’s apply it to X3DJSAIL!

This might work as a massive X3D updateable database, but I don’t have much
interest in databases.  I have more interest using this as an EAI across
the metaverse,  like, replace all my clothes in the closet with new ones,
forget a dance move, etc.

Where did my leg go?  “Just a flesh wound!”

I’m not sure I want to draw any other parallels.

I already know it’s not kosher to update the scenegraph.  Someday.

Jobn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20240621/a50b6225/attachment.html>


More information about the X3D-Ecosystem mailing list