|
#VRML V2.0 utf8
#VRML V2.0 utf8
EXTERNPROTO Inline2 [ exposedField SFVec3f bboxSize exposedField SFVec3f bboxCenter exposedField MFString url exposedField MFNode children eventIn MFNode addChildren eventIn MFNode removeChildren eventIn SFBool set_unload eventOut SFBool isLoaded ] [ "urn:inet:blaxxun.com:node:Inline" "http://www.blaxxun.com/vrml/protos/nodes.wrl#Inline2" ]
EXTERNPROTO ImportVrmlUrl [ exposedField MFString url ] ["http://world3d.virgal.org/misc/ImportVrmlUrl.wrl?kzxzi#ImportVrmlUrl"]
PROTO SwitchBool [
exposedField SFBool visible TRUE
exposedField MFNode children []
] {
DEF Sw Switch {
whichChoice 0
choice [
Group { children IS children }
]
}
Script {
directOutput TRUE
exposedField SFBool visible IS visible
field SFNode Sw USE Sw
url "vrmlscript:
function initialize() {
visible(visible);
}
function visible(b) {
//print('visible('+b+')');
Sw.whichChoice = (b?0:-1);
}
"
}
}
PROTO VirgalSceneObject [
exposedField MFNode children []
eventIn MFNode addChildren
eventIn MFNode removeChildren
exposedField SFRotation rotation 0 1 0 0
exposedField SFVec3f translation 0 0 0
exposedField SFVec3f scale 1 1 1
exposedField SFBool visible TRUE
exposedField SFBool collide TRUE
exposedField SFBool weblinked FALSE
field SFString weblinkurl ""
] {
SwitchBool {
visible IS visible
children [
LOD {
range [500000]
level [
Collision {
collide IS collide
children [
Transform {
translation IS translation
rotation IS rotation
scale IS scale
children IS children
addChildren IS addChildren
removeChildren IS removeChildren
}
DEF VGAnchor_TS TouchSensor {enabled IS weblinked}
]
}
Group {}
]
}
]
}
DEF VGAnchor_Scr Script {
directOutput TRUE
mustEvaluate TRUE
url "vrmlscript:
function touch(ts) {
print('touch('+ts+'): linkurl = '+linkurl);
if(linkurl.indexOf('http://')==-1) {
print('Error : cannot open link, url is invalid ('+linkurl+')');
} else {
Browser.loadURL(new MFString('javascript:void(openExternalLink(\"'+linkurl+'\"))'), new MFString());
}
}
"
eventIn SFTime touch
field SFString linkurl IS weblinkurl
}
ROUTE VGAnchor_TS.touchTime TO VGAnchor_Scr.touch
}
# PROTO FOR LIBID 117
EXTERNPROTO Maison [
exposedField MFString texture_murs
exposedField MFString texture_sol
exposedField MFString texture_fenetre
exposedField MFString texture_porte
exposedField SFBool porte_ouvrable
exposedField SFString repetition_texture_mur_x
exposedField SFString repetition_texture_mur_y
exposedField SFString repetition_texture_sol_x
exposedField SFString repetition_texture_sol_y
exposedField MFString texture_toit
exposedField SFString repetition_texture_toit_x
exposedField SFString repetition_texture_toit_y
exposedField SFFloat epaisseur_toit
] ["http://media.virgal.net/construction/maison.wrl#Maison"]
# PROTO FOR LIBID 47
EXTERNPROTO PrimSphere [
exposedField MFString texture
] ["http://media.virgal.net/primitives/PrimSphere.wrl#PrimSphere"]
# PROTO FOR LIBID 57
EXTERNPROTO CandleStick [
exposedField MFString texture
exposedField SFBool bougie_allumee
] ["http://media.virgal.net/deco/candlestick.wrl#CandleStick"]
Viewpoint {
description "POINT DE VUE INITIAL"
position -34.1295337166 1.88 -144.717134487
orientation 0 1 0 1.70725072896
}
Viewpoint {
description "POINT DE VUE INITIAL"
position -0.112113788621 1.85 0.0586191380862
}
EXTERNPROTO VGViewpoint [
field SFString description
exposedField MFString icone
exposedField SFBool retour_origine
exposedField SFInt32 position_icone
] ["http://media.virgal.net/display/VGViewpoint.wrl?kkp#VGViewpoint"]
VGViewpoint {
description "-"
icone "http://worlds.virgal.net/vgpics/viewpoint-home_31x29.png"
retour_origine TRUE
position_icone 0
}
DEF VSO_99993 VirgalSceneObject {
visible TRUE
translation -36.9845832839 0.00666666666667 -139.650560106
scale 1 1 1
rotation 0 1 0 3.28102
children [
Maison {
texture_murs "http://media.virgal.net/pubtexlib/wall/stucco_grey.jpg"
texture_sol "http://media.virgal.net/pubtexlib/floor/redtri_tile_cyc.jpg"
texture_fenetre "http://media.virgal.net/pubtexlib/windows/window_blue2.jpg"
texture_porte "http://media.virgal.net/pubtexlib/windows/window_blue2.jpg"
porte_ouvrable TRUE
repetition_texture_mur_x "5"
repetition_texture_mur_y "5"
repetition_texture_sol_x "10"
repetition_texture_sol_y "15"
texture_toit "http://media.virgal.net/pubtexlib/roof/roof02.jpg"
repetition_texture_toit_x "5"
repetition_texture_toit_y "5"
epaisseur_toit 1
}
]
}
DEF VSO_99990 VirgalSceneObject {
visible TRUE
translation 0.342719059302 0.1 -3.59374620259
scale 1 1 1
rotation 0 1 0 0
children [
ImportVrmlUrl {url "http://cody.free.fr/RV/Monde.wrl"}
]
}
DEF VSO_99992 VirgalSceneObject {
visible TRUE
translation -19.2649 2.49628 25.3634
scale 1 1 1
rotation 0 1 0 -0.799724
children [
Background {
leftUrl "http://media.virgal.net/_cached/skyboxes/canyon1/sky0004.JPG"
frontUrl "http://media.virgal.net/_cached/skyboxes/canyon1/sky0005.JPG"
rightUrl "http://media.virgal.net/_cached/skyboxes/canyon1/sky0001.JPG"
backUrl "http://media.virgal.net/_cached/skyboxes/canyon1/sky0002.JPG"
topUrl "http://media.virgal.net/_cached/skyboxes/canyon1/sky0003.JPG"
bottomUrl "http://media.virgal.net/_cached/skyboxes/canyon1/sky0006.JPG"
}
]
}
DEF VSO_99995 VirgalSceneObject {
visible TRUE
translation -34.3661524644 0.1 -144.989829783
scale 0.7 0.7 0.7
rotation 0 1 0 -3.08048
weblinked TRUE weblinkurl "http://hollywood.virgal.net/"
children [
PrimSphere {
texture "http://media.virgal.net/_cached/pubtexlib/roof/roof01.jpg" # "http://media.virgal.net/_cached/pubtexlib/wall/brickwall36885.jpg"
}
]
}
DEF VSO_99996 VirgalSceneObject {
visible TRUE
translation -94.6917882225 11.12 -309.068278391
scale 2.16666666667 2.16666666667 2.16666666667
rotation 0 1 0 -0.205408
children [
ImportVrmlUrl {url "http://www.web3d-fr.com/objets/Download/alaindubus/2/chapelle.wrl"}
]
}
DEF VSO_99997 VirgalSceneObject {
visible TRUE
translation 26.3160044676 0.636777 -202.257781224
scale 3.38333333333 3.38333333333 3.38333333333
rotation 0 1 0 -1.76799
children [
Inline {url "http://media.virgal.net/tables/TCC006.wrl"}
]
}
DEF VSO_99998 VirgalSceneObject {
visible TRUE
translation 25.1859877344 2.296777 -202.500671719
scale 4.36666666667 4.36666666667 4.36666666667
rotation 0 1 0 -1.79234
children [
CandleStick {
texture "http://media.virgal.net/_cached/pubtexlib/leather/WALNUT3.jpg" # "http://media.virgal.net/_cached/pubtexlib/metal/pewter-b.jpg"
bougie_allumee TRUE # TRUE
}
]
}
NavigationInfo {
type "WALK"
}
WorldInfo {
title "Plage City"
}
Background {skyColor [.3 .3 1, .9 .9 1] skyAngle [1.5]}
|