[x3d-public] TextureBackground sides with and without "Texture"

John Carlson yottzumm at gmail.com
Sun Jul 4 15:45:39 PDT 2021


         This does not do the same thing in X3DOM versus X_ITE


     <TextureBackground>
         <ImageTexture DEF="leftBack" containerField='leftTexture' 
url='"../resources/images/all_probes/beach_cross/beach_left.png" 
"https://coderextreme.net/images/all_probes/beach_cross/beach_left.png"'/>
         <ImageTexture DEF="rightBack" containerField='rightTexture' 
url='"../resources/images/all_probes/beach_cross/beach_right.png" 
"https://coderextreme.net/images/all_probes/beach_cross/beach_right.png"'/>
         <ImageTexture DEF="frontBack" containerField='frontTexture' 
url='"../resources/images/all_probes/beach_cross/beach_front.png" 
"https://coderextreme.net/images/all_probes/beach_cross/beach_front.png"'/>
         <ImageTexture DEF="backBack" containerField='backTexture' 
url='"../resources/images/all_probes/beach_cross/beach_back.png" 
"https://coderextreme.net/images/all_probes/beach_cross/beach_back.png"'/>
         <ImageTexture DEF="topBack" containerField='topTexture' 
url='"../resources/images/all_probes/beach_cross/beach_top.png" 
"https://coderextreme.net/images/all_probes/beach_cross/beach_top.png"'/>
         <ImageTexture DEF="bottomBack" containerField='bottomTexture' 
url='"../resources/images/all_probes/beach_cross/beach_bottom.png" 
"https://coderextreme.net/images/all_probes/beach_cross/beach_bottom.png"'/>
         </TextureBackground>


This is due to an upgrade to X3D4

See last two scenes on these pages (mirror.x3d and mirror2.x3d).

https://coderextreme.net/X3DJSONLD/src/main/html/x3domcomposed.html

https://coderextreme.net/X3DJSONLD/src/main/html/x_itecomposed.html

(note that x3dom does not support the Script node, so there's not much 
animation with X3DOM).

I do not know what the containerFields should be for TextureBackground, 
but X3DUOMv4 says add the Texture (no synonyms available), and so does 
X3DUOMv3.3.


Here is some "history," which I  know is pretty non-understandable:

coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
grep '"back["T]' X3dUnifiedObjectModel-3.0.xml
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
             <field name="backTexture"
coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
grep '"back["T]' X3dUnifiedObjectModel-3.1.xml
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back"/>
          <enumeration value="backTransparency"/>
             <field name="back"
             <field name="backTexture"
coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
grep '"back["T]' X3dUnifiedObjectModel-3.2.xml
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back"/>
          <enumeration value="backTransparency"/>
             <field name="back"
             <field name="backTexture"
             <field name="backTransparency"
coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
grep '"back["T]' X3dUnifiedObjectModel-3.3.xml
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back" appinfo="parent node is 
ComposedCubeMapTexture"/>
          <enumeration value="backTexture" appinfo="parent node is 
TextureBackground"/>
          <enumeration value="back"/>
          <enumeration value="backTransparency"/>
             <field name="back"
             <field name="backTexture"
             <field name="backTransparency"
coderextreme at coderextreme-Kubuntu20:/c/x3d-code/www.web3d.org/specifications$ 
grep '"back["T]' X3dUnifiedObjectModel-4.0.xml
          <enumeration value="backTexture"
          <enumeration value="backTexture"
          <enumeration value="backTexture"/>
          <enumeration value="backTransparency"/>
             <field name="backTexture"
                    synonym="back"
             <field name="backTexture"
             <field name="backTransparency"


Should we also add synonyms in TextureBackground?

Thanks!

John





More information about the x3d-public mailing list