home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polymore / fig2-5.pi < prev    next >
Text File  |  1994-09-28  |  2KB  |  111 lines

  1. //FIG2-5.PI
  2.  
  3. include "d:\polyray\include\colors.inc"
  4. include "d:\polyray\include\texture.inc"
  5.  
  6. viewpoint {
  7.  from      <3, 2, 3>
  8.  at        <-3.0, 0.0, 4>
  9.  up        <0.0, 1.0, 0.0>
  10.  aspect 1.6
  11.  }
  12.  
  13. // LIGHT_SOURCE
  14.     light <-10, 10, -10>
  15.  
  16. haze 0.95, 10, black
  17.  
  18. // PLANE (Polygon)
  19. object {
  20.    polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
  21.    translate <0, -1, 0>
  22.    texture { checker matte_white, matte_black scale<5, 5, 5>}  
  23. }
  24.  
  25. // SPHERE
  26. object {
  27.     sphere <0, 0.5, 0>, 1
  28.     texture
  29.     {
  30.        surface
  31.        {
  32.           color red
  33.           ambient 0.1
  34.           diffuse 0.7
  35.           specular white, 0.5
  36.           reflection white, 0.1
  37.           transmission white, 1.0,1
  38.        }
  39.     }
  40. }
  41.  
  42. // SPHERE
  43. object {
  44.     sphere <0, 0.5, 2>, 1
  45.     texture
  46.     {
  47.        surface
  48.        {
  49.           color red
  50.           ambient 0.1
  51.           diffuse 0.7
  52.           specular white, 0.5
  53.           reflection white, 0.1
  54.           transmission white, 0.8,1
  55.        }
  56.     }
  57. }
  58.  
  59. // SPHERE
  60. object {
  61.     sphere <0, 0.5, 4>, 1
  62.     texture
  63.     {
  64.        surface
  65.        {
  66.           color red
  67.           ambient 0.1
  68.           diffuse 0.7
  69.           specular white, 0.5
  70.           reflection white, 0.1
  71.           transmission white, 0.6,1
  72.        }
  73.     }
  74. }
  75.  
  76. // SPHERE
  77. object {
  78.     sphere <0, 0.5, 6>, 1
  79.     texture
  80.     {
  81.        surface
  82.        {
  83.           color red
  84.           ambient 0.1
  85.           diffuse 0.7
  86.           specular white, 0.5
  87.           reflection white, 0.1
  88.           transmission white, 0.4,1
  89.        }
  90.     }
  91. }
  92.  
  93. // SPHERE
  94. object {
  95.     sphere <0, 0.5, 8>, 1
  96.     texture
  97.     {
  98.        surface
  99.        {
  100.           color red
  101.           ambient 0.1
  102.           diffuse 0.7
  103.           specular white, 0.5
  104.           reflection white, 0.1
  105.           transmission white, 0.2,1
  106.        }
  107.     }
  108. }
  109.  
  110.  
  111.