[x3d-public] My errors left in HAnim, I think.

John Carlson yottzumm at gmail.com
Tue May 5 00:02:31 PDT 2020


Pretty pictures (animation doesn't work for this one!). Note that I got the
image in the X_ITE-JSON version and not the X_ITE-XML version, so it
appears that the XML version doesn't work, or the translation from XML to
JSON to XML.  I'm no sure what's up with X3DOM.

I was able to also get the other spec example animated in X_ITE-JSON

[image: image.png]

On Tue, May 5, 2020 at 1:29 AM John Carlson <yottzumm at gmail.com> wrote:

> Fixed the skeleton issue in DOM2JSONSerializer.js
>
> Remaining skeleton issue (problem with original .x3d).
> File: KoreanCharacterAnnexD01Jin.json
> Error reading KoreanCharacterAnnexD01Jin.json
>  keyword: additionalProperties
>  dataPath: X3D > Scene
>  value: {"-children":"|omitted|","-skeleton":"|omitted|"}
>  message: should not have additional properties
>  params: {"additionalProperty":"-skeleton"}
>  file: KoreanCharacterAnnexD01Jin.json
>  version: 4.0
> =====================================================
> This one appears to not translate properly.  Hmm.
>
>  keyword: type
>  dataPath: X3D > Scene > -children > 2 > HAnimHumanoid > -skeleton > 0 >
> HAnimJoint > -children > 0 > HAnimSegment > -children > 0 > Transform >
> -children > 0 > Shape > -geometry > IndexedFaceSet > -coord > Coordinate >
> @point > 0
>  value: null
>  message: should be number
>  params: {"type":"number"}
>  file: KoreanCharacterAnnexC01Jin.json
>  version: 4.0
>
> Fixed, by doing a trim() around attribute values.
>
> So it seems like I have conquered most of the issues my code.  The
> remaining one is the -skeleton right under Scene.  I believe this is an
> issue with the standard x3d example, and should be reported as an issue
> (even in X3dToJson.xslt, if not already).
>
> John
>
> On Tue, May 5, 2020 at 12:50 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> DOM2JSONSerializer.js has the following issues:
>>
>> -skeleton is treated as an object instead of an array.
>>
>> John
>>
>> Loading schema
>> Parsing schema
>> Adding schema
>> Schema 4.0 added
>> Schema 4.0 compiled
>>
>> ================================================================================
>> File: HAnimModelFootLeft.json
>> Error reading HAnimModelFootLeft.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Left_Foot","@info":"|omitted|","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Left_Foot","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"@DEF"}
>>  file: HAnimModelFootLeft.json
>>  version: 4.0
>>
>>  keyword: type
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid > -skeleton
>>  value: {"HAnimJoint":"|omitted|"}
>>  message: should be array
>>  params: {"type":"array"}
>>  file: HAnimModelFootLeft.json
>>  version: 4.0
>>
>>  keyword: oneOf
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Left_Foot","@info":"|omitted|","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Left_Foot","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should match exactly one schema in "oneOf"
>>  params: {"passingSchemas":null}
>>  file: HAnimModelFootLeft.json
>>  version: 4.0
>>
>>
>> ================================================================================
>> File: HAnimModelFootRight.json
>> Error reading HAnimModelFootRight.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Right_Foot","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Right_Foot","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"@DEF"}
>>  file: HAnimModelFootRight.json
>>  version: 4.0
>>
>>  keyword: type
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid > -skeleton
>>  value: {"HAnimJoint":"|omitted|"}
>>  message: should be array
>>  params: {"type":"array"}
>>  file: HAnimModelFootRight.json
>>  version: 4.0
>>
>>  keyword: oneOf
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Right_Foot","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Right_Foot","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should match exactly one schema in "oneOf"
>>  params: {"passingSchemas":null}
>>  file: HAnimModelFootRight.json
>>  version: 4.0
>>
>>
>> ================================================================================
>> File: HAnimModelHandLeft.json
>> Error reading HAnimModelHandLeft.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Left_hand","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Left_hand","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"@DEF"}
>>  file: HAnimModelHandLeft.json
>>  version: 4.0
>>
>>  keyword: type
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid > -skeleton
>>  value: {"HAnimJoint":"|omitted|"}
>>  message: should be array
>>  params: {"type":"array"}
>>  file: HAnimModelHandLeft.json
>>  version: 4.0
>>
>>  keyword: oneOf
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Left_hand","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Left_hand","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should match exactly one schema in "oneOf"
>>  params: {"passingSchemas":null}
>>  file: HAnimModelHandLeft.json
>>  version: 4.0
>>
>>
>> ================================================================================
>> File: HAnimModelHandRight.json
>> Error reading HAnimModelHandRight.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Right_hand","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Right_hand","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"@DEF"}
>>  file: HAnimModelHandRight.json
>>  version: 4.0
>>
>>  keyword: type
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid > -skeleton
>>  value: {"HAnimJoint":"|omitted|"}
>>  message: should be array
>>  params: {"type":"array"}
>>  file: HAnimModelHandRight.json
>>  version: 4.0
>>
>>  keyword: oneOf
>>  dataPath: X3D > Scene > -children > 1 > HAnimHumanoid
>>  value:
>> {"@DEF":"Humanoid_Right_hand","@jointBindingPositions":"|omitted|","@jointBindingRotations":"|omitted|","@jointBindingScales":"|omitted|","@loa":-1,"@name":"Humanoid_Right_hand","@skeletalConfiguration":"BASIC","@version":"2.0","-skeleton":"|omitted|","-joints":"|omitted|","-segments":"|omitted|"}
>>  message: should match exactly one schema in "oneOf"
>>  params: {"passingSchemas":null}
>>  file: HAnimModelHandRight.json
>>  version: 4.0
>>
>> Success reading HAnimModelsHandsFeet.json
>>
>> ================================================================================
>> File: KoreanCharacterAnnexC01Jin.json
>> Error reading KoreanCharacterAnnexC01Jin.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 2 > HAnimHumanoid
>>  value:
>> {"@DEF":"hanim_AnnexC01Jin","@info":"|omitted|","@name":"AnnexC01Jin","@scale":"|omitted|","@version":"2.0","-skeleton":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"@DEF"}
>>  file: KoreanCharacterAnnexC01Jin.json
>>  version: 4.0
>>
>>  keyword: type
>>  dataPath: X3D > Scene > -children > 2 > HAnimHumanoid > -skeleton
>>  value: {"HAnimJoint":"|omitted|"}
>>  message: should be array
>>  params: {"type":"array"}
>>  file: KoreanCharacterAnnexC01Jin.json
>>  version: 4.0
>>
>>  keyword: oneOf
>>  dataPath: X3D > Scene > -children > 2 > HAnimHumanoid
>>  value:
>> {"@DEF":"hanim_AnnexC01Jin","@info":"|omitted|","@name":"AnnexC01Jin","@scale":"|omitted|","@version":"2.0","-skeleton":"|omitted|"}
>>  message: should match exactly one schema in "oneOf"
>>  params: {"passingSchemas":null}
>>  file: KoreanCharacterAnnexC01Jin.json
>>  version: 4.0
>>
>>
>> ================================================================================
>> File: KoreanCharacterAnnexD01Jin.json
>> Error reading KoreanCharacterAnnexD01Jin.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene
>>  value: {"-children":"|omitted|","-skeleton":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"-skeleton"}
>>  file: KoreanCharacterAnnexD01Jin.json
>>  version: 4.0
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200505/ce5abcf9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 57179 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200505/ce5abcf9/attachment-0001.png>


More information about the x3d-public mailing list