// 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 <-3,30,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) } // 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 cylinder { 0, 2*x, 0.1 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Raddiu 0.1 pigment { color rgb z } // Farble blau z=<0,0,1> } cone { 2*x, 0.2, 2.4*x, 0 // Kegel von <2,0,0> zu <2.4,0,0>, Startradius 0.2, Endradius 0 pigment { color rgb z } // Farble blau z=<0,0,1> } cylinder { 0, 2*y, 0.1 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Raddiu 0.1 pigment { color rgb y } // Farble blau z=<0,0,1> } cone { 2*y, 0.2, 2.4*y, 0 // Kegel von <2,0,0> zu <2.4,0,0>, Startradius 0.2, Endradius 0 pigment { color rgb y } // Farble blau z=<0,0,1> } cylinder { 0, 2*z, 0.1 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Raddiu 0.1 pigment { color rgb x } // Farble blau z=<0,0,1> } cone { 2*z, 0.2, 2.4*z, 0 // Kegel von <2,0,0> zu <2.4,0,0>, Startradius 0.2, Endradius 0 pigment { color rgb x } // Farble blau z=<0,0,1> } #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} translate <0,0,1> } object{rund pigment{color rgb x} } cylinder { 0, x, 0.2 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Radius 0.1 pigment { color rgb x } // Farbe blau z=<0,0,1> translate <-1,0> } cylinder { 0, x, 0.2 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Radius 0.1 pigment { color rgb x } // Farbe blau z=<0,0,1> translate <-1,0,2> } #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} rotate 180*z translate<-1,0,1> } object{rund pigment{color rgb x} } #declare ring = union { #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} translate <0,0,1> } object{rund pigment{color rgb x} } cylinder { 0, x, 0.2 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Radius 0.1 pigment { color rgb x } // Farbe blau z=<0,0,1> translate <-1,0> } cylinder { 0, x, 0.2 // Zylinder vom Ursprung 0=<0,0,0> zum Punkt 2*<1,0,0>=<2,0,0>, Radius 0.1 pigment { color rgb x } // Farbe blau z=<0,0,1> translate <-1,0,2> } #declare rund = difference { // Halber torus (in x/z-Ebene, Teil mit positiver x-Koordinate torus {1, 0.2} plane {x, 0} rotate 180*z translate<-1,0,1> } object{rund pigment{color rgb x} }} object{ ring pigment{color rgb x} rotate 90*x translate <-2.6,1,1> }