media @ VU
proto-dialog.vr
proto-dialog.vr
(wrl
)
[ flux /
bitmanagement /
cortona /
octaga
]
Web3D/VR
dialog
extern conversation
EXTERNPROTO conversation [
exposedField MFString scene
exposedField SFVec3f translation
exposedField SFRotation rotation
exposedField SFVec3f scale
exposedField MFNode children
eventIn MFNode addChildren
eventIn MFNode removeChildren
exposedField SFInt32 switch
exposedField SFColor color
exposedField SFFloat transparency
exposedField SFNode node
exposedField SFTime cycle
exposedField SFBool reverse ## added later
exposedField SFNode p1
exposedField SFNode p2
exposedField SFNode b1
exposedField SFNode b2
exposedField SFTime speed
exposedField SFInt32 round
exposedField SFInt32 delay
exposedField SFBool enabled
][ "@vr-proto-conversation.wrl#conversation" ]
extern bulb
EXTERNPROTO bulb [ ## <a href=@vr-proto-bulb.html>src</a>
eventIn MFString message
exposedField MFString string
exposedField SFVec3f translation
exposedField SFRotation rotation
exposedField SFVec3f scale
exposedField SFInt32 type
exposedField SFColor color
exposedField SFColor text
exposedField SFFloat transparency
exposedField SFVec3f text_scale
exposedField SFVec3f text_translation
exposedField SFRotation text_rotation
exposedField MFString background
eventOut MFString message_changed
][ "@vr-proto-bulb.wrl#bulb" ]
extern repertoire
EXTERNPROTO repertoire [
eventIn SFInt32 next
eventOut MFString string
exposedField SFInt32 max
exposedField MFString u01
exposedField MFString u02
exposedField MFString u03
exposedField MFString u04
exposedField MFString u05
exposedField MFString u06
exposedField MFString u07
exposedField MFString u08
exposedField MFString u09
exposedField MFString u10
exposedField MFString u11
exposedField MFString u12
][ "@vr-proto-repertoire.wrl#repertoire" ]
proto dialog
PROTO dialog [ ## "@vr-extern-dialog.wrl"
exposedField SFVec3f translation 0 0 0
exposedField SFVec3f scale 1 1 1
exposedField SFRotation rotation 0 0 1 0
exposedField SFInt32 switch 0
exposedField SFColor color 0 0 1
exposedField SFFloat transparency 0
exposedField SFNode node NULL
exposedField SFTime cycle 1
exposedField MFNode children NULL
eventIn MFNode addChildren
eventIn MFNode removeChildren
exposedField MFString scene [ ]
exposedField SFTime speed 2.5
exposedField SFBool reverse FALSE
exposedField MFString r_string []
exposedField SFInt32 r_max 0
exposedField MFString r_01 []
exposedField MFString r_02 []
exposedField MFString r_03 []
exposedField MFString r_04 []
exposedField MFString r_05 []
exposedField MFString r_06 []
exposedField MFString r_07 []
exposedField MFString r_08 []
exposedField MFString r_09 []
exposedField MFString r_10 []
exposedField MFString r_11 []
exposedField MFString r_12 []
exposedField SFColor r_text 0 1 1
exposedField SFColor r_color 0.7 0.2 0.2
exposedField SFFloat r_transparency 0.2
exposedField MFString r_background []
exposedField SFVec3f r_scale 3 1 1
exposedField SFVec3f r_translation -1 1 0
exposedField SFRotation r_rotation 0 0 1 0
exposedField SFVec3f r_text_scale 0.7 1 1
exposedField SFVec3f r_text_translation 0 0 0
exposedField SFRotation r_text_rotation 0 0 1 0
exposedField MFString l_string []
exposedField SFInt32 l_max 0
exposedField MFString l_01 []
exposedField MFString l_02 []
exposedField MFString l_03 []
exposedField MFString l_04 []
exposedField MFString l_05 []
exposedField MFString l_06 []
exposedField MFString l_07 []
exposedField MFString l_08 []
exposedField MFString l_09 []
exposedField MFString l_10 []
exposedField MFString l_11 []
exposedField MFString l_12 []
exposedField SFColor l_text 1 1 0
exposedField SFColor l_color 0 1 1
exposedField SFFloat l_transparency 0.5
exposedField MFString l_background []
exposedField SFVec3f l_scale 2 1 1
exposedField SFVec3f l_translation 1 1 0
exposedField SFRotation l_rotation 0 0 1 0
exposedField SFVec3f l_text_scale 0.7 1 1
exposedField SFVec3f l_text_translation -1 0 0
exposedField SFRotation l_text_rotation 0 0 1 0
dialog body
]{
Switch {
whichChoice -1
choice [
DEF b1 bulb {
scale IS r_scale
translation IS r_translation
color IS r_color
string IS r_string
text IS r_text
transparency IS r_transparency
text_scale IS r_text_scale
text_translation IS r_text_translation
rotation IS r_rotation
text_rotation IS r_text_rotation
background IS r_background
}
DEF b2 bulb {
type 1
scale IS l_scale
translation IS l_translation
text IS l_text
color IS l_color
string IS l_string
transparency IS l_transparency
text_scale IS l_text_scale
text_translation IS l_text_translation
rotation IS l_rotation
text_rotation IS l_text_rotation
background IS l_background
}
DEF p1 repertoire {
max IS r_max
u01 IS r_01
u02 IS r_02
u03 IS r_03
u04 IS r_04
u05 IS r_05
u06 IS r_06
u07 IS r_07
u08 IS r_08
u09 IS r_09
u10 IS r_10
u11 IS r_11
u12 IS r_12
}
DEF p2 repertoire {
max IS l_max
u01 IS l_01
u02 IS l_02
u03 IS l_03
u04 IS l_04
u05 IS l_05
u06 IS l_06
u07 IS l_07
u08 IS l_08
u09 IS l_09
u10 IS l_10
u11 IS l_11
u12 IS l_12
}
]
}
the conversational setup
Group {
children [
conversation {
reverse IS reverse
p1 USE p1
p2 USE p2
b1 USE b1
b2 USE b2
scene IS scene
speed IS speed
switch IS switch
color IS color
transparency IS transparency
node IS node
cycle IS cycle
scale IS scale
translation IS translation
rotation IS rotation
children IS children
addChildren IS addChildren
removeChildren IS removeChildren
}
] }
} ## end proto
instance
dialog {
r_string [ "well" "eh" ]
l_string [ "hi" ]
r_max 12
l_max 12
r_01 [ "how" "are" "you?" ]
l_01 [ "fine" "thank" "you" ]
r_02 [ "tell" "me" "..." ]
l_02 [ "yes" "eh" "..." ]
r_03 [ "what do" "you think" "of" ]
l_03 [ "what?" "..." ]
r_04 [ "the 11th" "of september" "!" ]
l_04 [ "the crash" "you mean?" ]
r_05 [ "of course!" ]
l_05 [ "well eh" "..." ]
r_06 [ "please" "speak out!" ]
l_06 [ "yes eh," "I think ..." ]
r_07 [ "now," "what do you" "think?" ]
l_07 [ "I think" "that" "eh terrorism" "..." ]
r_08 [ "what" "about" "terrorism?" ]
l_08 [ "acts" "of" "violence" ]
r_09 [ "yes eh" "violence ..." ]
l_09 [ "against" "humanity" "..." ]
r_10 [ "like in" "New York?" ]
l_10 [ "against" "innocent" "citizens" ]
r_11 [ "americans" "you mean?" ]
l_11 [ "right!" "and I think" "that .." ]
r_12 [ "" "what?" ]
l_12 [ "I'll miss" "the" "skyline" ]
}
scene
NavigationInfo { type ["WALK","ANY"] }
DEF camera Viewpoint { position 0 0 10 }
Background {
groundAngle [1.57]
skyAngle [1.57]
groundColor [0 .3 0, .3 .4 .3]
skyColor [0 0 .3, .3 .3 .4]
}
(C) A. Eliëns
21/5/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.