home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray / !POVscene / iff / poolball < prev   
Text File  |  1992-07-21  |  4KB  |  195 lines

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