<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersive' version='3.0' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  <head>
    <meta content='Bell.x3d' name='title'/>
    <meta content='This file draws the Bell with sound effect.' name='description'/>
    <meta content='Kok Keng Ng' name='creator'/>
    <meta content='20 September 2002' name='created'/>
    <meta content='20 October 2019' name='modified'/>
    <meta content='https://www.web3d.org/x3d/content/examples/Savage/Buildings/PlayGround/Bell.x3d' name='identifier'/>
    <meta content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' name='generator'/>
    <meta content='../../license.html' name='license'/>
  </head>
  <Scene>
    <WorldInfo title='Bell.x3d'/>
    <Viewpoint description='BellFront' position='0 -1.2 7'/>
    <Group>
      <PointLight intensity='0.2' location='3 3 3'/>
      <Transform DEF='BELLTx' rotation='1 0 0 0.001'>
        <Group DEF='BELL'>
          <Transform rotation='1 0 0 3.1415' scale='0.5 0.5 0.5'>
            <Shape>
              <Extrusion creaseAngle='1.57' crossSection='1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1 -0 -0.92 0.38 -0.71 0.71 -0.38 0.92 0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0' endCap='false' scale='.00001 .00001 0.8 0.8 1.0 1.0 1.1 1.1 1.15 1.15 1.15 1.15 1.2 1.2 1.45 1.45 1.8 1.8 1.85 1.85 1.87 1.87 1.8 1.8 1.67 1.67 1.65 1.65 1.6 1.6 1.25 1.25 1.0 1.0 .95 0.95 .95 .95 .9 .9 0.8 0.8 0.00001 0.00001' solid='false' spine='0 0.0 0 0 0.2 0 0 0.4 0 0 0.8 0 0 1.2 0 0 1.6 0 0 2.0 0 0 2.4 0 0 2.8 0 0 3.2 0 0 3.3 0 0 3.32 0 0 3.3 0 0 3.2 0 0 2.8 0 0 2.4 0 0 2.0 0 0 1.6 0 0 1.2 0 0 0.8 0 0 0.4 0 0 0.2 0'/>
              <Appearance DEF='GoldApp'>
                <Material ambientIntensity='0.4' diffuseColor='0.22 0.15 0' shininess='0.16' specularColor='0.71 0.70 0.56'/>
              </Appearance>
            </Shape>
          </Transform>
          <TimeSensor DEF='BELLTimeS' cycleInterval='4'/>
          <TimeSensor DEF='BELLTimeS1' cycleInterval='2'/>
          <TouchSensor DEF='BELLTouchS'/>
          <OrientationInterpolator DEF='BELLInterpolator' key='0.0 0.15 0.7 1.0' keyValue='0 0.0 1 0.0 .0 0.0 1 0.475 .0 0.0 1 -0.475 .0 0.0 1 0'/>
          <Transform>
            <Transform>
              <Shape>
                <Cylinder height='0.15' radius='0.08'/>
                <Appearance USE='GoldApp'/>
              </Shape>
            </Transform>
          </Transform>
        </Group>
      </Transform>
      <Transform>
        <Group DEF='BELLBall'>
          <Transform translation='0 -0.9 0'>
            <Shape>
              <Appearance USE='GoldApp'/>
              <Cylinder height='1.7' radius='0.02'/>
            </Shape>
          </Transform>
          <Transform translation='0 -1.8 0'>
            <Shape>
              <Appearance USE='GoldApp'/>
              <Sphere radius='.1'/>
            </Shape>
          </Transform>
        </Group>
      </Transform>
      <Transform>
        <Group>
          <Transform>
            <Transform translation='-2 -1.5 0'>
              <Shape DEF='BELLBeam'>
                <Box size='0.4 4 0.4'/>
                <Appearance DEF='WoodApp'>
                  <Material diffuseColor='0.8 0.5 0.1'/>
                  <ImageTexture url='"wood.jpg" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/PlayGround/wood.jpg"'/>
                </Appearance>
              </Shape>
            </Transform>
            <Transform translation='2 -1.5 0'>
              <Shape USE='BELLBeam'/>
            </Transform>
            <Transform translation='0 0.3 0'>
              <Shape>
                <Box size='3.6 0.4 0.4'/>
                <Appearance USE='WoodApp'/>
              </Shape>
            </Transform>
          </Transform>
        </Group>
      </Transform>
      <Sound DEF='BELLSound' direction='1 1 1' maxBack='65' maxFront='65' minBack='60' minFront='60'>
        <AudioClip DEF='BELLClip' url='"Dong.wav" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/PlayGround/Dong.wav"'/>
      </Sound>
      <ROUTE fromField='touchTime' fromNode='BELLTouchS' toField='set_startTime' toNode='BELLTimeS'/>
      <ROUTE fromField='fraction_changed' fromNode='BELLTimeS' toField='set_fraction' toNode='BELLInterpolator'/>
      <ROUTE fromField='value_changed' fromNode='BELLInterpolator' toField='set_rotation' toNode='BELLTx'/>
      <ROUTE fromField='touchTime' fromNode='BELLTouchS' toField='set_startTime' toNode='BELLClip'/>
    </Group>
    <Background skyColor='0.15 0.15 0.8'/>
  </Scene>
</X3D>