{ "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":"CubeLogoPrototype.x3d"
          },
          {
            "@name":"description",
            "@content":"This file defines a prototype cube of size 2 x 2 x 2. The fields allow any shape to be drawn on the faces."
          },
          {
            "@name":"creator",
            "@content":"Roy Walmsley"
          },
          {
            "@name":"created",
            "@content":"18 March 2017"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"generator",
            "@content":"manual"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/Web3dOutreach/CubeLogoPrototype.x3d"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"02 September 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":"CubeLogoPrototype.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Cubic_Logo",
              "@appinfo":"Defines a cube and permits any externally defined shapes to be drawn on the six faces",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"internalColor",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[0,0,0]
                    },
                    {
                      "@name":"frontFace",
                      "@accessType":"inputOutput",
                      "@type":"MFNode"
                    },
                    {
                      "@name":"backFace",
                      "@accessType":"inputOutput",
                      "@type":"MFNode"
                    },
                    {
                      "@name":"leftFace",
                      "@accessType":"inputOutput",
                      "@type":"MFNode"
                    },
                    {
                      "@name":"rightFace",
                      "@accessType":"inputOutput",
                      "@type":"MFNode"
                    },
                    {
                      "@name":"topFace",
                      "@accessType":"inputOutput",
                      "@type":"MFNode"
                    },
                    {
                      "@name":"bottomFace",
                      "@accessType":"inputOutput",
                      "@type":"MFNode"
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "Shape":
                            {
                              "@DEF":"Internal_Cube",
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"internalColor"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "Box":
                                  {
                                    "@size":[0.9,0.9,0.9]
                                  }
                                }
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"Front_Object",
                              "@translation":[0,0,0.45],
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"Front_Reorienter",
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"children",
                                            "@protoField":"frontFace"
                                          }
                                        ]
                                    }
                                  }
                                }
                              ]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"Bottom_Object",
                              "@rotation":[1,0,0,1.5708],
                              "@translation":[0,-0.45,0],
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"Bottom_Reorienter",
                                    "@rotation":[0,0,1,3.1416],
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"children",
                                            "@protoField":"bottomFace"
                                          }
                                        ]
                                    }
                                  }
                                }
                              ]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"Right_Object",
                              "@rotation":[0,1,0,1.5708],
                              "@translation":[0.45,0,0],
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"Right_Reorienter",
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"children",
                                            "@protoField":"rightFace"
                                          }
                                        ]
                                    }
                                  }
                                }
                              ]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"Left_Object",
                              "@rotation":[0,1,0,-1.5708],
                              "@translation":[-0.45,0,0],
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"Left_Reorienter",
                                    "@rotation":[0,0,1,1.5708],
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"children",
                                            "@protoField":"leftFace"
                                          }
                                        ]
                                    }
                                  }
                                }
                              ]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"Back_Object",
                              "@rotation":[0,1,0,3.1416],
                              "@translation":[0,0,-0.45],
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"Back_Reorienter",
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"children",
                                            "@protoField":"backFace"
                                          }
                                        ]
                                    }
                                  }
                                }
                              ]
                            }
                          },
                          { "Transform":
                            {
                              "@DEF":"Top_Object",
                              "@rotation":[1,0,0,-1.5708],
                              "@translation":[0,0.45,0],
                              "-children":[
                                { "Transform":
                                  {
                                    "@DEF":"Top_Reorienter",
                                    "@rotation":[0,0,1,3.1416],
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"children",
                                            "@protoField":"topFace"
                                          }
                                        ]
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          { "Anchor":
            {
              "@description":"Select text to view example model",
              "@url":["VirtualRealityHackathonLogoLetterPrototypes.x3d","https://www.web3d.org/x3d/content/examples/Basic/Web3dOutreach/VirtualRealityHackathonLogoLetterPrototypes.x3d","VirtualRealityHackathonLogoLetterPrototypes.wrl","https://www.web3d.org/x3d/content/examples/Basic/Web3dOutreach/VirtualRealityHackathonLogoLetterPrototypes.wrl"],
              "-children":[
                {
                  "#comment":"Selectable Text design pattern has transparent Box and Anchor description as a tooltip"
                },
                { "Group":
                  {
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Text":
                              {
                                "@string":["CubeLogoPrototype.x3d#Cubic_Logo","","prototype declaration is used by","","VirtualRealityHackathonLogoLetterPrototypes.x3d"],
                                "-fontStyle":
                                  { "FontStyle":
                                    {
                                      "@family":["SANS"],
                                      "@justify":["MIDDLE","MIDDLE"],
                                      "@size":0.4,
                                      "@style":"BOLD"
                                    }
                                  }
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.9,0.9,0.9]
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "Shape":
                        {
                          "-geometry":
                            { "Box":
                              {
                                "@size":[12,2.5,0.001]
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.6,0.6,0.9],
                                      "@transparency":0.8
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}