home *** CD-ROM | disk | FTP | other *** search
/ VRML Programmer's Library by Jamsa Press / VRML Programmer's Library by Jamsa Press.iso / Chap14 / xmastree.wrl < prev   
Encoding:
Text File  |  1997-02-12  |  2.7 KB  |  107 lines

  1. #VRML V2.0 utf8
  2. #xmastree.wrl
  3.  
  4. Background                           #  set background
  5.   {
  6.      groundAngle
  7.        [
  8.           1, 1.6
  9.        ]
  10.      groundColor
  11.        [
  12.           .2 .2 .2,
  13.           .3 .3 .3,
  14.           .4 .5 .4
  15.        ]
  16.      skyColor  0 0 .5
  17.      skyAngle  1.571
  18.   }
  19.  
  20. Viewpoint                            #  set viewpoint
  21.   {
  22.      position  0 3 10
  23.   }
  24.  
  25. Inline                               #  import VRML1.0 file "xmas.wrl"
  26.   {
  27.      url  "xmas.wrl"
  28.   }
  29.  
  30. Transform                            #  move 1 unit right on x- and nearer 
  31.   {                                  #    on z-axes
  32.      translation  1 0 1
  33.      children
  34.        [
  35.           Inline                     #  import VRML1.0 file "bluegift.wrl"
  36.             {
  37.                url  "bluegift.wrl"
  38.             }
  39.        ]
  40.   }
  41.  
  42. Transform                            #  move 1 unit left on x-, away on z-
  43.   {                                  #    and .75 unit down on y-axes
  44.      translation  -1 -.075 -1
  45.      children
  46.        [
  47.           Inline                     #  import VRML1.0 "redgift.wrl"
  48.             {
  49.                url  "redgift.wrl"
  50.             }
  51.        ]
  52.   }
  53.  
  54. Transform                            #  move 1 unit right on x- and away 
  55.   {                                  #    on z-axes
  56.      translation  1 0 -1
  57.      scale  2 1 1.5
  58.      children
  59.        [
  60.           Inline                     #  import VRML1.0 file "bluegift.wrl"
  61.             {
  62.                url  "bluegift.wrl"
  63.             }
  64.        ]
  65.   }
  66.  
  67. Transform                            #  move 1 unit left on x-, nearer on z-,
  68.   {                                  #    and .075 unit down on y-axes                              
  69.      translation  -1 -.075 1
  70.      scale  2 1.5 1
  71.      children
  72.        [
  73.           Inline                     #  import VRML1.0 file "redgift.wrl"
  74.             {
  75.                url  "redgift.wrl"
  76.             }
  77.        ]
  78.   }
  79.  
  80. Transform                            #  move 1 unit nearer on z-axis and
  81.   {                                  #    .125 unit right on x-axis
  82.      translation  .125 0 1
  83.      rotation  0 1 0 1.571
  84.      children
  85.        [
  86.           Inline                     #  import VRML1.0 file "rondgift.wrl"
  87.             {
  88.                url  "rondgift.wrl"
  89.             }
  90.        ]
  91.   }
  92.  
  93. Transform                            #  move 1 unit away on z-axis and
  94.   {                                  #    .125 left on x-axis
  95.      translation  -.125 0 -1
  96.      rotation  0 1 0 .785
  97.      children
  98.        [
  99.           Inline                     #  import VRML1.0 file "rondgift.wrl"
  100.             {
  101.                url  "rondgift.wrl"
  102.             }
  103.        ]
  104.   }
  105.  
  106. #xmastree.wrl
  107.