{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"CoordinateAxesX3dDIS.x3d"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"14 July 2000"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"description",
            "@content":"X Y Z axis arrows and labels in X3D and DIS coordinate systems. See CoordinateAxesExample for use as an Inline coordinate-system reference frame."
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://savage.nps.edu/Savage/Tools/Authoring/CoordinateAxes.x3d"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/CoordinateAxesX3dDIS.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@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":"Invoke CoordinateAxes in other scenes as an Inline child inside a scaling Transform node, at the topmost level of the scene graph."
          },
          {
            "#comment":"This NavigationInfo allows examine mode and will be overridden by any parent scene."
          },
          {
            "#comment":"Each arrow goes from +1m to -1m to allow linear scaling to fit a scene"
          },
          {
            "#comment":"Note each label rotates about the scene's vertical Y axis for consistency, enabling local orientation by user"
          },
          { "WorldInfo":
            {
              "@title":"CoordinateAxesX3dDIS.x3d"
            }
          },
          { "Group":
            {
              "-children":[
                {
                  "#comment":"Vertical Y arrow and label"
                },
                { "Group":
                  {
                    "@DEF":"ArrowGreen",
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Cylinder":
                              {
                                "@DEF":"ArrowCylinder",
                                "@radius":0.025,
                                "@top":false
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "@DEF":"Green",
                                "-material":
                                  { "Material":
                                    {
                                      "@diffuseColor":[0.1,0.6,0.1],
                                      "@emissiveColor":[0.05,0.2,0.05]
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,1,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cone":
                                    {
                                      "@DEF":"ArrowCone",
                                      "@bottomRadius":0.05,
                                      "@height":0.1
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@USE":"Green"
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@translation":[0,1.5,0],
                    "-children":[
                      { "Billboard":
                        {
                          "-children":[
                            { "Shape":
                              {
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"LABEL_APPEARANCE",
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1,1,0.3],
                                            "@emissiveColor":[0.33,0.33,0.1]
                                          }
                                        }
                                    }
                                  },
                                "-geometry":
                                  { "Text":
                                    {
                                      "@string":["Up","+Y X3D","-Z DIS"],
                                      "-fontStyle":
                                        { "FontStyle":
                                          {
                                            "@DEF":"LABEL_FONT",
                                            "@family":["SANS"],
                                            "@justify":["MIDDLE","MIDDLE"],
                                            "@size":0.2
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@rotation":[0,0,1,-1.57079],
              "-children":[
                {
                  "#comment":"Horizontal X arrow and label"
                },
                { "Group":
                  {
                    "-children":[
                      { "Group":
                        {
                          "@DEF":"ArrowRed",
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@USE":"ArrowCylinder"
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"Red",
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.7,0.1,0.1],
                                            "@emissiveColor":[0.33,0,0]
                                          }
                                        }
                                    }
                                  }
                              }
                            },
                            { "Transform":
                              {
                                "@translation":[0,1,0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-geometry":
                                        { "Cone":
                                          {
                                            "@USE":"ArrowCone"
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"Red"
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[0,0,1,1.57079],
                          "@translation":[-0.05,1.1,0],
                          "-children":[
                            {
                              "#comment":"note label rotated back to original coordinate frame"
                            },
                            { "Billboard":
                              {
                                "-children":[
                                  { "Shape":
                                    {
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"LABEL_APPEARANCE"
                                          }
                                        },
                                      "-geometry":
                                        { "Text":
                                          {
                                            "@string":["North","+X X3D","+X DIS"],
                                            "-fontStyle":
                                              { "FontStyle":
                                                {
                                                  "@USE":"LABEL_FONT"
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@rotation":[1,0,0,1.57079],
              "-children":[
                {
                  "#comment":"Perpendicular Z arrow and label, note right-hand rule"
                },
                { "Group":
                  {
                    "-children":[
                      { "Group":
                        {
                          "@DEF":"ArrowBlue",
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@USE":"ArrowCylinder"
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "@DEF":"Blue",
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.3,0.3,1],
                                            "@emissiveColor":[0.1,0.1,0.33]
                                          }
                                        }
                                    }
                                  }
                              }
                            },
                            { "Transform":
                              {
                                "@translation":[0,1,0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-geometry":
                                        { "Cone":
                                          {
                                            "@USE":"ArrowCone"
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"Blue"
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@rotation":[1,0,0,-1.57079],
                          "@translation":[0,1.1,-0.05],
                          "-children":[
                            {
                              "#comment":"note label rotated back to original coordinate frame"
                            },
                            { "Billboard":
                              {
                                "-children":[
                                  { "Shape":
                                    {
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"LABEL_APPEARANCE"
                                          }
                                        },
                                      "-geometry":
                                        { "Text":
                                          {
                                            "@string":["East","+Z X3D","+Y DIS"],
                                            "-fontStyle":
                                              { "FontStyle":
                                                {
                                                  "@USE":"LABEL_FONT"
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}