// Persistence of Vision Ray Tracer Scene Description File // File: Photon Bubble.pov // Vers: 3.5 // Desc: Blob bubble rising through glass box // Date: 07/11/2002 // Auth: Andy Cocker // Needs Chris Colefax's ClockMod include file. // Run with +kff100 #version 3.5; #include "colors.inc" #include "AutoClck.mcr" global_settings { max_trace_level 10 assumed_gamma 1.0 photons { spacing 0.0075} } // ---------------------------------------- camera { location <0.0, 1.5, -4.0> direction 1.5*z right x*image_width/image_height look_at <0.0, 0.0, 0.0> } // ---------------------------------------- plane { y, -10 pigment { color rgb <0.3,0.5,0.7> } finish { diffuse 0.3} } #declare MyTranslate=<0,-1,0>; Declare_From (MyTranslate,0) Declare_To (MyTranslate,1,<0,1.5,0>) light_source {<0, 0, 0> color rgb 6 translate <-3.5,0,0> rotate y*120 translate <0,2.1,0> } #declare RadiusVal = 0.8; #declare StrengthVal = 1.0; #declare MyBlobs= blob { threshold 0.6 sphere { < 0, 1.1, 0>, RadiusVal, StrengthVal } sphere { <0, -0.6, 0>, RadiusVal, StrengthVal } sphere { MyTranslate, RadiusVal/1.5, StrengthVal/1 } } #declare BoxCut= union { box {<0.45,-0.42,-0.42>,<0.51,0.92,0.42>}//Right first box {<0.45,-0.42,-0.42>,<0.51,0.92,0.42> rotate y*90} box {<0.45,-0.42,-0.42>,<0.51,0.92,0.42> rotate y*180} box {<0.45,-0.42,-0.42>,<0.51,0.92,0.42> rotate y*270} } difference { box {<-0.5,-0.5,-0.5>,<0.5,1,0.5>} object {BoxCut} object {MyBlobs} interior { ior 1.5 /*dispersion 1.4 dispersion_samples 14*/} pigment { rgbf <1,1,1,.95>} finish { specular 1 roughness 0.005 ambient 0 reflection {0.1,0.4 fresnel}} rotate y*-35 photons { target 1 reflection on refraction on collect off} }