// Persistence Of Vision raytracer version 3.5 sample file. // Demo showing several surfaces of revolution ... Dieter Bayer, June 1994 // dmf -- changed glass textures to solid pigments for speed's sake. // // -w320 -h240 // -w800 -h600 +a0.3 global_settings { assumed_gamma 2.2 } #include "colors.inc" #include "textures.inc" camera { location <40, 40, -80> look_at <0, 5, 0> angle 26 } light_source { <90, 30, -60> colour White } light_source { <-90, 100, -60> colour White spotlight point_at <0,0,0> radius 45 falloff 60 } background { color SkyBlue } plane { y, 0 pigment { rgb <0.75, 0.5, 1.0> } finish { ambient 0.2 diffuse 0.8 } } #declare shape1 = lathe { cubic_spline 12, <0.000000, 0.000000>, <0.000000, 0.000000>, <0.277027, 0.000000>, <0.277027, 0.000000>, <0.064189, 0.081081>, <0.057432, 0.256757>, <0.260135, 0.422297>, <0.152027, 1.000000>, <0.128378, 0.996622>, <0.222973, 0.452703>, <0.000000, 0.307432>, <0.023649, 0.523649> scale <1.5, 1.5, 1.5> } #declare shape2 = lathe { cubic_spline 13, <0.000000, 0.000000>, <0.000000, 0.000000>, <0.172414, 0.013793>, <0.203448, 0.096552>, <0.210345, 0.203448>, <0.210345, 0.634483>, <0.210345, 1.000000>, <0.196552, 1.000000>, <0.193103, 0.651724>, <0.182759, 0.206897>, <0.151724, 0.096552>, <0.000000, 0.065517>, <0.000000, 0.065517> scale <2, 1.5, 2> } #declare shape3 = lathe { cubic_spline 13, <0.000000, 0.000000>, <0.000000, 0.000000>, <0.193050, 0.003861>, <0.193050, 0.019305>, <0.073359, 0.038610>, <0.027027, 0.135135>, <0.023166, 0.559846>, <0.100386, 0.679537>, <0.359073, 0.996139>, <0.335907, 1.000000>, <0.096525, 0.725869>, <0.000000, 0.691120>, <0.000000, 0.691120> scale <1.5, 1.5, 1.5> } #declare shape4 = lathe { cubic_spline 12, <0.000000, 0.000000>, <0.000000, 0.000000>, <0.460606, 0.036364>, <0.515152, 0.303030>, <0.157576, 0.660606>, <0.248485, 1.000000>, <0.230303, 1.000000>, <0.139394, 0.660606>, <0.496970, 0.296970>, <0.448485, 0.054545>, <0.000000, 0.018182>, <0.000000, 0.018182> scale <1.5, 1.5, 1.5> } object { shape1 texture { pigment { Red } finish { Shiny metallic } } scale <10, 10, 10> translate <-10, 0.002, 10> } object { shape2 texture { pigment { White } finish { Shiny metallic } } scale <8, 8, 8> translate <10, 0.002, 10> } object { shape3 texture { pigment { Yellow } finish { Shiny metallic } } scale <10, 10, 10> translate <-10, 0.002, -10> } object { shape4 texture { pigment { Green } finish { Shiny metallic } } scale <10, 10, 10> translate <10, 0.002, -10> }