#VRML V2.0 utf8 EXTERNPROTO Vista [ exposedField SFString type exposedField MFNode texture exposedField MFVec2f vFov exposedField MFVec2f hFov exposedField SFVec2f pitchRange exposedField SFVec2f yawRange exposedField SFVec2f zoomRange exposedField MFColor groundColor exposedField MFFloat groundRange exposedField MFColor skyColor exposedField MFFloat skyRange exposedField MFNode children eventOut SFVec2f clickPt eventOut SFVec2f overPt eventOut SFBool isBound eventIn SFBool set_bind ] "http://www.livepicture.com/proto/vistaproto15.wrl#Vista" NavigationInfo { type "EXAMINE" avatarSize [ 0, 0, 0 ] headlight TRUE } Script { field SFFloat startZoom 0.436332 field SFVec3f startView 0.000000 3.5 0 url "vrmlscript: function initialize() { browser.setFOV(startZoom); browser.setOrientation(startView); } " } DEF Beach Vista { type "SPHERE" texture ImageTexture { url "beach.jpg" } vFov -0.552 0.552 pitchRange -0.552 0.552 hFov 0.000 0.000 yawRange 0.000 0.000 zoomRange 0.000 1.571 children [ ] } DEF Beach_switch Switch { whichChoice 1 choice [ Group {}, Group { children [ DEF Beach_BeachGoer2_switch Switch { whichChoice 1 choice [ Group {}, Transform { rotation 0 1 0 3.628966 children [ Transform { scale 1.000000 1.000000 1.000000 rotation 0 1 0 2.801502 translation 0 -0.374449 3.524229 children Inline { url "woman.wrl" } } ] } ] } DEF Beach_Seagulls_switch Switch { whichChoice 1 choice [ Group {}, Sound { source DEF Beach_Seagulls_movie AudioClip { loop TRUE url "seagulls.wav" } } ] } DEF Beach_Dolphin_switch Switch { whichChoice 1 choice [ Group {}, Transform { rotation 0 1 0 5.452849 children [ Transform { scale 1.000000 1.000000 1.000000 rotation 0 1 0 3.141593 translation 0 0.000000 10.000000 children Inline { url "dolphin.wrl" } } ] } ] } ] } ] } DEF Beach_activator Script { eventIn SFBool activate eventOut SFInt32 switchControl url "vrmlscript: function activate(value, timestamp) { if (value) switchControl = 1; else switchControl = 0; } " ROUTE Beach.isBound TO Beach_activator.activate ROUTE Beach_activator.switchControl TO Beach_switch.set_whichChoice }