// Kamera camera { sky <0,0,2> // Vektor, der festlegt, wo oben ist. right <-4/3,0,0> // Bildverhältnis 4:3, plus Spiegelung für rechtsdrehendes System location <15,15,10> // Position der Kamera look_at <0, 0, 0> // Blickrichtung (erscheint im Bildmittelpunkt) angle 30 // Öffnungswinkel der Kamera } // Lichtquellen light_source { <6,-2,8> // Position des Lichts color rgb <1,1,1> // Farbe des Lichts, als rot-grün-blau Vektor (Komponenten 0 bis 1) } light_source { <3,10,3> // Position des Lichts color rgb <1,1,1> // Farbe des Lichts, als rot-grün-blau Vektor (Komponenten 0 bis 1) } // Create an infinite sphere around scene and allow any pigment on it sky_sphere{ pigment { gradient <0,1,0> color_map { [0.00 rgb <0.6,0.7,1.0>] [0.35 rgb <0.0,0.1,0.8>] [0.65 rgb <0.0,0.1,0.8>] [1.00 rgb <0.6,0.7,1.0>] } scale 2 } // end of pigment } //end of skysphere ------------------------------------- plane { z,-1.5 // Ebene, senkrecht zu z=<0,0,1>, mit Abstand 0 zum Ursprung pigment { // Schachbrett, durchsichtig (t steht für transmit, hier 80% lichtdurchlässig checker color rgb <1,1,1,0.8>, color rgb <0.2,0.2,0.2,0.8> } #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} finish { phong 0.95 reflection {0.95} } } } object{rund pigment{color rgb x} translate <2,0,0> rotate 180*z } #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} finish { phong 0.95 reflection {0.95} } } object{rund pigment{color rgb x} finish { phong 0.95 reflection {0.95} } } cylinder { <0,0,0>,<0,2.00,0>, 0.20 pigment {color rgb x} finish { phong 0.95 reflection {0.95} } scale <1,1,1> rotate<0,0,0> translate<0,0,0> rotate 90*z translate <0,0,1> } cylinder { <0,0,0>,<0,2.00,0>, 0.20 pigment {color rgb x} finish { phong 0.95 reflection {0.95} } scale <1,1,1> rotate<0,0,0> translate<0,0,0> rotate 90*z translate <0,0,-1> } #declare chainred = union { #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} } object{rund pigment{color rgb x} finish { phong 0.95 reflection {0.95} } translate <2,0,0> rotate 180*z } #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} } object{rund pigment{color rgb x} finish { phong 0.95 reflection {0.95} } } cylinder { <0,0,0>,<0,2.00,0>, 0.20 pigment {color rgb x} finish { phong 0.95 reflection {0.95} } scale <1,1,1> rotate<0,0,0> translate<0,0,0> rotate 90*z translate <0,0,1> } cylinder { <0,0,0>,<0,2.00,0>, 0.20 pigment {color rgb x} finish { phong 0.95 reflection {0.95} } scale <1,1,1> rotate<0,0,0> translate<0,0,0> rotate 90*z translate <0,0,-1> } } object { chainred translate <3.65,0,0> rotate 90*x finish { phong 0.95 reflection {0.95} } } object { chainred translate <-3.6,0,0> rotate 90*x finish { phong 0.95 reflection {0.95} } } object { chainred translate <-7.2,0,0> finish { phong 0.95 reflection {0.95} } } #declare ketteganz = union { object { chainred translate <3.65,0,0> rotate 90*x finish { phong 0.95 reflection {0.95} } } object { chainred translate <-3.6,0,0> rotate 90*x finish { phong 0.95 reflection {0.95} } } object { chainred translate <-7.2,0,0> finish { phong 0.95 reflection {0.95} } } }