home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Late Night VRML 2.0 with Java CD-ROM
/
figures.zip
/
figures
/
CHAP10
/
CH10F10.WRL
< prev
next >
Wrap
Text File
|
1997-01-01
|
3KB
|
93 lines
#VRML V2.0 utf8
#Example 11.10 - TextureCoordinate Node Example
NavigationInfo {
type "EXAMINE"
}
Viewpoint {
position 0 0.6 6.0
orientation 0 0 1 0
fieldOfView 0.7854
}
Group {
children DEF House Shape {
appearance Appearance {
material Material {
ambientIntensity 0.2
diffuseColor 0.8 0.5 0.15
specularColor 0.3 0.1 0
shininess 0.8
}
texture ImageTexture {
url "mandrill.jpg"
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [ -0.580472 -0.673746 0.585422,
-0.580472 -0.673746 -0.575522,
0.580472 -0.673746 -0.575522,
0.580472 -0.673746 0.585422,
1 1 1,
0.580472 -0.673746 0.585422,
0.580472 -0.673746 -0.575522,
1 1 -1,
-1 1 -1,
-0.580472 -0.673746 -0.575522,
-0.580472 -0.673746 0.585422,
-1 1 1,
0 1.79664 0.844294,
0 1.79664 -0.8344,
-1 1 1,
-0.580472 -0.673746 0.585422,
0.580472 -0.673746 0.585422,
1 1 1,
0 1.79664 0.844294,
1 1 -1,
0.580472 -0.673746 -0.575522,
-0.580472 -0.673746 -0.575522,
-1 1 -1,
0 1.79664 -0.8344 ]
}
coordIndex [ 0, 1, 2, 3, -1, 4, 5, 6,
7, -1, 8, 9, 10, 11, -1, 8,
11, 12, 13, -1, 12, 4, 7, 13,
-1, 14, 15, 16, 17, -1, 14, 17,
18, -1, 19, 20, 21, 22, -1, 19,
22, 23, -1 ]
texCoord TextureCoordinate {
point [ 0 1,
0 0,
1 0,
1 1,
0.0151568 0.663504,
0.13094 0.0180912,
0.818404 0.0180912,
0.99208 0.649031,
0.984843 0.656268,
0.774986 0.0108547,
0.174359 0.0108547,
0.00792035 0.649031,
0.0658121 0.987778,
0.948661 0.995014,
0.984843 0.721396,
0.753276 0.00498593,
0.188832 0.00498593,
0.0102885 0.726549,
0.5 1.00362,
0.00571176 1.01031,
0.133861 0.00800008,
0.815795 0.00342336,
0.994288 1.00115,
0.490847 1.99888 ]
}
texCoordIndex [ 0, 1, 2, 3, -1, 4, 5, 6,
7, -1, 8, 9, 10, 11, -1, 8,
11, 12, 13, -1, 12, 4, 7, 13,
-1, 14, 15, 16, 17, -1, 14, 17,
18, -1, 19, 20, 21, 22, -1, 19,
22, 23, -1 ]
}
}
}
#EOF