[x3d-public] BVHacker, HAnim transformation, TypeScript SAI?

John Carlson yottzumm at gmail.com
Sun Aug 27 03:11:54 PDT 2023


I am primarily working with live, streaming mocap data.   You already have
a BVH to X3D converter.  Does it work with streaming “BVH”?  Can your
 BVH->X3D tool create rotations through time with just joint (location) and
bone data in a streaming format?)

TypeScript only produces ECMAScript that I know of.  You can have your cake
and eat it too.   I can post an example and have for equivalent ECMAScript
to TypeScript.   I’m currently testing the result, but I’m running into
shading issues, which may indicate issue with the new X3DJSONLD.js
conversions (and X_ITE puts out NavigationInfo at type as an array—curses…we
should schedule a meeting between interested parties).  There’s nothing on
the console, so I’ll need to get into a debugger or use the GHD—web
development is painful.  Edge developer tools is currently disabled, so I’m
also shying away from Microsoft.   More later.

We standardize on ECMAScript, but not disallow TypeScript.  Think of
Typescript as Types for ECMAScript, and they are erasable.

Java is proprietary as well.  TypeScript is as open source as Java, AFAIK.
  I realize that NetBeans doesn’t support TypeScript.   I know
preprocessors have a bad name, but compare TypeScript output to original
hand-coded ECMAScript.

I don’t include TypeScript in my web pages, I include ECMAScript.  I don’t
see a particular reason for creating another concrete SAI based on
ECMAScript, except to update the standard, and create a standard API.   I
can tackle the XSLT, if I have adequate XSLT authoring tools.   Does
X3D-Edit offer XSLT?

Let me know if the validation tools I’ve created work.  Give me examples
where they fail.   Both my x3dschema and x3dvalidate repositories offer
powerful validators in Java and JavaScript.

https://github.com/coderextreme/x3dvalidate

I’ve recently discovered some false flags with Ajv.js that had me bugged.
I now know how to disable them, if cache is turned off.  In particular
@matrix and @geoSystem were throwing false flags.   I’ve worked on
validation tools in Java that use X3DJSAIL.   I don’t have an issue with
leaving JSON Schema behind if we can create X3D JSON validation tools
through XSLT using either x3d.py,  X3DJSAIL or a derivative.   I realize
that X3D has a certain trajectory.   It seems like you (and maybe others)
have an issue with leaving JSON Schema behind.  Are you thinking of Roy?

John

On Sat, Aug 26, 2023 at 10:47 PM Brutzman, Donald (Don) (CIV) <
brutzman at nps.edu> wrote:

> John, it is great that you explore and do a lot of things, thank you.
>
>
>
> Unfortunately your next message seems very puzzling to me.  Rather than
> respond, let me point out some fundamental building blocks please.
>
>
>
>    1. We have X3D 4.0 with interpolators, event passing, HAnim inclusion,
>    many other things.
>    2. HAnim animation includes interpolator approaches (well tested) and
>    BVH-style HAnimMotion (only a few tests, BVHacker might be useful).
>    3. We have X3D equivalently expressible in XML, ClassicVRML, binary,
>    Java and Python.
>    4. We do not yet have, and certainly could use, a validating X3D JSON
>    schema and an SAI-compliant X3D ECMAScript library.
>
>
>
> Repeating:
>
>    - Can your work get us (d) above?
>    - X3D group is not doing Microsoft TypeScript or other new languages
>    while upgrading standards documents, libraries and test-archive examples
>    thoroughly to each of our approved paths.
>
>
>
> Focusing is good, and X3D group will stay focused on an already-large
> agenda.
>
>
>
> Again thanks and good luck with your efforts.
>
>
>
> 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:* Saturday, August 26, 2023 2:10 AM
> *To:* X3D Graphics public mailing list <x3d-public at web3d.org>; Holger
> Seelig <holger.seelig at yahoo.de>
> *Subject:* [x3d-public] BVHacker, HAnim transformation, TypeScript SAI?
>
>
>
> I would like to create a way to "render" HAnim animations/transformations
> to one or more X3D encodings, in particular, I would like to do this in a
> headless manner (no screen involved). In particular, I would like to solve
> the problem of moving the humanoid between different poses and saving them
> off. I realize that many animation tools probably already do this. I know
> that SFMatrix and MFMatrix SAI can do matrix multiplication (no
> quaternions??) and that may be important.  But more important is
> making skins and skeletons from different systems to work together. Doug
> recommended BVHacker, bvhacker - home
> <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbvhacker.com%2F&data=05%7C01%7Cbrutzman%40nps.edu%7Cd9e0f5e5d4b44ca8974808dba61455d6%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C638286378509592461%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MjsHxXkfxI46FBjrUx67TH4NTs5PGfX50FrAftbEYy0%3D&reserved=0>
> .
>
>
>
> I would use X3DOM or X_ITE if I could separate the rendering, X_ITE has
> Browser.toJSONString(), which I may experiment a bit with, and I want to
> address the skin and the skeleton separately, like rotating the skin 180
> degrees, but not the skeleton.  Something like x3d-tidy or tovrmlx3d might
> be used to "animate" the humanoid.  That's up to those authors.
>
>
>
> So I think a bit about using XSLT and creating a TypeScript SAI.  I would
> likely modify the X3DJSAIL XSLT that takes the X3DUOM and produces
> X3DJSAIL, Python doesn't have a way to import any encoding that I know of
> (no createX3D...). X3DJSAIL has X3DLoaderDOM.java, which will allow me to
> import JSON as DOM which lets me use X3DJSONLD (I hope this
> works, otherwise I'll be riding the XML bandwagon!). C/C++/C# SAI looks
> like an empty shell (I realize there may be some DLLs).
>
>
>
> I choose not to modify the X3DJSAIL codebase beyond the stylesheet.  I'm
> not going there.  But my changes might be backported to Java.  I will
> attempt to use the SaxonJS product, if it is good enough, to be able to use
> x3dTo...xslt in the program. X3DJSAIL offers everything that I know I need
> except for applying transforms to centers.
>
>
>
> I chose TypeScript over JavaScript/ECMAScript because I feel the former is
> closer to Java than the latter two.
>
>
>
> No, I'm not going to read the SAI standard. I have to learn TypeScript.
>
>
>
> If anyone knows a way to easily design XSLT (Something like XSLbyDemo),
> let me know...XMLSpy?
>
>
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230827/9801a13c/attachment-0001.html>


More information about the x3d-public mailing list