{ "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":"CoordinateAxesNSEW.x3d"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman and Byounghyun Yoo"
          },
          {
            "@name":"created",
            "@content":"14 July 2000"
          },
          {
            "@name":"modified",
            "@content":"2 March 2026"
          },
          {
            "@name":"description",
            "@content":"X Y Z axis arrows and labels in X3D coordinate system. See CoordinateAxesExample for use as an Inline coordinate-system reference frame."
          },
          {
            "@name":"Image",
            "@content":"CoordinateAxesNSEW.png"
          },
          {
            "@name":"Image",
            "@content":"CoordinateAxesNSEW.WhiteBackground.png"
          },
          {
            "@name":"reference",
            "@content":"CoordinateAxes.x3d"
          },
          {
            "@name":"reference",
            "@content":"CoordinateAxesInlineExample.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxesNSEW.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxesNSEW.x3d"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxesNSEW.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/specifications/ISO-IEC-FDIS-19775-1.2-X3D-AbstractSpecification/Part01/components/geodata.html#GeoLocation"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 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":[
          { "WorldInfo":
            {
              "@title":"CoordinateAxesNSEW.x3d"
            }
          },
          { "Collision":
            {
              "@DEF":"DoNotCollideWithVisualizationWidget",
              "@enabled":false,
              "-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"
                },
                {
                  "#comment":"From X3D Abstract Specification Section 25.3.3 GeoLocation: \"In addition to placing a X3D model at the correct geospatial location, the GeoLocation node will also adjust the orientation of the model appropriately. The standard X3D coordinate system specifies that the +Y axis = up, +Z = out of the screen, and +X = towards the right. The GeoLocation node will set the orientation so that the +Y axis is the up direction for that local area (the normal to the tangent plane on the ellipsoid), -Z points towards the north pole, and +X is east.\""
                },
                { "Group":
                  {
                    "-children":[
                      {
                        "#comment":"Vertical Y arrow and label"
                      },
                      { "Group":
                        {
                          "@DEF":"ArrowGreen",
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Cylinder":
                                    {
                                      "@DEF":"ArrowCylinder",
                                      "@bottom":false,
                                      "@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.08,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":["+Y","Up"],
                                            "-fontStyle":
                                              { "FontStyle":
                                                {
                                                  "@DEF":"LABEL_FONT_TOP",
                                                  "@family":["SANS"],
                                                  "@justify":["MIDDLE","END"],
                                                  "@size":0.2
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,-1.08,0],
                          "-children":[
                            { "Billboard":
                              {
                                "-children":[
                                  { "Shape":
                                    {
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "@USE":"LABEL_APPEARANCE"
                                          }
                                        },
                                      "-geometry":
                                        { "Text":
                                          {
                                            "@string":["-Y","Down"],
                                            "-fontStyle":
                                              { "FontStyle":
                                                {
                                                  "@USE":"LABEL_FONT_TOP"
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "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.072,1.1,0],
                                "-children":[
                                  {
                                    "#comment":"note label rotated back to original coordinate frame"
                                  },
                                  { "Billboard":
                                    {
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"LABEL_APPEARANCE"
                                                }
                                              },
                                            "-geometry":
                                              { "Text":
                                                {
                                                  "@string":["+X","East"],
                                                  "-fontStyle":
                                                    { "FontStyle":
                                                      {
                                                        "@DEF":"LABEL_FONT",
                                                        "@family":["SANS"],
                                                        "@justify":["MIDDLE","MIDDLE"],
                                                        "@size":0.2
                                                      }
                                                    }
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            { "Transform":
                              {
                                "@rotation":[0,0,1,1.57079],
                                "@translation":[0.072,-1.1,0],
                                "-children":[
                                  {
                                    "#comment":"note label rotated back to original coordinate frame"
                                  },
                                  { "Billboard":
                                    {
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"LABEL_APPEARANCE"
                                                }
                                              },
                                            "-geometry":
                                              { "Text":
                                                {
                                                  "@string":["-X","West"],
                                                  "-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.072],
                                "-children":[
                                  {
                                    "#comment":"note label rotated back to original coordinate frame"
                                  },
                                  { "Billboard":
                                    {
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"LABEL_APPEARANCE"
                                                }
                                              },
                                            "-geometry":
                                              { "Text":
                                                {
                                                  "@string":["+Z","South"],
                                                  "-fontStyle":
                                                    { "FontStyle":
                                                      {
                                                        "@USE":"LABEL_FONT"
                                                      }
                                                    }
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            { "Transform":
                              {
                                "@rotation":[1,0,0,-1.57079],
                                "@translation":[0,-1.1,0.072],
                                "-children":[
                                  {
                                    "#comment":"note label rotated back to original coordinate frame"
                                  },
                                  { "Billboard":
                                    {
                                      "-children":[
                                        { "Shape":
                                          {
                                            "-appearance":
                                              { "Appearance":
                                                {
                                                  "@USE":"LABEL_APPEARANCE"
                                                }
                                              },
                                            "-geometry":
                                              { "Text":
                                                {
                                                  "@string":["-Z","North"],
                                                  "-fontStyle":
                                                    { "FontStyle":
                                                      {
                                                        "@USE":"LABEL_FONT"
                                                      }
                                                    }
                                                }
                                              }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
    }
  }
}