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