home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch10 / 5041110.wrl < prev    next >
Text File  |  1996-12-17  |  3KB  |  93 lines

  1. #VRML V2.0 utf8
  2. #Example 11.10 - TextureCoordinate Node Example
  3. NavigationInfo {
  4.   type  "EXAMINE"
  5. }
  6. Viewpoint {
  7.   position   0 0.6 6.0
  8.   orientation       0 0 1  0
  9.   fieldOfView       0.7854
  10. }
  11. Group {
  12.   children        DEF House Shape {
  13.     appearance  Appearance {
  14.       material     Material {
  15.         ambientIntensity  0.2
  16.         diffuseColor      0.8 0.5 0.15
  17.         specularColor     0.3 0.1 0
  18.         shininess  0.8
  19.       }
  20.       texture   ImageTexture {
  21.         url     "mandrill.jpg"
  22.       }
  23.     }
  24.     geometry    IndexedFaceSet {
  25.       coord     Coordinate {
  26.         point   [ -0.580472 -0.673746 0.585422,
  27.                   -0.580472 -0.673746 -0.575522,
  28.                   0.580472 -0.673746 -0.575522,
  29.                   0.580472 -0.673746 0.585422,
  30.                   1 1 1,
  31.                   0.580472 -0.673746 0.585422,
  32.                   0.580472 -0.673746 -0.575522,
  33.                   1 1 -1,
  34.                   -1 1 -1,
  35.                   -0.580472 -0.673746 -0.575522,
  36.                   -0.580472 -0.673746 0.585422,
  37.                   -1 1 1,
  38.                   0 1.79664 0.844294,
  39.                   0 1.79664 -0.8344,
  40.                   -1 1 1,
  41.                   -0.580472 -0.673746 0.585422,
  42.                   0.580472 -0.673746 0.585422,
  43.                   1 1 1,
  44.                   0 1.79664 0.844294,
  45.                   1 1 -1,
  46.                   0.580472 -0.673746 -0.575522,
  47.                   -0.580472 -0.673746 -0.575522,
  48.                   -1 1 -1,
  49.                   0 1.79664 -0.8344 ]
  50.       }
  51.       coordIndex        [ 0, 1, 2, 3, -1, 4, 5, 6,
  52.                 7, -1, 8, 9, 10, 11, -1, 8,
  53.                 11, 12, 13, -1, 12, 4, 7, 13,
  54.                 -1, 14, 15, 16, 17, -1, 14, 17,
  55.                 18, -1, 19, 20, 21, 22, -1, 19,
  56.                 22, 23, -1 ]
  57.       texCoord  TextureCoordinate {
  58.         point   [ 0 1,
  59.                   0 0,
  60.                   1 0,
  61.                   1 1,
  62.                   0.0151568 0.663504,
  63.                   0.13094 0.0180912,
  64.                   0.818404 0.0180912,
  65.                   0.99208 0.649031,
  66.                   0.984843 0.656268,
  67.                   0.774986 0.0108547,
  68.                   0.174359 0.0108547,
  69.                   0.00792035 0.649031,
  70.                   0.0658121 0.987778,
  71.                   0.948661 0.995014,
  72.                   0.984843 0.721396,
  73.                   0.753276 0.00498593,
  74.                   0.188832 0.00498593,
  75.                   0.0102885 0.726549,
  76.                   0.5 1.00362,
  77.                   0.00571176 1.01031,
  78.                   0.133861 0.00800008,
  79.                   0.815795 0.00342336,
  80.                   0.994288 1.00115,
  81.                   0.490847 1.99888 ]
  82.       }
  83.       texCoordIndex     [ 0, 1, 2, 3, -1, 4, 5, 6,
  84.                 7, -1, 8, 9, 10, 11, -1, 8,
  85.                 11, 12, 13, -1, 12, 4, 7, 13,
  86.                 -1, 14, 15, 16, 17, -1, 14, 17,
  87.                 18, -1, 19, 20, 21, 22, -1, 19,
  88.                 22, 23, -1 ]
  89.     }
  90.   }
  91. }
  92. #EOF
  93.