// Weinglas mit Brechung und Photon-Tracing // ---------------------------------------------------------------------- #version 3.5; #include "textures.inc" background {color rgb <0.3, 0.3, 0.3>} // ---------------------------------------------------------------------- // Photonen global_settings { photons { count 50000 autostop 0 jitter .4 } } // ---------------------------------------------------------------------- // Kamera camera { location <20, 30, -40> look_at <0, 4.5, 0> angle 20 } // ---------------------------------------------------------------------- // Lichtquellen light_source { <-10, 100, -10> color rgb <1,1,1> area_light <2, 0, 0> <0, 0, 2> 4, 4 adaptive 2 jitter circular photons {refraction on reflection on} } light_source { <100, 100, -100> color rgb <1,1,1> area_light <2, 0, 0> <0, 0, 2> 4, 4 adaptive 2 jitter circular photons {refraction on reflection on} } // ---------------------------------------------------------------------- // Geometrische Objekte //--------------------- //Grundebene object{ plane { y, 0 texture { pigment { checker color rgb <0.4, 0.4, 0.4>, color rgb <0.8, 0.8, 0.8> scale 5 } } finish { ambient 0.1 diffuse 0.4 reflection 0.6 } } } //--------------------- // Glas (Rotationskörper) object{ sor { 8, <0.0, -0.5>, <3.0, 0.0>, <1.0, 0.2>, <0.5, 0.4>, <0.5, 4.0>, <1.0, 5.0>, <3.0, 10.0>, <1.0, 11.0> open material { M_NB_Glass } translate <0,0,0> } photons { target 0.4 refraction on reflection on } }