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

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