{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interactive",
    "@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":"StripedSurfPerchPlaque.x3d"
          },
          {
            "@name":"creator",
            "@content":"Michael Collins"
          },
          {
            "@name":"created",
            "@content":"18 February 2001"
          },
          {
            "@name":"modified",
            "@content":"29 November 2025"
          },
          {
            "@name":"warning",
            "@content":"under development"
          },
          {
            "@name":"description",
            "@content":"One fish plaque with lithograph on one side and actual picture on the back. Click on plaque to go to picture or click on buttons to change picture."
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPlaque.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"generator",
            "@content":"Sunrize, https://create3000.github.io/sunrize"
          },
          {
            "@name":"Image",
            "@content":"StripedSurfPerchPatch.jpg"
          },
          {
            "@name":"Image",
            "@content":"RainbowSurfPerch002.jpg"
          },
          {
            "@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":"StripedSurfPerchPlaque.x3d"
            }
          },
          { "Viewpoint":
            {
              "@DEF":"stripedsurfperch",
              "@description":"Striped Surf Perch",
              "@position":[0,0,6]
            }
          },
          {
            "#comment":"Fish Plaques"
          },
          { "Group":
            {
              "-children":[
                { "TouchSensor":
                  {
                    "@DEF":"BlueRockfishTouchSensor",
                    "@description":"touch to rotate"
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"BLUEROCKFISHCLOCK",
                    "@cycleInterval":2
                  }
                },
                { "OrientationInterpolator":
                  {
                    "@DEF":"BlueRockfishPathInterpolator",
                    "@key":[0.0,0.50,1.0],
                    "@keyValue":[0.0,1.0,0.0,0.0,0.0,1.0,0.0,1.57,0.0,1.0,0.0,3.14]
                  }
                },
                { "Transform":
                  {
                    "@DEF":"BLUEROCKFISH_TRANSFORM",
                    "-children":[
                      { "Shape":
                        {
                          "-geometry":
                            { "Box":
                              {
                                "@size":[4,2,0.1]
                              }
                            },
                          "-appearance":
                            { "Appearance":
                              {
                                "-texture":
                                  { "ImageTexture":
                                    {
                                      "@url":["StripedSurfPerchPatch.jpg","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/StripedSurfPerchPatch.jpg"]
                                    }
                                  }
                              }
                            }
                        }
                      },
                      { "Transform":
                        {
                          "@translation":[0,0,-0.1],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[4,2,0.2]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-texture":
                                        { "ImageTexture":
                                          {
                                            "@url":["RainbowSurfPerch002.jpg","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/RainbowSurfPerch002.jpg"]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Group":
                  {
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"BUTTON_TRANSFORM",
                          "@translation":[1,2,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Sphere":
                                    {
                                      "@radius":0.5
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0,1,0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"FrontTouchSensor",
                          "@description":"front TouchSensor"
                        }
                      },
                      { "TimeSensor":
                        {
                          "@DEF":"FRONTTOUCHSENSORCLOCK",
                          "@cycleInterval":2
                        }
                      },
                      { "OrientationInterpolator":
                        {
                          "@DEF":"PlaqueToPictureInterpolator",
                          "@key":[0.0,0.50,1.0],
                          "@keyValue":[0.0,1.0,0.0,3.14,0.0,1.0,0.0,1.57,0.0,1.0,0.0,0.00]
                        }
                      }
                    ]
                  }
                },
                { "Group":
                  {
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"BUTTON_TRANSFORM2",
                          "@translation":[-1,2,0],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Sphere":
                                    {
                                      "@radius":0.5
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[1,0,0]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"PictureTouchSensor",
                          "@description":"picture TouchSensor"
                        }
                      }
                    ]
                  }
                },
                { "Group":
                  {
                    "-children":[
                      { "Transform":
                        {
                          "@DEF":"BASE_TRANSFORM",
                          "@translation":[0,0,-0.3],
                          "-children":[
                            { "Shape":
                              {
                                "-geometry":
                                  { "Box":
                                    {
                                      "@size":[8,6,0.3]
                                    }
                                  },
                                "-appearance":
                                  { "Appearance":
                                    {
                                      "-material":
                                        { "Material":
                                          {
                                            "@diffuseColor":[0.3,0.3,0.6]
                                          }
                                        }
                                    }
                                  }
                              }
                            }
                          ]
                        }
                      },
                      { "TouchSensor":
                        {
                          "@DEF":"BaseTouchSensor",
                          "@description":"select to rotate"
                        }
                      },
                      { "Group":
                        {
                          "-children":[
                            { "Transform":
                              {
                                "@translation":[0,-2.6,0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-geometry":
                                        { "Box":
                                          {
                                            "@size":[8,1,1]
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                  "@diffuseColor":[0.8,0.8,0.2]
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "-children":[
                            { "Transform":
                              {
                                "@translation":[0,2.6,0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-geometry":
                                        { "Box":
                                          {
                                            "@size":[8,1,1]
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                  "@diffuseColor":[0.8,0.8,0.2]
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "-children":[
                            { "Transform":
                              {
                                "@rotation":[0,0,1,1.58],
                                "@translation":[3.6,0,0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-geometry":
                                        { "Box":
                                          {
                                            "@size":[6.2,1,1]
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                  "@diffuseColor":[0.8,0.8,0.2]
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      { "Group":
                        {
                          "-children":[
                            { "Transform":
                              {
                                "@rotation":[0,0,1,1.58],
                                "@translation":[-3.6,0,0],
                                "-children":[
                                  { "Shape":
                                    {
                                      "-geometry":
                                        { "Box":
                                          {
                                            "@size":[6.2,1,1]
                                          }
                                        },
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                  "@diffuseColor":[0.8,0.8,0.2]
                                                }
                                              }
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"BlueRockfishTouchSensor",
              "@toField":"set_startTime",
              "@toNode":"BLUEROCKFISHCLOCK"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"BLUEROCKFISHCLOCK",
              "@toField":"set_fraction",
              "@toNode":"BlueRockfishPathInterpolator"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"BlueRockfishPathInterpolator",
              "@toField":"set_rotation",
              "@toNode":"BLUEROCKFISH_TRANSFORM"
            }
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"FrontTouchSensor",
              "@toField":"set_startTime",
              "@toNode":"FRONTTOUCHSENSORCLOCK"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"FRONTTOUCHSENSORCLOCK",
              "@toField":"set_fraction",
              "@toNode":"PlaqueToPictureInterpolator"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"PlaqueToPictureInterpolator",
              "@toField":"set_rotation",
              "@toNode":"BLUEROCKFISH_TRANSFORM"
            }
          },
          {
            "#comment":"Picture touch sensor only has to tie into the BLUEROCKFISHCLOCK so that it will turn picture."
          },
          { "ROUTE":
            {
              "@fromField":"touchTime",
              "@fromNode":"PictureTouchSensor",
              "@toField":"set_startTime",
              "@toNode":"BLUEROCKFISHCLOCK"
            }
          }
        ]
    }
  }
}