home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Late Night VRML 2.0 with Java CD-ROM
/
code.zip
/
Ch10
/
5041118.wrl
< prev
next >
Wrap
Text File
|
1997-01-14
|
3KB
|
119 lines
#VRML V2.0 utf8
#Example 11.18 - Background Node with Images
NavigationInfo {
headlight FALSE
type "WALK"
}
Viewpoint {
position -3.06 1.6 7.45
orientation 0.10 -0.99 0.02 0.368
fieldOfView 1.5
description "entry view"
}
DirectionalLight {
direction 0.58 -0.69 -0.41
}
DEF Panorama_Bg Background {
groundAngle 1.5
groundColor [ 0.05 0.1 0.05,
0.05 0.1 0.05 ]
skyAngle [ 1.047, 2.094 ]
skyColor [ 0.1 0.1 0.5,
0.2 0.2 0.6,
0.6 0.6 0.7 ]
backUrl "bg-back.gif"
leftUrl "bg-left.gif"
frontUrl "bg-front.gif"
rightUrl "bg-right.gif"
}
Group {
children [
Transform {
children DEF house Shape {
appearance Appearance {
material Material {
ambientIntensity 0.25
diffuseColor 0.541 0 0
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [ -1 1 1,
-1 0 1,
1 1 1,
1 0 1,
1 1 -1,
1 0 -1,
-1 1 -1,
-1 0 -1,
0 1.722 1,
0 1.722 -1,
-1 1 -1,
-1 0 -1,
-1 0 1,
-1 1 1,
1 1 1,
1 0 1,
1 0 -1,
1 1 -1,
-1 0 1,
1 0 1,
-1 1 1,
0 1.722 1,
1 1 1 ]
}
coordIndex [ 0, 1, 3, -1, 0, 3, 2, -1,
0, 2, 8, -1, 4, 5, 7, -1,
4, 7, 6, -1, 4, 6, 9, -1,
10, 11, 12, -1, 10, 12, 13, -1,
14, 15, 16, -1, 14, 16, 17, -1,
18, 11, 16, -1, 18, 16, 19, -1,
10, 20, 21, -1, 10, 21, 9, -1,
21, 22, 17, -1, 21, 17, 9, -1 ]
}
}
scale 2.395 2.395 2.395
}
Transform {
children DEF base Shape {
appearance Appearance {
material Material {
ambientIntensity 0.24
diffuseColor 0.05 0.1 0.05
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [ 0 0 -1,
0.383 0 -0.924,
0.707 0 -0.707,
0.924 0 -0.383,
1 0 4.37e-08,
0.924 0 0.383,
0.707 0 0.707,
0.383 0 0.924,
1.51e-07 0 1,
-0.383 0 0.924,
-0.707 0 0.707,
-0.924 0 0.383,
-1 0 -1.19e-08,
-0.924 0 -0.383,
-0.707 0 -0.707,
-0.383 0 -0.924 ]
}
coordIndex [ 15, 1, 0, -1, 1, 15, 14, -1,
1, 14, 2, -1, 2, 14, 13, -1,
2, 13, 3, -1, 3, 13, 12, -1,
3, 12, 4, -1, 4, 12, 11, -1,
4, 11, 5, -1, 5, 11, 10, -1,
5, 10, 6, -1, 6, 10, 9, -1,
6, 9, 7, -1, 7, 9, 8, -1 ]
}
}
scale 11 11 11
}
]
}
#EOF