home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sony Community Place
/
Origami.zip
/
origami
/
main.wrl
< prev
Wrap
Text File
|
1997-05-14
|
3KB
|
118 lines
#VRML V2.0 utf8
# "$Id: main.wrl,v 1.4 1997/05/09 12:50:58 mizutani Exp $";
#
# This file is conveted from VRML 1.0 to Moving Worlds.
# Copyright(C) 1996, 1997 Sony Corporation. All rights reserved.
Background {
skyColor [ 0.0313 0.23 0.5419 ]
frontUrl "images/sora256.gif"
backUrl "images/sora256.gif"
bottomUrl "images/sora256.gif"
leftUrl "images/sora256.gif"
rightUrl "images/sora256.gif"
topUrl "images/sora256.gif"
}
WorldInfo {
title "origami"
}
NavigationInfo {
type [ "FLY" ]
}
Switch { # DEF Cameras
whichChoice 0
choice [
Transform {
translation 0 0 0.5
children [
Viewpoint { # DEF Approach
position 0 0 0.2
# âfâtâHâïâgÆlé╚é╠é┼âRâüâôâgüI
# fieldOfView 0.785398
}
]
}
]
}
DEF BIRD Transform {
translation 0 0 0
children [
Transform { # DEF TOPBIRD
rotation 1 0 0 1.570796
children [
DEF PAPER Switch {
whichChoice 0
choice [
Inline{ url "models/k01.wrl" }
Inline{ url "models/k02.wrl" }
Inline{ url "models/k03.wrl" }
Inline{ url "models/k04.wrl" }
Inline{ url "models/k05.wrl" }
Inline{ url "models/k06.wrl" }
Inline{ url "models/k07.wrl" }
Inline{ url "models/k08.wrl" }
]
}
]
}
DEF CLICK TouchSensor {}
Sound {
source DEF BGM AudioClip {
url "sounds/bgm.wav"
loop TRUE
stopTime 1
}
}
Sound {
source DEF GUSYA AudioClip {
url "sounds/paprfold.wav"
loop FALSE
stopTime 1
}
}
]
}
DEF TIMER TimeSensor {
loop TRUE
enabled FALSE
stopTime -1
cycleInterval 0.05
}
DEF SCRIPT Script {
url "scripts/origami.class"
eventIn SFBool clicked
eventIn SFTime roll
eventOut SFInt32 paperChild
eventOut SFBool timerOn
eventOut SFRotation birdRotation
eventOut SFTime bgmStart
eventOut SFTime bgmStop
eventOut SFTime gusyaStart
eventOut SFTime gusyaStop
}
ROUTE CLICK.isActive TO SCRIPT.clicked
ROUTE SCRIPT.paperChild TO PAPER.set_whichChoice
ROUTE SCRIPT.timerOn TO TIMER.set_enabled
ROUTE TIMER.cycleTime TO SCRIPT.roll
ROUTE SCRIPT.birdRotation TO BIRD.set_rotation
ROUTE SCRIPT.bgmStart TO BGM.set_startTime
ROUTE SCRIPT.gusyaStart TO GUSYA.set_startTime
ROUTE SCRIPT.bgmStop TO BGM.set_stopTime
#ROUTE SCRIPT.gusyaStop TO GUSYA.set_stopTime