#VRML V2.0 utf8 NavigationInfo { type "EXAMINE" headlight TRUE } # --------------- # # SUPER GRONDVLAK # # --------------- # Transform { translation -30 0 -80 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Box { size 250 1 200 } } ] } # ----------- # # LAMPIE TEST # # ----------- # #Transform { # translation 39 30 -123 # children [ # Shape { # geometry Box { # size 1 1 1 # } # } # ] #} PROTO MegaSpot [ ] { Transform { translation 0 0 0 rotation 0 0 1 1.57 children [ DEF Behuizing Shape { appearance Appearance { material Material { diffuseColor 0.6 0.6 0.6 } } geometry Cylinder { height 2 radius 0.5 bottom FALSE top FALSE } } ] } SpotLight { direction -1 0 0 location 3 0 0 radius 5 color 0 0 1 } Transform { translation 1.5 0 0 rotation 0 0 1 1.57 scale 1 0.2 1 children [ USE Behuizing ] } Transform { # Bol behuizing translation -0.95 0 0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.6 0.6 0.6 } } geometry Sphere { radius 0.5 } } ] } Transform { # Bol lamp translation -0.9 0 0 children [ Shape { appearance Appearance { material Material { emissiveColor 0 0 1 shininess 1 } } geometry Sphere { radius 0.49 } } ] } Transform { translation 0.5 0 0.5 rotation 0 0 1 1.57 children [ DEF Buisje Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Cylinder { height 3 radius 0.04 } } ] } Transform { translation 0.5 0 -0.5 rotation 0 0 1 1.57 children [ USE Buisje ] } Transform { translation 0.5 0.5 0 rotation 0 0 1 1.57 children [ USE Buisje ] } Transform { translation 0.5 -0.5 0 rotation 0 0 1 1.57 children [ USE Buisje ] } Transform { translation 2.25 0 0.75 rotation 0 1 0 1 children [ DEF Klepje Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Box { size 0.02 0.9 0.9 } } ] } Transform { translation 2.25 0 -0.75 rotation 0 1 0 -1 children [ USE Klepje ] } Transform { translation 2.25 0.75 0 rotation 0 0 1 -1 children [ USE Klepje ] } Transform { translation 2.25 -0.75 0 rotation 0 0 1 1 children [ USE Klepje ] } Transform { # Maak het front glas aan translation 2 0 0 rotation 0 0 1 1.57 children [ Shape { appearance Appearance { material Material { transparency 0.7 specularColor 0 0 1 } } geometry Cylinder { height 0.05 radius 0.55 } } ] } DEF KnopLocatie Transform { # AAN/UIT Knop translation -1.45 0 0 children [ DEF Spot1 TouchSensor {} Shape { appearance Appearance { material Material { diffuseColor 0 0 1 } } geometry Box { size 0.1 0.2 0.1 } } ] } DEF KnopTimer TimeSensor { cycleInterval 0.2 loop FALSE } DEF KnopBeweging PositionInterpolator { key [ 0, 0.5, 1] keyValue [-1.45 0 0, -1.4 0 0, -1.45 0 0] } DEF SUPERLIGHT SpotLight { location 2 0 0 direction 1 0 0 radius 0 color 0 0 1 intensity 100 beamWidth 0.5 cutOffAngle 0.1 } DEF CONVERT Script { eventIn SFTime touchTijd1 eventOut SFFloat radiusOut1 field SFInt32 rad1 0 field MFFloat rads [0, 400] url "javascript: function touchTijd1 (value, time) { rad1 = (++rad1) % 2; radiusOut1 = rads [rad1]; } " } # ROUTE Spot1.isActive TO SUPERLIGHT.on # DIT WERKT ZONDER SCRIPT MET MUIS INGEDRUKT! ROUTE Spot1.touchTime TO CONVERT.touchTijd1 ROUTE CONVERT.radiusOut1 TO SUPERLIGHT.radius ROUTE Spot1.touchTime TO KnopTimer.startTime ROUTE KnopTimer.fraction_changed TO KnopBeweging.set_fraction ROUTE KnopBeweging.value_changed TO KnopLocatie.set_translation # Transform { # Projectiebol! # translation 15 0 0 # children [ # Shape { # appearance Appearance { # material Material { # } # } # geometry Sphere { # radius 4 # } # } # ] # } } PROTO LightBeam [ exposedField SFRotation rotation 0 0 1 0 ] { Transform { rotation IS rotation children [ MegaSpot {} ] } } PROTO Omgeving [ ] { # ------------ # # Lichtbronnen # # ------------ # Transform { # Spotlight op Hoofdingang rotation 0 1 0 -0.01 children [ SpotLight { attenuation 1 0 0 location 45 3 -145 radius 15 direction -1 0 0 intensity 1 } ] } Transform { # Spotlight op Pegasus Logo rotation 1 0 0 0.15 children [ SpotLight { attenuation 1 0 0 location 40 30 -123 radius 20 direction -1 0 0 intensity 0.8 } ] } # ---------------------------------- # # GEBOUWEN AAN DE METROPOLITAN-ZIJDE # # ---------------------------------- # # METROPOLITAN Transform { # Metropolitan translation 0 10 5 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Box { size 90 20 25 } } ] } Transform { # Verdieping voor de lampbesturing translation 0 15 5 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Box { size 86 1 24 } } ] } Transform { # Info translation -35 16 -1 rotation 0 1 0 -0.42 children [ Shape { appearance Appearance { material Material { emissiveColor 0.1 0.1 0.7 } } geometry Text { string "Het blauwe knopje zet de lampen aan. Tevens zijn de lampen roteerbaar." fontStyle FontStyle { size 0.25 justify "MIDDLE" } } } ] } Transform { # Metropolitan plateau translation 0 1 -11 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Box { size 90 2 7 } } ] } Transform { # Metropolitan dak van plateau translation 0 4 -11 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.8 0.8 } } geometry Box { size 90 0.2 7 } } ] } Transform { # Metropolitan dak translation 0 20.2 -10 rotation 1 0 0 0.15 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.8 0.8 } } geometry Box { size 90 0.2 5 } } ] } Transform { # SPOT 1 translation -40 18 -12 rotation 0 1 0 2.15 children [ DEF SENSOR1 SphereSensor { autoOffset TRUE } DEF TRAN1 Transform { children [ LightBeam {rotation 0 0 1 -0.21} ] } ] } Transform { # SPOT 2 translation -35 18 -12 rotation 0 1 0 1.97 children [ DEF SENSOR2 SphereSensor { autoOffset TRUE } DEF TRAN2 Transform { children [ LightBeam {rotation 0 0 1 -0.22} ] } ] } Transform { # SPOT 3 translation -12 18 -12 rotation 0 1 0 1.57 children [ DEF SENSOR3 SphereSensor { autoOffset TRUE } DEF TRAN3 Transform { children [ LightBeam {rotation 0 0 1 0.1} ] } ] } Transform { # SPOT 4 translation 30 18 -12 rotation 0 1 0 2.01 children [ DEF SENSOR4 SphereSensor { autoOffset TRUE } DEF TRAN4 Transform { children [ LightBeam {rotation 0 0 1 -0.2} ] } ] } Transform { # SPOT 5 translation 35 18 -12 rotation 0 1 0 1.7 children [ DEF SENSOR5 SphereSensor { autoOffset TRUE } DEF TRAN5 Transform { children [ LightBeam {rotation 0 0 1 -0.2} ] } ] } ROUTE SENSOR1.rotation_changed TO TRAN1.rotation ROUTE SENSOR2.rotation_changed TO TRAN2.rotation ROUTE SENSOR3.rotation_changed TO TRAN3.rotation ROUTE SENSOR4.rotation_changed TO TRAN4.rotation ROUTE SENSOR5.rotation_changed TO TRAN5.rotation Transform { # Text Metropolitan translation 0 10 -8.2 rotation 0 1 0 3.14 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.2 0.8 } } geometry Text { string "Metropolitan" fontStyle FontStyle { size 12 justify "MIDDLE" } } } ] } # FLATGEBOUW Transform { # Flat 1 translation -80 7.5 5 children [ DEF Flat Shape { appearance Appearance { material Material { diffuseColor 0.8 0.8 0.7 } } geometry Box { size 50 15 15 } } ] } Transform { # Text Flat 1 translation -80 5 -3.5 rotation 0 1 0 3.14 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.2 0.8 } } geometry Text { string "Flatgebouw" fontStyle FontStyle { size 8 justify "MIDDLE" } } } ] } # PARKEERPLAATS Transform { # Flat 1 translation 100 0.43 -140 children [ Shape { appearance Appearance { material Material { diffuseColor 0.8 0.8 0.7 } } geometry Box { size 15 0.1 60 } } ] } # ------------------------ # # GEBOUWEN AAN DE VU-ZIJDE # # ------------------------ # # VU DIENSTENKANTOOR Transform { # VU-Dienstenkantoor translation 5 5 -103.5 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Box { size 55 10 30 } } ] } Transform { # Text VU-Diensten translation 5 3.1 -88.3 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.2 0.8 } } geometry Text { string "VU-Dienstenkantoor" fontStyle FontStyle { size 6 justify "MIDDLE" } } } ] } Transform { # VU BOSJES translation 5 2.5 -88.2 children [ Shape { appearance Appearance { texture ImageTexture { url "textures/Bosjes.gif" } } geometry Box { size 40 6 0.01 } } ] } # VRIJE UNIVERSITEIT # ------------------------ # # Aanmaken van hoofdingang # # ------------------------ # Transform { # VU-Hoofdgebouw ingang translation 32 2.5 -145 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.7 0.7 } } geometry Box { size 9 4 30 } } ] } Transform { # VU-Hoofdgebouw ingang Text translation 36.75 1.25 -145 rotation 0 1 0 1.57 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.2 0.8 } } geometry Text { string "Hoofdingang" fontStyle FontStyle { size 4 justify "MIDDLE" } } } ] } Transform { # VU-Hoofdgebouw Front translation 20 30 -145 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.8 0.9 } } geometry Box { size 15 60 60 } } ] } # ------------------------------- # # Aanmaken van verdiepingen FRONT # # ------------------------------- # Transform { # VU-Hoofdgebouw Verdieping translation 27.5 10 -145 children [ DEF VerdiepingFront Shape { appearance Appearance { material Material { diffuseColor 0.9 0.8 0.8 } } geometry Box { size 0.75 0.5 60 } } ] } Transform { translation 27.5 15 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 20 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 25 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 30 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 35 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 40 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 45 -145 children [ USE VerdiepingFront ] } Transform { translation 27.5 50 -154 scale 1 1 0.7 children [ USE VerdiepingFront ] } Transform { translation 27.5 55 -154 scale 1 1 0.7 children [ USE VerdiepingFront ] } Transform { translation 27.5 60 -145 children [ USE VerdiepingFront ] } # -------------------- # # Aanmaken van VU LOGO # # -------------------- # Transform { # VU-Hoofdgebouw Pegasus Logo translation 27.5 52.5 -123 children [ Shape { appearance Appearance { material Material { transparency 0.6 } texture ImageTexture { url "textures/VUPegasus.jpg" } } geometry Box { size 0.75 11 11 } } ] } # --------------------------------- # # Aanmaken van verdiepingen ZIJKANT # # --------------------------------- # Transform { # VU-Hoofdgebouw Zijkant translation 19.85 10 -115 children [ DEF VerdiepingZij Shape { appearance Appearance { material Material { diffuseColor 0.9 0.8 0.8 } } geometry Box { size 16.2 0.5 0.75 } } ] } Transform { translation 19.85 15 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 20 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 25 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 30 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 35 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 40 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 45 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 50 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 55 -115 children [ USE VerdiepingZij ] } Transform { translation 19.85 60 -115 children [ USE VerdiepingZij ] } # ------------------------------------ # # Aanmaken van verdiepingen ACHTERKANT # # ------------------------------------ # Transform { translation 12.2 5 -125 children [ DEF VerdiepingAchter Shape { appearance Appearance { material Material { diffuseColor 0.9 0.8 0.8 } } geometry Box { size 0.75 0.5 20 } } ] } Transform { translation 12.2 10 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 15 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 20 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 25 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 30 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 35 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 40 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 45 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 50 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 55 -125 children [ USE VerdiepingAchter ] } Transform { translation 12.2 60 -125 children [ USE VerdiepingAchter ] } Transform { # VU-Hoofdgebouw Back translation -10 30 -145 children [ Shape { appearance Appearance { material Material { diffuseColor 0.7 0.8 0.9 } } geometry Box { size 60 60 20 } } ] } Transform { # Text VU translation -15 25 -133.8 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.2 0.8 } } geometry Text { string "VU" fontStyle FontStyle { size 25 justify "MIDDLE" } } } ] } # ------------------------- # # Aanmaken van verdiepingen # # ------------------------- # Transform { # VU-Hoofdgebouw Verdieping translation -10 5 -134.5 children [ DEF VerdiepingBack Shape { appearance Appearance { material Material { diffuseColor 0.9 0.8 0.8 } } geometry Box { size 60 0.5 0.75 } } ] } Transform { translation -10 10 -134.5 children [ USE VerdiepingBack ] } Transform { translation -10 15 -134.5 children [ USE VerdiepingBack ] } Transform { translation -10 20 -134.5 children [ USE VerdiepingBack ] } Transform { translation -10 45 -134.5 children [ USE VerdiepingBack ] } Transform { translation -10 50 -134.5 children [ USE VerdiepingBack ] } Transform { translation -10 55 -134.5 children [ USE VerdiepingBack ] } Transform { translation -14.2 60 -134.5 scale 0.87 1 1 children [ USE VerdiepingBack ] } Transform { # VU-Personeelsgebouw translation -80 3 -103.5 children [ Shape { appearance Appearance { material Material { diffuseColor 0.6 0.6 0.7 } } geometry Box { size 50 5 15 } } ] } Transform { # Text VU-Personeelsgebouw translation -80 2 -95.4 children [ Shape { appearance Appearance { material Material { diffuseColor 0 0.2 0.8 } } geometry Text { string "VU-Personeelsgebouw" fontStyle FontStyle { size 5 justify "MIDDLE" } } } ] } # -------------------------------------------- # # Afbakening omgeving door middel van 4 wanden # # -------------------------------------------- # Transform { # Achter Metropolitan translation 7 7 30 children [ DEF WAND Shape { appearance Appearance { textureTransform TextureTransform { scale 40 1 } texture ImageTexture { url "textures/Boom.gif" } } geometry Box { size 250 14 0.1 } } ] } Transform { # Achter VU translation 7 7 -205 children [ USE WAND ] } Transform { # Zuid WTC translation 130 7 -90 rotation 0 1 0 1.57 children [ USE WAND ] } Transform { # Amstelveen translation -115 7 -90 rotation 0 1 0 1.57 children [ USE WAND ] } } Omgeving {} #Spotlight {}