[x3d-public] Improper inheritance? not to specification in X3DUOM, check XML schema as well

John Carlson yottzumm at gmail.com
Wed Dec 4 03:00:59 PST 2024


>From cancelled message:

Possible Error in X3DUOM:

<ConcreteNode name="TextureTransform">
         <InterfaceDefinition specificationUrl="
https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/texturing.html#TextureTransform
"
                              appinfo="TextureTransform shifts 2D texture
coordinates for positioning, orienting and scaling image textures on
geometry.">
                                     <componentInfo name="Texturing"
level="1"/>
                       <Inheritance baseType="*X3DTextureTransformNode*"/>
[snip]
      <ConcreteNode name="TextureTransformMatrix3D">
         <InterfaceDefinition specificationUrl="
https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/texture3D.html#TextureTransformMatrix3D
"
                              appinfo="TextureTransformMatrix3D applies a
3D transformation to texture coordinates.">
            <componentInfo name="Texturing3D" level="1"/>
            <Inheritance baseType="*X3DTextureTransformNode*"/>

Specification:

https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/texture3D.html#TextureTransformMatrix3D

TextureTransformMatrix3D : *X3DSingleTextureTransformNode *{
  SFString   [in,out] mapping     ""
  SFMatrix4f [in,out] matrix      1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1  (-∞,∞)
  SFNode     [in,out] metadata    NULL    [X3DMetadataObject]
}


https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/texturing.html#TextureTransform

TextureTransform : *X3DSingleTextureTransformNode *{
  SFVec2f  [in,out] center      0 0  (-∞,∞)
  SFString [in,out] mapping     ""
  SFNode   [in,out] metadata    NULL [X3DMetadataObject]
  SFFloat  [in,out] rotation    0    (-∞,∞)
  SFVec2f  [in,out] scale       1 1  (-∞,∞)
  SFVec2f  [in,out] translation 0 0  (-∞,∞)
}



This is why X3D JSON schema should be accepted in the Web3D Standard
suite.  I wouldn't have found this without it.

Hats off to Holger for great work on x3d-tidy conversions from .gltf to
.x3dj which was essential for this.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20241204/441bbb3c/attachment.html>


More information about the x3d-public mailing list