home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / include / stars.inc < prev    next >
Encoding:
Text File  |  2000-04-06  |  5.4 KB  |  152 lines

  1. /*
  2.          Persistence of Vision Raytracer Version 3.1
  3.  
  4.  
  5. Here are some updated/additional Starfield textures which you can include 
  6. in distribution with POVRAY 3.1.  These textures use some of the new 
  7. features in POVRAY 3.1.  The starfields become more "dense" as you progress 
  8. from Starfield1 to Starfield6 and add a little color since all stars are not 
  9. white but light shades of white, blue, red, and yellow.
  10.  
  11. Respectfully;
  12.  
  13. Jeff Burton
  14. jburton@apex.net
  15. http://www.geocities.com/SoHo/2365
  16. */
  17.  
  18.  
  19. #declare Starfield1 =
  20. texture {
  21.     pigment {
  22.         granite
  23.         color_map {
  24.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  25.             [ 0.270  0.280 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  26.             [ 0.280  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  27.             [ 0.470  0.480 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  28.             [ 0.480  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  29.             [ 0.680  0.690 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  30.             [ 0.690  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  31.             [ 0.880  0.890 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  32.             [ 0.890  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  33.         }
  34.     turbulence 1
  35.     sine_wave
  36.     scale .5
  37.     }
  38.     finish { diffuse 0 ambient 1 }
  39. }
  40.  
  41. #declare Starfield2 =
  42. texture {
  43.     pigment {
  44.         granite
  45.         color_map {
  46.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  47.             [ 0.270  0.285 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  48.             [ 0.285  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  49.             [ 0.470  0.485 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  50.             [ 0.485  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  51.             [ 0.680  0.695 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  52.             [ 0.695  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  53.             [ 0.880  0.895 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  54.             [ 0.895  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  55.         }
  56.     turbulence 1
  57.     sine_wave
  58.     scale .5
  59.     }
  60.     finish { diffuse 0 ambient 1 }
  61. }
  62.  
  63. #declare Starfield3 =
  64. texture {
  65.     pigment {
  66.         granite
  67.         color_map {
  68.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  69.             [ 0.270  0.290 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  70.             [ 0.290  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  71.             [ 0.470  0.490 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  72.             [ 0.490  0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  73.             [ 0.680  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  74.             [ 0.700  0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  75.             [ 0.880  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  76.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  77.         }
  78.     turbulence 1
  79.     sine_wave
  80.     scale .5
  81.     }
  82.     finish { diffuse 0 ambient 1 }
  83. }
  84.  
  85. #declare Starfield4 =
  86. texture {
  87.     pigment {
  88.         granite
  89.         color_map {
  90.             [ 0.000  0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  91.             [ 0.270  0.300 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  92.             [ 0.300  0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  93.             [ 0.470  0.500 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  94.             [ 0.500  0.670 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  95.             [ 0.670  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  96.             [ 0.700  0.870 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  97.             [ 0.870  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  98.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  99.         }
  100.     turbulence 1
  101.     sine_wave
  102.     scale .5
  103.     }
  104.     finish { diffuse 0 ambient 1 }
  105. }
  106.  
  107. #declare Starfield5 =
  108. texture {
  109.     pigment {
  110.         granite
  111.         color_map {
  112.             [ 0.000  0.260 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  113.             [ 0.260  0.300 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  114.             [ 0.300  0.460 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  115.             [ 0.460  0.500 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  116.             [ 0.500  0.660 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  117.             [ 0.660  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  118.             [ 0.700  0.860 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  119.             [ 0.860  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  120.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  121.         }
  122.     turbulence 1
  123.     sine_wave
  124.     scale .5
  125.     }
  126.     finish { diffuse 0 ambient 1 }
  127. }
  128.  
  129. #declare Starfield6 =
  130. texture {
  131.     pigment {
  132.         granite
  133.         color_map {
  134.             [ 0.000  0.250 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  135.             [ 0.250  0.300 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
  136.             [ 0.300  0.450 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  137.             [ 0.450  0.500 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
  138.             [ 0.500  0.650 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  139.             [ 0.650  0.700 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
  140.             [ 0.700  0.850 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  141.             [ 0.850  0.900 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
  142.             [ 0.900  1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
  143.         }
  144.     turbulence 1
  145.     sine_wave
  146.     scale .5
  147.     }
  148.     finish { diffuse 0 ambient 1 }
  149. }
  150.  
  151.  
  152.