[x3d-public] Got HAnim files in place. no default values for llimit and ulimit. containerField alternates field in MetadataSet.java should allow /metadata/ from X3DUOM.
John Carlson
yottzumm at gmail.com
Fri Dec 24 21:06:37 PST 2021
Yes, I believe I have already received some HAnim .x3d files via
subversion. Mostly I don't try to look at the web at all, as it may be
a bit behind or ahead. I think what you're saying is the web is
"official." and I should code to that. I understand that maintain
multiple branched code is more difficult than what we already have. I
agree with that we should stick to a single branch. We just need a bit
of human sync up, which I'm pretty horrible at that. I'm just trying to
get X3DJSONLD users (if there are any) a strong base, which is why
X3DJSAIL jars are maintained separately from X3DJSONLD and other
possible packages.
==============================================================================================
In responding to a previous email, what I am perceiving, I think, is a
default value for llmit and ulimit which is undefined in X3DUOM, and so
is specified as /UNDEFINED/ in X3DJSAIL, and furthermore, the
/UNDEFINED/ symbol has "no default value found." I don't know if we're
crossing beams or what.
The default value for llimit and ulimit is not in X3DUOM, AFAIK.
X3DJSAIL build:
[javac] Compiling 371 source files to
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/classes
[javac]
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/src/org/web3d/x3d/jsail/HAnim/HAnimJoint.java:3568:
error: cannot find symbol
[javac] llimit = UNDEFINED; // [Error in X3DUOM, XML
Schema] No default value found for HAnimJoint field llimit
[javac] ^
[javac] symbol: variable UNDEFINED
[javac] location: class HAnimJoint
[javac]
/c/x3d-code/www.web3d.org/x3d/stylesheets/java/src/org/web3d/x3d/jsail/HAnim/HAnimJoint.java:3579:
error: cannot find symbol
[javac] ulimit = UNDEFINED; // [Error in X3DUOM, XML
Schema] No default value found for HAnimJoint field ulimit
[javac] ^
[javac] symbol: variable UNDEFINED
[javac] location: class HAnimJoint
=======================================================================================
All alternate containerField's are not specified for MetadataSet.java in
X3DJSAIL, and potentially other nodes. The stylesheet seems to be
picking up two "value"s when producing MetadataSet.java. From what I
see of the stylesheet, it's picking up default and not alternate
enumeration values, such as /metadata/ and /value/, but I don't know
XPath that well. I will double check again. Check out the initialize
method in MetadataSet.java for multiple "value"s for containerField
alternates. I am seeing the stylesheet now a bit better now. Terrific.
Indeed, it looks like this Metadata test code is invoked to add "value"
to the default. Thus 2 "values," one from default and one from extra
tests. No /metadata/ from X3DUOM as I would have expected for
MetadataSet (and below SimpleType).
<xsl:when test="starts-with($name,'Metadata')">
<xsl:text>, "value"</xsl:text>
</xsl:when>
At least one special test case should be added for MetadataSet, if the
alternates are not pulled from X3DUOM. /metadata/ should be added to
the X3DJSAIL creation stylesheet to handle containerField="metadata"
when processing through X3DJSAIL.
See lovely X3DUOM, previously posted and referenced the ConcreteType
"MetadataSet"
<SimpleType name="containerFieldChoicesMetadata"
baseType="xs:NMTOKEN"
appinfo="containerFieldChoicesMetadata lists the
allowed containerField enumeration values for Metadata nodes:
"value" if providing information and parent node is MetadataSet
collection, otherwise default "metadata" if providing
information about parent node."
documentation="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#containerField">
<enumeration value="metadata"
appinfo="this node provides metadata information
regarding its parent node."/>
<enumeration value="value"
appinfo="parent node is MetadataSet, this node is
providing information as part of a MetadataSet collection."/>
</SimpleType>
I hope Santa brings you a good build for Christmas!
John
On 12/24/21 17:44, Brutzman, Donald (Don) (CIV) wrote:
>
> Happy to help. Merry Christmas.
>
> Be sure to synchronize with subversion for most rapid updates.
> Website takes longer (one or more days).
>
> 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:* Friday, December 24, 2021 1:08 PM
> *To:* Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>
> *Subject:* Re: Previously reported. Running my Java version of
> JinLOA4.java (Don't version is unavailable last I checked).
>
> NPS WARNING: *external sender* verify before acting.
>
> I will make an HAnim .x3d’s copy to my data folder when I get a
> chance. I may have to delete stray copies. Patience appreciated.
>
> I will be with family now.
>
> Thank you for all you’ve done on X3D.
>
> John
>
> On Fri, Dec 24, 2021 at 11:19 AM Brutzman, Donald (Don) (CIV)
> <brutzman at nps.edu> wrote:
>
> We should not expect correct Java (or python or whatever) if the
> .x3d source is incorrect.
>
> As just reported to you and list, I think the .x3d source models
> are now correct and in version control.
>
> Rerunning all conversions. This takes many hours and uploading
> updates from home network is not always compatible with
> 4-year-old's streaming TV usage.
>
> Step by step, onward we go. Thanks for your efforts John.
>
> 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 <http://faculty.nps.edu/brutzman>
>
> -----Original Message-----
> From: John Carlson <yottzumm at gmail.com>
> Sent: Thursday, December 23, 2021 11:36 PM
> To: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>; Joseph D
> Williams <joedwil at earthlink.net>
> Subject: Previously reported. Running my Java version of
> JinLOA4.java (Don't version is unavailable last I checked).
>
> NPS WARNING: *external sender* verify before acting.
>
>
> Previously reported. My Java. Can provide code on request. Specify
> link or attachment, thanks!
>
> John
>
> ~/X3DJSONLD/src/main/java$ java -cp
> .:/home/coderextreme/pythonSAI/X3DJSAIL.4.0.full.jar
> net/coderextreme/data/JinLOA4
> Warning: HAnimJoint name newValue='l_tarsal_distal_interphalangeal_1'
> has an unrecognized value not matching any of the optional string
> tokens.
> Warning: HAnimJoint name newValue='r_tarsal_distal_interphalangeal_1'
> has an unrecognized value not matching any of the optional string
> tokens.
> org.web3d.x3d.sai.InvalidFieldException: ERROR_ILLEGAL_VALUE:
> HAnimSegment DEF='hanim_sacrum' name='sacrum' illegal parent found:
> HAnimJoint name='hanim_humanoid_root' name='humanoid_root'
> org.web3d.x3d.sai.InvalidFieldException: ERROR_ILLEGAL_VALUE:
> HAnimSegment DEF='hanim_sacrum' name='sacrum' illegal parent found:
> HAnimJoint name='hanim_humanoid_root' name='humanoid_root'
> at
> org.web3d.x3d.jsail.HAnim.HAnimSegment.validate(HAnimSegment.java:6169)
> at
> org.web3d.x3d.jsail.HAnim.HAnimJoint.validate(HAnimJoint.java:7162)
> at
> org.web3d.x3d.jsail.HAnim.HAnimHumanoid.validate(HAnimHumanoid.java:6017)
> at org.web3d.x3d.jsail.Core.Scene.validate(Scene.java:870)
> at org.web3d.x3d.jsail.Core.X3D.validate(X3D.java:3988)
> at
> org.web3d.x3d.jsail.Core.X3D.toFileStylesheetConversion(X3D.java:1118)
> at
> org.web3d.x3d.jsail.Core.X3D.toFileStylesheetConversion(X3D.java:1042)
> at org.web3d.x3d.jsail.Core.X3D.toFileJSON(X3D.java:1853)
> at net.coderextreme.data.JinLOA4.main(JinLOA4.java:43)
> Exception in thread "main" org.web3d.x3d.sai.InvalidFieldException:
> ERROR_ILLEGAL_VALUE: HAnimSegment DEF='hanim_sacrum' name='sacrum'
> illegal parent found: HAnimJoint name='hanim_humanoid_root'
> name='humanoid_root'
> at
> org.web3d.x3d.jsail.HAnim.HAnimSegment.validate(HAnimSegment.java:6169)
> at
> org.web3d.x3d.jsail.HAnim.HAnimJoint.validate(HAnimJoint.java:7162)
> at
> org.web3d.x3d.jsail.HAnim.HAnimHumanoid.validate(HAnimHumanoid.java:6017)
> at org.web3d.x3d.jsail.Core.Scene.validate(Scene.java:870)
> at org.web3d.x3d.jsail.Core.X3D.validate(X3D.java:3988)
> at
> org.web3d.x3d.jsail.Core.X3D.toFileStylesheetConversion(X3D.java:1118)
> at
> org.web3d.x3d.jsail.Core.X3D.toFileStylesheetConversion(X3D.java:1042)
> at org.web3d.x3d.jsail.Core.X3D.toFileJSON(X3D.java:1853)
> at net.coderextreme.data.JinLOA4.main(JinLOA4.java:43)
>
> On 12/24/21 01:17, John Carlson wrote:
> > Warning: HAnimJoint name
> newValue='l_tarsal_distal_interphalangeal_1'
> > has an unrecognized value not matching any of the optional
> string tokens.
> > Warning: HAnimJoint name
> newValue='r_tarsal_distal_interphalangeal_1'
> > has an unrecognized value not matching any of the optional
> string tokens.
> > org.web3d.x3d.sai.InvalidFieldException: ERROR_ILLEGAL_VALUE:
> > HAnimSegment DEF='hanim_sacrum' name='sacrum' illegal parent found:
> > HAnimJoint name='hanim_humanoid_root' name='humanoid_root'
> > org.web3d.x3d.sai.InvalidFieldException: ERROR_ILLEGAL_VALUE:
> > HAnimSegment DEF='hanim_sacrum' name='sacrum' illegal parent found:
> > HAnimJoint name='hanim_humanoid_root' name='humanoid_root'
> > at
> >
> org.web3d.x3d.jsail.HAnim.HAnimSegment.validate(HAnimSegment.java:6169)
> > at
> org.web3d.x3d.jsail.HAnim.HAnimJoint.validate(HAnimJoint.java:7162)
> > at
> >
> org.web3d.x3d.jsail.HAnim.HAnimHumanoid.validate(HAnimHumanoid.java:6017)
> > at org.web3d.x3d.jsail.Core.Scene.validate(Scene.java:870)
> > at org.web3d.x3d.jsail.Core.X3D.validate(X3D.java:3988)
> > at
> >
> org.web3d.x3d.jsail.Core.X3D.toFileStylesheetConversion(X3D.java:1118)
> > at
> >
> org.web3d.x3d.jsail.Core.X3D.toFileStylesheetConversion(X3D.java:1042)
> > at org.web3d.x3d.jsail.Core.X3D.toFileJSON(X3D.java:1853)
> > at net.coderextreme.data.JinLOA4.main(JinLOA4.java:43)
> > Exception in thread "main" org.web3d.x3d.sai.InvalidFieldExcept
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20211224/1d796bae/attachment-0001.html>
More information about the x3d-public
mailing list