home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / halo / attenua1.pov next >
Text File  |  1997-12-12  |  5KB  |  336 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer
  3. // This scene shows a number of halos.
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. camera {
  11.   orthographic
  12.   location <0, 0, -10>
  13.   right 16 * 4/3 * x
  14.   up 16 * y
  15.   look_at <0, 0, 0>
  16. }
  17.  
  18. light_source { <50, 50, -100> color White }
  19.  
  20. plane { <0, 0, 1>, 5
  21.   pigment { checker color Green color Blue }
  22.   finish { ambient 0.1 diffuse 0.4 }
  23.   hollow
  24. }
  25.  
  26. #declare Row1 =  +6
  27. #declare Row2 =  +2
  28. #declare Row3 =  -2
  29. #declare Row4 =  -6
  30. #declare Col1 =  -6
  31. #declare Col2 =  -2
  32. #declare Col3 =  +2
  33. #declare Col4 =  +6
  34.  
  35. #declare Turbulence = 0
  36. #declare Samples = 5
  37.  
  38. //
  39. // Declare container object.
  40. //
  41.  
  42. #declare Thing = box { -1, 1 scale 1.5 hollow }
  43.  
  44. //
  45. // Declare basic texture.
  46. //
  47.  
  48. #declare Texture = texture {
  49.   pigment { color Clear }
  50.   finish { ambient 0 diffuse 0 }
  51. }
  52.  
  53. //
  54. // Declare basic halo.
  55. //
  56.  
  57. #declare Halo = halo {
  58.   constant
  59.   attenuating
  60.   planar_mapping
  61.   max_value 1
  62.   exponent 1.5
  63.   color_map
  64.   {
  65.     [0.0 color rgbt <0, 0, 0, 1.0>]
  66.     [1.0 color rgbt <1, 1, 1, 0.5>]
  67.   }
  68.   turbulence Turbulence
  69.   samples Samples
  70.   aa_level 0
  71.   aa_threshold 0.3
  72.   scale 1.5
  73. }
  74.  
  75. //
  76. // Declare constant halo with planar mapping
  77. //
  78.  
  79. #declare Texture01 =
  80. texture {
  81.   Texture
  82.   halo {
  83.     Halo
  84.     constant
  85.     planar_mapping
  86.   }
  87. }
  88.  
  89. //
  90. // Declare constant halo with spherical mapping
  91. //
  92.  
  93. #declare Texture02 =
  94. texture {
  95.   Texture
  96.   halo {
  97.     Halo
  98.     constant
  99.     spherical_mapping
  100.   }
  101. }
  102.  
  103. //
  104. // Declare constant halo with cylindrical mapping
  105. //
  106.  
  107. #declare Texture03 =
  108. texture {
  109.   Texture
  110.   halo {
  111.     Halo
  112.     constant
  113.     cylindrical_mapping
  114.     rotate 90*x
  115.   }
  116. }
  117.  
  118. //
  119. // Declare constant halo with box mapping
  120. //
  121.  
  122. #declare Texture04 =
  123. texture {
  124.   Texture
  125.   halo {
  126.     Halo
  127.     constant
  128.     box_mapping
  129.   }
  130. }
  131.  
  132. //
  133. // Declare linear halo with planar mapping
  134. //
  135.  
  136. #declare Texture05 = 
  137. texture {
  138.   Texture
  139.   halo {
  140.     Halo
  141.     linear
  142.     planar_mapping
  143.   }
  144. }
  145.  
  146. //
  147. // Declare linear halo with spherical mapping
  148. //
  149.  
  150. #declare Texture06 = 
  151. texture {
  152.   Texture
  153.   halo {
  154.     Halo
  155.     linear
  156.     spherical_mapping
  157.   }
  158. }
  159.  
  160. //
  161. // Declare linear halo with cylindrical mapping
  162. //
  163.  
  164. #declare Texture07 = 
  165. texture {
  166.   Texture
  167.   halo {
  168.     Halo
  169.     linear
  170.     cylindrical_mapping
  171.     rotate 90*x
  172.   }
  173. }
  174.  
  175. //
  176. // Declare linear halo with box mapping
  177. //
  178.  
  179. #declare Texture08 = 
  180. texture {
  181.   Texture
  182.   halo {
  183.     Halo
  184.     linear
  185.     box_mapping
  186.   }
  187. }
  188.  
  189. //
  190. // Declare cubic halo with planar mapping
  191. //
  192.  
  193. #declare Texture09 = 
  194. texture {
  195.   Texture
  196.   halo {
  197.     Halo
  198.     cubic
  199.     planar_mapping
  200.   }
  201. }
  202.  
  203. //
  204. // Declare cubic halo with spherical mapping
  205. //
  206.  
  207. #declare Texture10 = 
  208. texture {
  209.   Texture
  210.   halo {
  211.     Halo
  212.     cubic
  213.     spherical_mapping
  214.   }
  215. }
  216.  
  217. //
  218. // Declare cubic halo with cylindrical mapping
  219. //
  220.  
  221. #declare Texture11 = 
  222. texture {
  223.   Texture
  224.   halo {
  225.     Halo
  226.     cubic
  227.     cylindrical_mapping
  228.     rotate 90*x
  229.   }
  230. }
  231.  
  232. //
  233. // Declare cubic halo with box mapping
  234. //
  235.  
  236. #declare Texture12 = 
  237. texture {
  238.   Texture
  239.   halo {
  240.     Halo
  241.     cubic
  242.     box_mapping
  243.   }
  244. }
  245.  
  246.  
  247. //
  248. // Declare poly halo with planar mapping
  249. //
  250.  
  251. #declare Texture13 = 
  252. texture {
  253.   Texture
  254.   halo {
  255.     Halo
  256.     poly
  257.     planar_mapping
  258.   }
  259. }
  260.  
  261. //
  262. // Declare poly halo with spherical mapping
  263. //
  264.  
  265. #declare Texture14 = 
  266. texture {
  267.   Texture
  268.   halo {
  269.     Halo
  270.     poly
  271.     spherical_mapping
  272.   }
  273. }
  274.  
  275. //
  276. // Declare poly halo with cylindrical mapping
  277. //
  278.  
  279. #declare Texture15 = 
  280. texture {
  281.   Texture
  282.   halo {
  283.     Halo
  284.     poly
  285.     cylindrical_mapping
  286.     rotate 90*x
  287.   }
  288. }
  289.  
  290. //
  291. // Declare poly halo with box mapping
  292. //
  293.  
  294. #declare Texture16 = 
  295. texture {
  296.   Texture
  297.   halo {
  298.     Halo
  299.     poly
  300.     box_mapping
  301.   }
  302. }
  303.  
  304. object { Thing texture { Texture01 } translate <Col1, Row1, 0> }
  305.  
  306. object { Thing texture { Texture02 } translate <Col2, Row1, 0> }
  307.  
  308. object { Thing texture { Texture03 } translate <Col3, Row1, 0> }
  309.  
  310. object { Thing texture { Texture04 } translate <Col4, Row1, 0> }
  311.  
  312. object { Thing texture { Texture05 } translate <Col1, Row2, 0> }
  313.  
  314. object { Thing texture { Texture06 } translate <Col2, Row2, 0> }
  315.  
  316. object { Thing texture { Texture07 } translate <Col3, Row2, 0> }
  317.  
  318. object { Thing texture { Texture08 } translate <Col4, Row2, 0> }
  319.  
  320. object { Thing texture { Texture09 } translate <Col1, Row3, 0> }
  321.  
  322. object { Thing texture { Texture10 } translate <Col2, Row3, 0> }
  323.  
  324. object { Thing texture { Texture11 } translate <Col3, Row3, 0> }
  325.  
  326. object { Thing texture { Texture12 } translate <Col4, Row3, 0> }
  327.  
  328. object { Thing texture { Texture13 } translate <Col1, Row4, 0> }
  329.  
  330. object { Thing texture { Texture14 } translate <Col2, Row4, 0> }
  331.  
  332. object { Thing texture { Texture15 } translate <Col3, Row4, 0> }
  333.  
  334. object { Thing texture { Texture16 } translate <Col4, Row4, 0> }
  335.  
  336.