{ "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":"LogoLetterPrototypes.x3d"
          },
          {
            "@name":"description",
            "@content":"This model contains prototype definitions for individual letters designed to be drawn on an exterior face of another shape. A typical example of usage is on the faces of a cube as a logo."
          },
          {
            "@name":"creator",
            "@content":"Roy Walmsley"
          },
          {
            "@name":"created",
            "@content":"18 March 2017"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"TODO",
            "@content":"add more letters!"
          },
          {
            "@name":"reference",
            "@content":"CubeLogoPrototype.x3d"
          },
          {
            "@name":"reference",
            "@content":"VirtualRealityHackathonLogo.x3d"
          },
          {
            "@name":"reference",
            "@content":"VirtualRealityHackathonLogoLetterPrototypes.x3d"
          },
          {
            "@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/LogoLetterPrototypes.x3d"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"20 April 2026"
          },
          {
            "@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":[
          {
            "#comment":"Dimensions are 0.9 x 0.9"
          },
          { "WorldInfo":
            {
              "@title":"LogoLetterPrototypes.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Logo_letter_H",
              "@appinfo":"The letter 'H' for display on a 3D logo",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"front_colour",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[1,0,0]
                    },
                    {
                      "@name":"sides_colour",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[1,0.5,0.5]
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"front_colour"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "IndexedFaceSet":
                                  {
                                    "@coordIndex":[0,1,2,11,-1,3,4,9,10,-1,8,5,6,7,-1],
                                    "-coord":
                                      { "Coordinate":
                                        {
                                          "@DEF":"Letter_H_Coords",
                                          "@point":[-0.45,0.45,0.05,-0.45,-0.45,0.05,-0.25,-0.45,0.05,-0.25,-0.1,0.05,0.25,-0.1,0.05,0.25,-0.45,0.05,0.45,-0.45,0.05,0.45,0.45,0.05,0.25,0.45,0.05,0.25,0.1,0.05,-0.25,0.1,0.05,-0.25,0.45,0.05,-0.45,0.45,0,-0.45,-0.45,0,-0.25,-0.45,0,-0.25,-0.1,0,0.25,-0.1,0,0.25,-0.45,0,0.45,-0.45,0,0.45,0.45,0,0.25,0.45,0,0.25,0.1,0,-0.25,0.1,0,-0.25,0.45,0]
                                        }
                                      }
                                  }
                                }
                            }
                          },
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"sides_colour"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "IndexedFaceSet":
                                  {
                                    "@coordIndex":[0,12,13,1,-1,1,13,14,2,-1,2,14,15,3,-1,3,15,16,4,-1,4,16,17,5,-1,5,17,18,6,-1,6,18,19,7,-1,7,19,20,8,-1,8,20,21,9,-1,9,21,22,10,-1,10,22,23,11,-1,11,23,12,0,-1],
                                    "-coord":
                                      { "Coordinate":
                                        {
                                          "@USE":"Letter_H_Coords"
                                        }
                                      }
                                  }
                                }
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Logo_letter_R",
              "@appinfo":"The letter 'R' for display on a 3D logo",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"front_colour",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[1,0,0]
                    },
                    {
                      "@name":"sides_colour",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[1,0.5,0.5]
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"front_colour"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "IndexedFaceSet":
                                  {
                                    "@coordIndex":[0,1,2,12,-1,13,17,11,12,-1,17,16,10,11,-1,10,16,9,-1,9,16,15,8,-1,14,7,8,15,-1,3,4,5,6,-1],
                                    "-coord":
                                      { "Coordinate":
                                        {
                                          "@DEF":"Letter_R_Coords",
                                          "@point":[-0.45,0.45,0.05,-0.45,-0.45,0.05,-0.25,-0.45,0.05,-0.05,-0.10,0.05,0.15,-0.45,0.05,0.40,-0.45,0.05,0.2,-0.10,0.05,-0.25,-0.10,0.05,0.35,-0.10,0.05,0.45,0,0.05,0.45,0.35,0.05,0.35,0.45,0.05,-0.25,0.45,0.05,-0.25,0.25,0.05,-0.25,0.10,0.05,0.2,0.10,0.05,0.25,0.175,0.05,0.2,0.25,0.05,-0.45,0.45,0,-0.45,-0.45,0,-0.25,-0.45,0,-0.05,-0.10,0,0.15,-0.45,0,0.40,-0.45,0,0.2,-0.10,0,-0.25,-0.10,0,0.35,-0.10,0,0.45,0,0,0.45,0.35,0,0.35,0.45,0,-0.25,0.45,0,-0.25,0.25,0,-0.25,0.10,0,0.2,0.10,0,0.25,0.175,0,0.2,0.25,0]
                                        }
                                      }
                                  }
                                }
                            }
                          },
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"sides_colour"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "IndexedFaceSet":
                                  {
                                    "@coordIndex":[0,18,19,1,-1,1,19,20,2,-1,2,20,25,7,-1,7,25,21,3,-1,3,21,22,4,-1,4,22,23,5,-1,5,23,24,6,-1,6,24,26,8,-1,8,26,27,9,-1,9,27,28,10,-1,10,28,29,11,-1,11,29,18,0,-1,14,32,31,13,-1,15,33,32,14,-1,16,34,33,15,-1,17,35,34,16,-1,13,31,35,17,-1],
                                    "-coord":
                                      { "Coordinate":
                                        {
                                          "@USE":"Letter_R_Coords"
                                        }
                                      }
                                  }
                                }
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoDeclare":
            {
              "@name":"Logo_letter_V",
              "@appinfo":"The letter 'V' for display on a 3D logo",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"front_colour",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[1,0,0]
                    },
                    {
                      "@name":"sides_colour",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[1,0.5,0.5]
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Group":
                      {
                        "-children":[
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"front_colour"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "IndexedFaceSet":
                                  {
                                    "@coordIndex":[0,1,2,3,-1,4,1,2,5,-1],
                                    "-coord":
                                      { "Coordinate":
                                        {
                                          "@DEF":"Letter_V_Coords",
                                          "@point":[-0.45,0.45,0.05,-0.1,-0.45,0.05,0.1,-0.45,0.05,-0.25,0.45,0.05,0.25,0.45,0.05,0.45,0.45,0.05,-0.45,0.45,0,-0.1,-0.45,0,0.1,-0.45,0,-0.25,0.45,0,0.25,0.45,0,0.45,0.45,0,0,-0.1929,0.05,0,-0.1929,0]
                                        }
                                      }
                                  }
                                }
                            }
                          },
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"sides_colour"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "IndexedFaceSet":
                                  {
                                    "@coordIndex":[7,1,0,6,-1,6,0,3,9,-1,1,7,8,2,-1,2,8,11,5,-1,10,4,5,11,-1,13,12,4,10,-1,9,3,12,13,-1],
                                    "-coord":
                                      { "Coordinate":
                                        {
                                          "@USE":"Letter_V_Coords"
                                        }
                                      }
                                  }
                                }
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          { "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":["LogoLetterPrototypes.x3d","prototype declarations are 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":[11,2.5,0.001]
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.6,0.6,0.9],
                                      "@transparency":0.8
                                    }
                                  }
                              }
                            }
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}