// Persistence of Vision Ray Tracer Scene Description File // File: ?.pov // Vers: 3.6 // Desc: Basic Scene Example // Date: mm/dd/yy // Auth: ? // #version 3.6; #include "colors.inc" #include "glass.inc" global_settings { assumed_gamma 1.0 photons { count 100000 media 1000000} } // ---------------------------------------- camera { location <3.5, 1.3, -3.7>*.9 direction 1.5*z right x*image_width/image_height look_at <0.0, 0.0, 0.0> } sky_sphere { pigment { gradient y color_map { [0.0 rgb <0.6,0.7,1.0>] [0.7 rgb <0.0,0.1,0.8>] } } } light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <-30, 30, -30> } // ---------------------------------------- plane { y, 0 pigment { color rgb <0.7,0.5,0.3> } } sphere { 0.0, 1 texture { pigment { radial frequency 8 color_map { [0.00 color rgb <1.0,0.4,0.2> ] [0.33 color rgb <0.2,0.4,1.0> ] [0.66 color rgb <0.4,1.0,0.2> ] [1.00 color rgb <1.0,0.4,0.2> ] } } finish{ specular 0.6 } } scale 0.1 translate <0, +.1, -1> } #declare Table = union{ superellipsoid { <0.1, 0.1> pigment { color rgb 0.9} scale <0.05, 0.4, 0.05> translate <1, +0.2, -1> } superellipsoid { <0.1, 0.1> pigment { color rgb 0.9} scale <0.05, 0.4, 0.05> translate <1, +0.2, -2> } superellipsoid { <0.1, 0.1> pigment { color rgb 0.9} scale <0.05, 0.4, 0.05> translate <2, +0.2, -1> } superellipsoid { <0.1, 0.1> pigment { color rgb 0.9} scale <0.05, 0.4, 0.05> translate <2, +0.2, -2> } cylinder { y*-1, y*1, 1 pigment { color rgb 0.9} scale <1, 0.05, 1> translate <1.5, 0.6, -1.5> } } #declare Glass = //union{ difference{ cylinder{ 0, y*.12, 0.033} sphere { y*0.015, 0.005 scale <5,1,5> } cylinder{ y*0.015, y*.18, .03} texture { pigment { Col_Glass_General } finish { specular 0.9 roughness 0.001 ambient 0 diffuse 0 reflection { 0.0, 1.0 fresnel on } conserve_energy } } interior { I_Glass4 } } #declare Water = union{ sphere { y*0.015, 0.0049999 scale <5,1,5> } cylinder{ y*0.015, y*.0910, .029999} texture{ pigment { color rgbf <0.9,0.9,1,1> } finish { reflection { 0, 1 fresnel on } ambient 0.2 diffuse 0.3 conserve_energy } } interior{ ior 1.33 } } object{ Table photons { target reflection on } } object{ Glass translate <1.9, 0.651, -1.87> photons { target reflection on refraction on collect on } } object{ Water translate <1.9, 0.651, -1.87> photons{ target reflection on refraction on collect on } }