#version 3.6; global_settings { assumed_gamma 1.5 } #default{ finish{ ambient 0.1 diffuse 0.9 }} //----------------------------------------- #include "colors.inc" #include "textures.inc" #include "shapes.inc" #include "shapes2.inc" global_settings { charset utf8 } //Wichtig: Anpassen!!! #declare font = "/home/michi/CourierNewBold.ttf"; camera{ location<0,1.5,-6> look_at<-0,1,1> translate<.5,0,0>} //camera{ location<-1,7,0> look_at<-1,.7,0>} light_source{ <1000,1000,-1000> color White} //Untergrund plane{ <0,1,0>, 0 texture{ pigment {color rgb <0.85,0.6,0.4>} normal {bumps 0.75 scale 0.025 } } // end of texture } // end of plane //Kirche: box{ <-0,0,1><3.5,1,-1> texture { pigment{brick color White color rgb<0.8,0.25,0.1> // Farbe Fuge, Farbe Ziegel brick_size <0.25, 0.0525, 0.125 > // Ziegelformat in x-,y-,z-Richtung mortar 0.01 // Fugendicke } } } //Turm: box{ <-2,0,1><0,2.5,-1> texture { pigment{brick color White color rgb<0.7,0.15,0.05> // Farbe Fuge, Farbe Ziegel brick_size <0.25, 0.0525, 0.125 > // Ziegelformat in x-,y-,z-Richtung mortar 0.01 // Fugendicke } } } //Spitze: object {Pyramid scale <1,.7,1> translate <-1,3.2,0> texture{Polished_Chrome pigment{color rgb<0.3,1,1>} normal {bumps 0.5 scale 0.15} finish {ambient 0.15 diffuse 0.55 phong 1}} } #declare Abstand = -1.3; #declare Spitze = <-2,2.5,Abstand>; #declare PunktA = <1,0,Abstand>; #declare PunktB = <-.5,0,Abstand>; #declare PunktC = <-2,0,Abstand>; //Punkte: sphere{ PunktA,.05 texture{pigment{color Green}} } sphere{ PunktB,.05 texture{pigment{color Green}} } sphere{ PunktC,.05 texture{pigment{color Green}} } sphere{ Spitze,.05 texture{pigment{color Green}} } //Linien: //Bekannt: cylinder{ PunktA, PunktB,0.03 texture{pigment{color Green}} } //Unbekannt: cylinder{ PunktC,PunktB,0.03 texture{pigment{color Gray}} } cylinder{ PunktA,Spitze,0.03 texture{pigment{color Gray}} } cylinder{ PunktB,Spitze,0.03 texture{pigment{color Gray}} } //Gesucht: cylinder{ PunktC,Spitze,0.03 texture{pigment{color Red}} } //Namen: text { ttf font, "A",0.1,0 scale 0.25 translate PunktA + <.08,.17,-.5> pigment{color Red } no_shadow } text { ttf font, "B",0.1,0 scale 0.25 translate PunktB + <.08,.17,-.5> pigment{color Red } no_shadow } text { ttf font, "C",0.1,0 scale 0.25 translate PunktC + <-.08,.17,-.5> pigment{color Red } no_shadow } text { ttf font, "S",0.1,0 scale 0.25 translate Spitze + <.03,-.02,-.5> pigment{color Red } no_shadow }