{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"TextureMapComparisonsCylinder.x3d"
          },
          {
            "@name":"description",
            "@content":"Compare ImageTexture mapping for a variety of geometry nodes. This is an excellent test scene for different X3D browsers."
          },
          {
            "@name":"creator",
            "@content":"Sungmin Kwon and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"17 December 2017"
          },
          {
            "@name":"modified",
            "@content":"21 January 2020"
          },
          {
            "@name":"reference",
            "@content":"TextureMapTesting.pdf"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderX_ITE.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderX3DOM.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderBSContact.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderFreeWrl.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderH3DViewer.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderInstantReality.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderView3dScene.png"
          },
          {
            "@name":"Image",
            "@content":"TextureMapComparisonsCylinderXj3D.png"
          },
          {
            "@name":"reference",
            "@content":"TextureMapComparisonsRectangle.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Images"
          },
          {
            "@name":"specificationSection",
            "@content":"X3D Abstract Specification, 18.2.3 Texture coordinates"
          },
          {
            "@name":"specificationUrl",
            "@content":"https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/texturing.html#Texturecoordinates"
          },
          {
            "@name":"Image",
            "@content":"https://www.web3d.org/documents/specifications/19775-1/V3.3/Images/ImageTexture.gif"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/TextureMapComparisonsCylinder.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"31 August 2025"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"TextureMapComparisonsCylinder.x3d"
            }
          },
          { "Viewpoint":
            {
              "@DEF":"Viewpoint1",
              "@description":"default view",
              "@position":[0,0,21]
            }
          },
          {
            "#comment":"== === ==== 1st row"
          },
          { "Transform":
            {
              "@translation":[0,0.2,0],
              "-children":[
                {
                  "#comment":"Cylinder"
                },
                { "Transform":
                  {
                    "@translation":[0,3,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[-6,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"TextureAppearance",
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@DEF":"SpecificationTexture",
                                            "@url":["ImageTextureSpecificationSquare.png","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/ImageTextureSpecificationSquare.png"]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Face Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-3.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureAppearance"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedFaceSet":
                                    {
                                      "@DEF":"BaseIFS",
                                      "@coordIndex":[0,1,9,8,-1,1,2,10,9,-1,2,3,11,10,-1,3,4,12,11,-1,4,5,13,12,-1,5,6,14,13,-1,6,7,15,14,-1,7,0,8,15,-1,8,9,17,16,-1,9,10,18,17,-1,10,11,19,18,-1,11,12,20,19,-1,12,13,21,20,-1,13,14,22,21,-1,14,15,23,22,-1,15,8,16,23,-1],
                                      "-coord":
                                        { "Coordinate":
                                          {
                                            "@DEF":"CsForCylinder",
                                            "@point":[0,-1,1,0.707,-1,0.707,1,-1,0,0.707,-1,-0.707,0,-1,-1,-0.707,-1,-0.707,-1,-1,0,-0.707,-1,0.707,0,0.5,1,0.707,0.5,0.707,1,0.5,0,0.707,0.5,-0.707,0,0.5,-1,-0.707,0.5,-0.707,-1,0.5,0,-0.707,0.5,0.707,0,1,1,0.707,1,0.707,1,1,0,0.707,1,-0.707,0,1,-1,-0.707,1,-0.707,-1,1,0,-0.707,1,0.707]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Triangle Strip Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-1,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureAppearance"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedTriangleStripSet":
                                    {
                                      "@DEF":"BaseITSS",
                                      "@index":[8,0,9,1,10,2,11,3,12,4,13,5,14,6,15,7,8,0,-1,16,8,17,9,18,10,19,11,20,12,21,13,22,14,23,15,16,8,-1],
                                      "-coord":
                                        { "Coordinate":
                                          {
                                            "@USE":"CsForCylinder"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Extrusion"
                      },
                      { "Transform":
                        {
                          "@translation":[1.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureAppearance"
                                    }
                                  },
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@DEF":"BaseExtrusionShape",
                                      "@crossSection":[0,-1,-0.707,-0.707,-1,0,-0.707,0.707,0,1,0.707,0.707,1,0,0.707,-0.707,0,-1],
                                      "@spine":[0,-1,0,0,0.5,0,0,1,0],
                                      "-children":[
                                        {
                                          "#comment":"spine is open, crossSection is closed"
                                        }
                                      ]
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"== === ==== 2nd row"
                },
                {
                  "#comment":"Cylinder"
                },
                { "Transform":
                  {
                    "@translation":[0,0.5,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[-6,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"TextureRotate",
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@USE":"SpecificationTexture"
                                          }
                                        },
                                      "-textureTransform":
                                        { "TextureTransform":
                                          {
                                            "@rotation":0.8
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Face Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-3.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureRotate"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedFaceSet":
                                    {
                                      "@USE":"BaseIFS"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Triangle Strip Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-1,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureRotate"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedTriangleStripSet":
                                    {
                                      "@USE":"BaseITSS"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Extrusion"
                      },
                      { "Transform":
                        {
                          "@translation":[1.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureRotate"
                                    }
                                  },
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@USE":"BaseExtrusionShape"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"== === ==== 3rd row"
                },
                {
                  "#comment":"Cylinder"
                },
                { "Transform":
                  {
                    "@translation":[0,-2,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[-6,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"TextureTranslate",
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@USE":"SpecificationTexture"
                                          }
                                        },
                                      "-textureTransform":
                                        { "TextureTransform":
                                          {
                                            "@rotation":0.8,
                                            "@translation":[0.2,-0.5]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Face Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-3.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureTranslate"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedFaceSet":
                                    {
                                      "@USE":"BaseIFS"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Triangle Strip Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-1,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureTranslate"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedTriangleStripSet":
                                    {
                                      "@USE":"BaseITSS"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Extrusion"
                      },
                      { "Transform":
                        {
                          "@translation":[1.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureTranslate"
                                    }
                                  },
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@USE":"BaseExtrusionShape"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"== === ==== 4th row"
                },
                {
                  "#comment":"Cylinder"
                },
                { "Transform":
                  {
                    "@translation":[0,-4.5,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[-6,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"TextureScale",
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@USE":"SpecificationTexture"
                                          }
                                        },
                                      "-textureTransform":
                                        { "TextureTransform":
                                          {
                                            "@rotation":0.8,
                                            "@scale":[2,2],
                                            "@translation":[0.2,-0.5]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Face Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-3.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureScale"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedFaceSet":
                                    {
                                      "@USE":"BaseIFS"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Triangle Strip Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-1,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureScale"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedTriangleStripSet":
                                    {
                                      "@USE":"BaseITSS"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Extrusion"
                      },
                      { "Transform":
                        {
                          "@translation":[1.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"TextureScale"
                                    }
                                  },
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@USE":"BaseExtrusionShape"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"== === ==== 5th row"
                },
                {
                  "#comment":"Cylinder"
                },
                { "Transform":
                  {
                    "@translation":[0,-7,0],
                    "-children":[
                      { "Transform":
                        {
                          "@translation":[-6,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"AppearanceNoTexture",
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.6,1,1]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Cylinder":
                                    {
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Face Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-3.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"AppearanceNoTexture"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedFaceSet":
                                    {
                                      "@coordIndex":[0,1,9,8,-1,1,2,10,9,-1,2,3,11,10,-1,3,4,12,11,-1,4,5,13,12,-1,5,6,14,13,-1,6,7,15,14,-1,7,0,8,15,-1,8,9,17,16,-1,9,10,18,17,-1,10,11,19,18,-1,11,12,20,19,-1,12,13,21,20,-1,13,14,22,21,-1,14,15,23,22,-1,15,8,16,23,-1],
                                      "-coord":
                                        { "Coordinate":
                                          {
                                            "@USE":"CsForCylinder"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Triangle Strip Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-1,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"AppearanceNoTexture"
                                    }
                                  },
                                "-geometry":
                                  { "IndexedTriangleStripSet":
                                    {
                                      "@index":[8,0,9,1,10,2,11,3,12,4,13,5,14,6,15,7,8,0,-1,16,8,17,9,18,10,19,11,20,12,21,13,22,14,23,15,16,8,-1],
                                      "-coord":
                                        { "Coordinate":
                                          {
                                            "@USE":"CsForCylinder"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Extrusion"
                      },
                      { "Transform":
                        {
                          "@translation":[1.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"AppearanceNoTexture"
                                    }
                                  },
                                "-geometry":
                                  { "Extrusion":
                                    {
                                      "@USE":"BaseExtrusionShape"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"== === ==== Text"
                },
                {
                  "#comment":"Title"
                },
                { "Transform":
                  {
                    "@translation":[0,7,0],
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Text":
                              {
                                "@DEF":"Title",
                                "@string":["Texture Map Comparisons for Cylinders!"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@justify":["MIDDLE","FIRST"]
                                    }
                                  }
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"DefaultAppearance",
                                "-material":
                                  { "Material":
                                    {
                                      "@DEF":"DefaultMaterial"
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"X axis : Geometry Index"
                },
                { "Transform":
                  {
                    "@translation":[0,5.2,0],
                    "-children":[
                      {
                        "#comment":"Cylinder"
                      },
                      { "Transform":
                        {
                          "@translation":[-6,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Cylinder"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@DEF":"CenterFontStyle",
                                            "@justify":["MIDDLE","MIDDLE"],
                                            "@size":0.75,
                                            "@style":"BOLD"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Face Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-3.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["IFS"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"CenterFontStyle"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Indexed Triangle Strip Set"
                      },
                      { "Transform":
                        {
                          "@translation":[-1,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["ITSS"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"CenterFontStyle"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      {
                        "#comment":"Extrusion"
                      },
                      { "Transform":
                        {
                          "@translation":[1.5,0,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Extrusion"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"CenterFontStyle"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                {
                  "#comment":"Y axis : Texture Description"
                },
                { "Transform":
                  {
                    "@translation":[3,3.5,0],
                    "-children":[
                      { "Transform":
                        {
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Default Texture"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@DEF":"LeftFontStyle",
                                            "@justify":["BEGIN","MIDDLE"],
                                            "@size":0.75
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,-2.5,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Rotate Texture"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"LeftFontStyle"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,-5,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Rotate, Translate Texture"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"LeftFontStyle"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,-7.5,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Rotate, Translate, Scale"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"LeftFontStyle"
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,-10,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["No Texture"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@USE":"LeftFontStyle"
                                          }
                                        }
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.6,1,1]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}