home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level2 / poolball.inc < prev    next >
Text File  |  1993-09-28  |  4KB  |  214 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // include file for poolball.pov
  4. /* ***************** set up a bunch of declarations ***************************/
  5.  
  6. #declare Ball = sphere { <0, 0, 0>, 1 }
  7.  
  8. #declare _1_Ball =
  9. object {
  10.    Ball
  11.    finish { Shiny } pigment { Yellow }
  12. }
  13.  
  14. #declare _2_Ball =
  15. object {
  16.    Ball
  17.    finish { Shiny } pigment { Blue }
  18. }
  19.  
  20. #declare _3_Ball =
  21. object {
  22.    Ball
  23.    finish { Shiny } pigment { Red }
  24. }
  25.  
  26. #declare _4_Ball =
  27. object {
  28.    Ball
  29.    finish { Shiny } pigment { Violet }
  30. }
  31.  
  32. #declare _5_Ball =
  33. object {
  34.    Ball
  35.    finish { Shiny } pigment { Orange }
  36. }
  37.  
  38. #declare _6_Ball =
  39. object {
  40.    Ball
  41.    finish { Shiny } pigment { ForestGreen }
  42. }
  43.  
  44. #declare _7_Ball =
  45. object {
  46.    Ball
  47.    finish { Shiny } pigment { Maroon }
  48. }
  49.  
  50. #declare _8_Ball =
  51. object {
  52.    Ball
  53.    finish { Shiny } pigment { Black }
  54. }
  55.  
  56.  
  57. // Striped balls start here
  58.  
  59. #declare Stripe = color Yellow
  60.  
  61. #declare _9_Ball =
  62. object { Ball
  63.    finish { Shiny }
  64.    pigment {
  65.       gradient y
  66.       color_map {
  67.          [0.0 0.33 color White color White]
  68.          [0.33 0.66 color Stripe color Stripe]
  69.          [0.66 1.00 color White color White]
  70.       }
  71.       quick_color Stripe
  72.       scale 2.0
  73.       translate 1*y
  74.    }
  75. }
  76.  
  77. #declare Stripe = color Blue
  78.  
  79. #declare _10_Ball =  object {
  80.    Ball
  81.  
  82.    finish { Shiny }
  83.    pigment {
  84.       gradient <0 1 0>
  85.       color_map {
  86.          [0.0 0.33 color White color White]
  87.          [0.33 0.66 color Stripe color Stripe]
  88.          [0.66 1.00 color White color White]
  89.       }
  90.       quick_color Stripe
  91.       scale 2.0
  92.       translate 1*y
  93.    }
  94. }
  95.  
  96. #declare Stripe = color Red
  97.  
  98. #declare _11_Ball =
  99. object {
  100.    Ball
  101.  
  102.    finish { Shiny }
  103.    pigment {
  104.       gradient y
  105.       color_map {
  106.          [0.0 0.33 color White color White]
  107.          [0.33 0.66 color Stripe color Stripe]
  108.          [0.66 1.00 color White color White]
  109.       }
  110.       quick_color Stripe
  111.       scale 2.0
  112.       translate 1*y
  113.    }
  114. }
  115.  
  116.  
  117. #declare Stripe = color Violet
  118.  
  119. #declare _12_Ball =
  120. object {
  121.    Ball
  122.  
  123.    finish { Shiny }
  124.    pigment {
  125.       gradient y
  126.       color_map {
  127.          [0.0 0.33 color White color White]
  128.          [0.33 0.66 color Stripe color Stripe]
  129.          [0.66 1.00 color White color White]
  130.       }
  131.       quick_color Stripe
  132.       scale 2.0
  133.       translate 1*y
  134.    }
  135. }
  136.  
  137. #declare Stripe = color Orange
  138.  
  139. #declare _13_Ball =
  140. object {
  141.    Ball
  142.  
  143.    finish { Shiny }
  144.    pigment {
  145.       gradient y
  146.       color_map {
  147.          [0.0 0.33 color White color White]
  148.          [0.33 0.66 color Stripe color Stripe]
  149.          [0.66 1.00 color White color White]
  150.       }
  151.       quick_color Stripe
  152.       scale 2.0
  153.       translate 1*y
  154.    }
  155. }
  156.  
  157. #declare Stripe = color ForestGreen
  158.  
  159. #declare _14_Ball =
  160. object {
  161.    Ball
  162.  
  163.    finish { Shiny }
  164.    pigment {
  165.       gradient y
  166.       color_map {
  167.          [0.0 0.33 color White color White]
  168.          [0.33 0.66 color Stripe color Stripe]
  169.          [0.66 1.00 color White color White]
  170.       }
  171.       quick_color Stripe
  172.       scale 2.0
  173.       translate 1*y
  174.    }
  175. }
  176.  
  177. #declare Stripe = color Maroon
  178.  
  179. #declare _15_Ball =
  180. object {
  181.    Ball
  182.  
  183.    finish { Shiny }
  184.    pigment {
  185.       gradient y
  186.       color_map {
  187.          [0.0 0.33 color White color White]
  188.          [0.33 0.66 color Stripe color Stripe]
  189.          [0.66 1.00 color White color White]
  190.       }
  191.       quick_color Stripe
  192.       scale 2.0
  193.       translate 1*y
  194.    }
  195. }
  196.  
  197. #declare CueStick =
  198. intersection {
  199.    object { Cylinder_Z }
  200.    plane { z, 1 }
  201.  
  202.    pigment {
  203.       Dark_Wood
  204.       scale <0.01, 0.01, 1>
  205.    }
  206.    finish {
  207.       ambient 0.1
  208.       diffuse 0.7
  209.       phong 1.0
  210.       phong_size 90
  211.       reflection 0.3
  212.    }
  213. }        
  214.