// Das ist ein Kommentar und bewirkt nichts. // Kamera camera { sky <0,0,1> // Vektor, der festlegt, wo oben ist. right <-4/3,0,0> // Bildverhältnis 4:3, plus Spiegelung für rechtsdrehendes System location <10,2,5> // Position der Kamera look_at <0, 0, 0> // Blickrichtung (erscheint im Bildmittelpunkt) angle 70 // Ö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) } // Boden plane { z,0 // 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 rgbt <1,1,1,0.8>, color rgbt <0.2,0.2,0.2,0.8> } } // Objekte #declare rund = difference { torus {1, 0.2} plane {x, 0} } #declare ovale = union { object {rund pigment {color rgb x} finish { phong 0.95 reflection {0.95} } rotate 270*z translate <0,1,1> } cylinder {<0,1,0>,<0,2,0>,0.2 pigment { color rgb x } finish { phong 0.95 reflection {0.95} } } cylinder {<0,1,2>,<0,2,2>,0.2 pigment { color rgb x } finish { phong 0.95 reflection {0.95} } } object {rund pigment {color rgb x} finish { phong 0.95 reflection {0.95} } rotate 90*z translate <0,2,1> } } #declare kette = union { object {ovale pigment { color rgb x } finish { phong 0.95 reflection {0.95} } } object {ovale pigment { color rgb x } finish { phong 0.95 reflection {0.95} } rotate 90*y translate <-1,2.6,1> } } object {kette} object {kette translate <0,5.4,0> } object {kette translate <0,-5.2,0> } object {kette translate <0,-10.6,0> }