home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 4613 / shapes.rrt < prev    next >
Text File  |  1980-01-06  |  3KB  |  153 lines

  1. // Real Ray Tracer
  2. // This scene was taken from POV 1.0 :
  3.  
  4. // Persistence Of Vision raytracer version 1.0 sample file.
  5. // By Chris Young
  6. // This image contains an example of every shape from SHAPES.INC
  7.  
  8. #include "colors.inc"
  9. #include "shapes.inc"
  10.  
  11.  
  12. object
  13. {  Ellipsoid
  14.    translate <17 1 -13>
  15.    texture { color Red phong 0.25 phong_size 90 }
  16. }
  17.  
  18. object { 
  19.    Cylinder_X
  20.    translate <0 6 -2>
  21.    texture { color Green phong 0.25 phong_size 90 }
  22. }
  23.  
  24. object
  25. { Cylinder_Y
  26.    translate <18 0 -8>
  27.    texture { color Blue phong 0.25 phong_size 90 }
  28. }
  29.  
  30. object
  31. { Cylinder_Z
  32.    translate <10 3 0>
  33.    texture { color Cyan phong 0.25 phong_size 90 }
  34. }
  35.  
  36. object
  37. { QCone_X
  38.    scale <9 1 1>
  39.    translate <13 10 -3>
  40.    texture { color Orange phong 0.25 phong_size 90 }
  41. }
  42.  
  43. object
  44. {  QCone_Y
  45.    scale <1 9 1>
  46.    translate <7 10 -18>
  47.    texture { color Yellow phong 0.25 phong_size 90 }
  48. }
  49.  
  50. object
  51. {  QCone_Z
  52.    scale <1 1 9>
  53.    translate <7 15 -10>
  54.    texture { color Maroon phong 0.25 phong_size 90 }
  55. }
  56.  
  57. object
  58. {  plane { <1 0 0> 0 }
  59.    texture { color Navy }
  60. }
  61.  
  62. object
  63. { plane { <0 1 0> 0 }
  64.    texture { color White }
  65. }
  66.  
  67. object
  68. {  plane { <0 0 1> 0 }
  69.    texture { color SkyBlue }
  70. }
  71.  
  72. object
  73. {  Paraboloid_X 
  74.    translate <15 15 -9>
  75.    texture { color Magenta phong 0.25 phong_size 90 }
  76. }
  77.  
  78. object
  79. {  Paraboloid_Y
  80.    translate <5 11 -23>
  81.    texture {color GreenYellow phong 0.25 phong_size 90 }
  82. }
  83.  
  84. object
  85. { Paraboloid_Z
  86.    translate <10 18 -6>
  87.    texture {color OrangeRed phong 0.25 phong_size 90 }
  88. }
  89.  
  90. object
  91. {  Hyperboloid
  92.    scale <7 1 1>
  93.    translate <10 2 -5>
  94.    texture {color Tan phong 0.25 phong_size 90 }
  95. }
  96.  
  97. object
  98. {  Hyperboloid_Y
  99.    scale <1 6 1>
  100.    translate <3 10 -10>
  101.    texture {color NeonPink phong 0.25 phong_size 90 }
  102. }
  103.  
  104. object
  105. {  UnitBox
  106.    translate <14 1 -13>
  107.    texture {color Scarlet phong 0.25 phong_size 90 }
  108. }
  109.  
  110. object
  111. {  UnitCube
  112.    translate <12 1 -16>
  113.    texture {color ForestGreen phong 0.25 phong_size 90 }
  114. }
  115.  
  116. object
  117. {  Disk_X
  118.    translate <10 5 -24>
  119.    texture {color Coral phong 0.25 phong_size 90 }
  120. }
  121.  
  122. object
  123. {  Disk_Y
  124.    translate <10 7 -24>
  125.    texture {color SeaGreen phong 0.25 phong_size 90 }
  126. }
  127.  
  128. object
  129. {  Disk_Z
  130.    translate <10 9 -24>
  131.    texture {color Brass phong 0.25 phong_size 90 }
  132. }
  133.  
  134. camera 
  135. {  location <20 10 -30>
  136.    point_at <0 5 0>
  137. //   angle 40
  138. }
  139.  
  140. object { 
  141.   light_source { <200 50 -100> intensity 40 color White } 
  142. }
  143.  
  144. object { 
  145.   light_source { <50 100 -200> intensity 40 color White } 
  146. }
  147.  
  148. object { 
  149.   light_source { <200 200 -200> intensity 40 color White }
  150. }
  151.  
  152. end.
  153.