#X3D V3.0 utf8 PROFILE Immersive # [X3D] version=3.0 # [X3D] noNamespaceSchemaLocation=https://www.web3d.org/specifications/x3d-3.0.xsd # X3D-to-ClassicVRML XSL translation autogenerated by X3dToClassicVrmlEncoding.xslt and X3dToVrml97.xslt # https://www.web3d.org/x3d/content/X3dToClassicVrmlEncoding.xslt # https://www.web3d.org/x3d/content/X3dToVrml97.xslt # Transformation using XSLT processor: Saxonica # head META "title" "Basin.x3d" META "description" "A basin for the kitchen." META "creator" "Baris Aktop" META "created" "8 September 2002" META "modified" "20 October 2019" META "identifier" "https://savage.nps.edu/Savage/Buildings/HouseBarisAktop/Basin.x3d" META "generator" "X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit" META "license" "../../license.html" # [Scene] ========== ========== ========== WorldInfo { title "Basin.x3d" } Group { children [ Transform { scale 0.5 0.5 0.5 children [ Transform { children [ Shape { geometry Extrusion { creaseAngle 3.14 crossSection [ -1 0.9 -0.95 0.95 -0.9 1 0.9 1 0.95 0.95 1 0.9 1 -0.9 0.95 -0.95 0.9 -1 -0.9 -1 -0.95 -0.95 -1 -0.9 -1 0.9 ] endCap FALSE scale [ 1 1 1.05 1.05 1.1 1.1 1.15 1.15 1.2 1.2 1.25 1.25 1.35 1.35 1.5 1.5 ] solid FALSE spine [ 0 0 0 0 0.05 0 0 0.1 0 0 0.15 0 0 0.2 0 0 0.8 0 0 0.85 0 0 0.9 0 ] } appearance DEF basin Appearance { material Material { diffuseColor 0.9 0.9 0.9 shininess 0.8 } } } ] } Transform { translation 0 -0.02 0 children [ Shape { geometry Cylinder { height 0.05 radius 0.15 } appearance Appearance { material Material { diffuseColor 0.3 0.3 0.3 } } } ] } Transform { rotation 0 1 0 1.57 translation 0 0.015 0 children [ Shape { geometry Box { size 0.03 0.03 0.3 } appearance USE basin } ] } Transform { translation 0 0.015 0 children [ Shape { geometry Box { size 0.03 0.03 0.3 } appearance USE basin } ] } ] } ] } Group { children [ Transform { translation 0 0.25 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.8 0.6 0 } texture DEF wood ImageTexture { url [ "wood.jpg" "https://savage.nps.edu/Savage/Buildings/HouseBarisAktop/wood.jpg" ] } } geometry Extrusion { convex FALSE crossSection [ 0.75 -0.7 0.725 -0.725 0.7 -0.75 -0.7 -0.75 -0.725 -0.725 -0.75 -0.7 -0.75 0.7 -0.725 0.725 -0.7 0.75 0.7 0.75 0.725 0.725 0.75 0.7 0.75 -0.695 1.5 -1 1.5 1 -1.5 1 -1.5 -1 1.495 -1 0.75 -0.7 ] solid FALSE spine [ 0 0 0 0 0.2 0 ] } } ] } ] } Group { children [ Transform { translation 0 0.4 -0.7 children [ Shape { appearance USE basin geometry Extrusion { creaseAngle 3.14 crossSection [ -0.25 -0.05 0.25 -0.05 0.25 0.05 -0.25 0.05 -0.25 -0.05 ] scale [ 1 1 1 1 0.9 0.9 0.8 0.8 ] solid FALSE spine [ 0 0 0 0 0.03 0 0 0.04 0 0 0.05 0 ] } } DEF fountaintrans Transform { rotation 1 0 0 0.5 scale 0.05 0.05 0.05 translation 0 0.03 0 children [ Shape { geometry Extrusion { creaseAngle 3.14 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 spine [ 0 0 0 0 5 0 0 6.76 0.16 0 7.42 0.58 0 7.84 1.24 0 8 2 0 7.84 2.76 0 7.42 3.42 0 6.76 3.84 ] } appearance DEF fountainapp Appearance { material Material { diffuseColor 0.95 0.95 0.95 shininess 1 } } } DEF fountain SphereSensor { description "click and drag to rotate" } ] ROUTE fountain.rotation_changed TO fountaintrans.set_rotation } Transform { translation -0.15 0.05 0 children [ Shape { geometry DEF open Sphere { radius 0.05 } appearance USE fountainapp } Sound { maxBack 30 maxFront 30 minBack 10 minFront 10 source DEF waterflow AudioClip { description "water flow" loop TRUE startTime -1 url [ "waterflow.wav" "https://savage.nps.edu/Savage/Buildings/HouseBarisAktop/waterflow.wav" ] } } DEF water TouchSensor { description "touch to start water sound" } ] ROUTE water.touchTime TO waterflow.set_startTime } Transform { translation 0.15 0.05 0 children [ Shape { geometry USE open appearance USE fountainapp } DEF nowater TouchSensor { description "touch to silence water sound" } ] ROUTE nowater.touchTime TO waterflow.set_stopTime } ] } ] }