#include "colors.inc" #include "glass.inc" #include "cristal.inc" #include "metals.inc" /////////////////////////////////////// #declare PHOTONS = 0; #declare RADIOSITY = 0; #declare FAST_TEXTURES = 0; #declare FAST_LIGHTS = 0; #declare FAST_OBJECTS = 1; /////////////////////////////////////// global_settings { ambient_light 0.1 max_trace_level 5 // default: 5 assumed_gamma 1 #if (RADIOSITY=1) radiosity { recursion_limit 5 pretrace_start 0.08 pretrace_end 0.01 count 100 nearest_count 5 error_bound 0.05 low_error_factor .5 gray_threshold 0.0 minimum_reuse 1/1024 // 0.015 brightness 1 adc_bailout 0.01/2 } #end #if (PHOTONS=1) photons { max_trace_level 5 //count 2000000 spacing 0.015 gather 400,500 autostop 0 jitter 0 } #end } /////////////////////////////////////// //light_source { <0,6,0> color White*5 fade_distance 10 fade_power 2 } /* light_source { <0,1,0> color White #if (PHOTONS=1) photons { reflection on refraction on } #end } */ light_source { <15,6,+15> //<0,20,0> color White*5 #if (FAST_LIGHTS=0) area_light y,z,10,10 circular #end spotlight point_at <0,0,0> radius 10 falloff 20 #if (PHOTONS=1) photons { reflection on refraction on } #end } /////////////////////////////////////// camera { location <0,6,-10> look_at <0,0,0> /* focal_point < 0, 3, 0> aperture 0.4 blur_samples 100 confidence 0.9 variance 1/128 */ } /////////////////////////////////////// fog { distance 500 color rgbf<0.3, 0.5, 0.8, 0.1> fog_type 2 fog_offset 25 fog_alt 1 } /////////////////////////////////////// #declare r=seed(0); #declare r2=seed(2); /////////////////////////////////////// // sky //sky_sphere { pigment { rgb <0.1,0.2,0.9>/20 } } #macro Cristal(r) hollow #if (FAST_TEXTURES=0) texture { T_Glass3 } // or T_Glass2 interior { I_Glass1 } //pigment { color rgb } #else pigment { rgb } #end interior { ior 2 dispersion 1.4 caustics 2 } finish { //diffuse 0.3 //ambient 0.4 specular 1 } #if (PHOTONS=1) photons { target collect on refraction on reflection on } #end #end /////////////////////////////////////// object { // two_ended_mesh_cristal(min_sides,max_sides,diam,height,var,top,rand_seed) two_ended_mesh_cristal( 6, 6, 2, 7, 1, 10, r ) Cristal(r2) scale <1/2,1/2,1/2> rotate <0,0,90> rotate <35,0,0> rotate <0,-42,0> translate <0,0.8,0> //normal { wrinkles scale 10 } normal { bumps scale 10} } object { // two_ended_mesh_cristal(min_sides,max_sides,diam,height,var,top,rand_seed) two_ended_mesh_cristal( 6, 6, 2, 7, 1, 10, r ) Cristal(r2) scale <1/2,1/2,1/2> rotate <0,0,90> rotate <0,+42,0> rotate <0,0,-29> translate <0,2.32,-2> //normal { wrinkles scale 10 } normal { bumps scale 10} } ///////////////////////////////////////////////////////////////////// // pod //disc { <0,-3,0>, y, 10 plane { y, 0 pigment { White } //pigment { color rgb<0.2,0.5,1> } finish { ambient 1 reflection 0.75 } #if (PHOTONS=1) photons { target collect on refraction on reflection on } #end } //disc { <0,10,0>, y, 10 pigment { color White } finish { ambient 10 reflection 0.5 }} /* difference { cylinder { <0,-2.5,0>, <0,-20,0>, 12 } cylinder { <0,-2.4,0>, <0,-21,0>, 10 } texture { T_Silver_5E } normal { agate scale 10 } } */