// Persistence of Vision Ray Tracer Scene Description File // File: ?.pov // Vers: 3.5 // Desc: Basic Scene Example // Date: mm/dd/yy // Auth: ? // #version 3.5; #include "colors.inc" global_settings { assumed_gamma 1.0 } // ---------------------------------------- camera { location <0.0, 0.5, -8.0> direction 1.5*z right x*image_width/image_height look_at <0.0, 0.0, 0.0> } background { color rgb <0.7, 0.7, 0.7> } light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <-30, 30, -30> } // ---------------------------------------- #declare nsym = 6; #declare rad = 1; //#declare L =.5*rad; #declare L =rad/sin(radians(180/nsym))/2; #declare atom= sphere { <0, 0, 0>, 0.5 pigment{ color rgbt <0.8, 0.5, 0.5, 0.3> } finish { ambient 0.1 // ambient surface reflection color [0.1] diffuse 0.6 // amount [0.6] brilliance 1.0 // tightness of diffuse illumination [1.0] // (---phong highlight---) phong 0.5 // amount [0.0] phong_size 20 // (1.0..250+) (dull->highly polished) [40] // (---specular highlight---) specular 0.25 // amount [0.0] roughness 0.05 // (~1.0..0.0005) (dull->highly polished) [0.05] } // finish } #declare ic=0; #while(ic< nsym) union{ object{atom translate y*L} cylinder{0,y*L, rad/25 pigment{ color rgbt <0.3, 0.5, 0.8, 0.5> } finish { ambient 0.1 // ambient surface reflection color [0.1] diffuse 0.6 // amount [0.6] brilliance 1.0 // tightness of diffuse illumination [1.0] // (---phong highlight---) phong 0.5 // amount [0.0] phong_size 20 // (1.0..250+) (dull->highly polished) [40] // (---specular highlight---) specular 0.25 // amount [0.0] roughness 0.05 // (~1.0..0.0005) (dull->highly polished) [0.05] } // finish } rotate ic*360/nsym*z } #declare ic=ic+1; #end