[x3d-public] Please inform me when addMotions is in X3DJSAIL release.

John Carlson yottzumm at gmail.com
Mon Jul 3 02:44:15 PDT 2023


Don,

Please inform me when addMotions() is in X3DJSAIL release (I haven't
checked, seems quite new!).  Looks like a promising new feature! I'm
guessing a new X3DUOM is being released too.

See below changes Don has made to X3dToJava.xslt.  More fun stuff for HAnim!

Thanks,

John

Index: stylesheets/X3dToJava.xslt
===================================================================
--- stylesheets/X3dToJava.xslt  (revision 35199)
+++ stylesheets/X3dToJava.xslt  (working copy)
@@ -1161,6 +1161,9 @@
                          (local-name() = 'IndexedQuadSet') or
(local-name() = 'IndexedTriangleSet') or (local-name() =
'IndexedTriangleStripSet'))">
                         <xsl:text>skin</xsl:text>
                     </xsl:when>
+                    <xsl:when test="(local-name(..) = 'HAnimHumanoid') and
(local-name() = 'HAnimMotion')">
+                        <xsl:text>motions</xsl:text>
+                    </xsl:when>
                     <!-- HAnimHumanoid can contain Metadata*  with
containerField = metadata -->
                     <!-- HAnimHumanoid can contain HAnimJoint with
containerField = joints or skeleton -->
                     <!-- HAnimHumanoid can contain HAnimSite  with
containerField = sites, skeleton or viewpoints -->
@@ -1377,6 +1380,12 @@
                                        <xsl:apply-templates
select="."/><!-- handle this node -->
                                        <xsl:text>)</xsl:text>
                                </xsl:when>
+                                <!-- HAnimMotion -->
+                               <xsl:when test="(local-name(..) =
'HAnimHumanoid') and ($containerField = 'motions')">
+                                       <xsl:text>.addMotions(</xsl:text>
+                                       <xsl:apply-templates
select="."/><!-- handle this node -->
+                                       <xsl:text>)</xsl:text>
+                               </xsl:when>
                                <xsl:when test="((local-name(..) =
'HAnimJoint') or (local-name(..) = 'HAnimSegment')) and ($containerField =
'displacers')">
                                        <xsl:text>.addDisplacers(</xsl:text>
                                        <xsl:apply-templates
select="."/><!-- handle this node -->
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230703/0d0f72fb/attachment.html>


More information about the x3d-public mailing list