{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure16.3ColoredLinesStarburst.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 16.3, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch16/16fig03.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"25 August 2000"
          },
          {
            "@name":"modified",
            "@content":"10 January 2015"
          },
          {
            "@name":"description",
            "@content":"A star burst of lines colored using colors from a Color node, select second viewpoint for animation."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter16-Color/Figure16.3ColoredLinesStarburst.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "Viewpoint":
            {
              "@description":"Starburst lines",
              "@position":[0,0,4]
            }
          },
          { "Transform":
            {
              "@DEF":"SPINNING_VIEWPOINT_PARENT_TRANSFORM",
              "-children":[
                { "Viewpoint":
                  {
                    "@description":"Spinning viewpoint",
                    "@position":[0,0,4]
                  }
                }
              ]
            }
          },
          { "Group":
            {
              "-children":[
                { "Shape":
                  {
                    "@DEF":"Burst",
                    "-children":[
                      {
                        "#comment":"no Appearance nodee, use emissive coloring of Color node colors instead"
                      },
                      {
                        "#comment":"note that original VRML Sourcebook example used 0 instead of -1 values for colorIndex sentinels"
                      }
                    ],
                    "-geometry":
                      { "IndexedLineSet":
                        {
                          "@colorIndex":[0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1,0,1,-1],
                          "@coordIndex":[0,1,-1,0,2,-1,0,3,-1,0,4,-1,0,5,-1,0,6,-1,0,7,-1,0,8,-1,0,9,-1,0,10,-1,0,11,-1,0,12,-1,0,13,-1,0,14,-1,0,15,-1,0,16,-1],
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[0.00,0.00,0.00,1.00,0.00,0.00,0.92,0.38,0.00,0.71,0.71,0.00,0.38,0.92,0.00,0.00,1.00,0.00,-0.38,0.92,0.00,-0.71,0.71,0.00,-0.92,0.38,0.00,-1.00,0.00,0.00,-0.92,-0.38,0.00,-0.71,-0.71,0.00,-0.38,-0.92,0.00,0.00,-1.00,0.00,0.38,-0.92,0.00,0.71,-0.71,0.00,0.92,-0.38,0.00]
                              }
                            },
                          "-color":
                            { "Color":
                              {
                                "@color":[1,1,0,1,0.3,0.3]
                              }
                            }
                        }
                      }
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,0.785],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Burst"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,1.571],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Burst"
                        }
                      }
                    ]
                  }
                },
                { "Transform":
                  {
                    "@rotation":[0,1,0,2.355],
                    "-children":[
                      { "Shape":
                        {
                          "@USE":"Burst"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"TIMER",
              "@cycleInterval":4,
              "@loop":true
            }
          },
          {
            "#comment":"Note direction of rotation is negative, since we are rotating the position of a Viewpoint looking down the default -Z axis"
          },
          { "OrientationInterpolator":
            {
              "@DEF":"SPINNER",
              "@key":[0,0.5,1],
              "@keyValue":[0,1,0,0,0,1,0,-3.1416,0,1,0,-6.2832]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"TIMER",
              "@toField":"set_fraction",
              "@toNode":"SPINNER"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"SPINNER",
              "@toField":"set_rotation",
              "@toNode":"SPINNING_VIEWPOINT_PARENT_TRANSFORM"
            }
          }
        ]
    }
  }
}