camera{ location<5,5,-10>}
camera{ location<5,5,-10> look_at<0,0,0>}
light_source{ <0,3,-8> color <1,1,1>}
#include "colors.inc"
light_source{ <0,3,-8> color White}
#include "colors.inc"camera{ location<5,5,-10> look_at<0,0,0> } light_source{ <0,3,-8> color White}
sphere{ <0,0,0>,3 pigment{color<0.5,0.5,0.5>}}
box{ <-1,-1,-1>,<2,2,2> pigment{color<0.5,0.5,0.5>}}
cylinder{ <0,-1,0>,<0,2,0>,4 pigment{color<0.5,0.5,0.5>}}
cone{ <0,0,0>,3,<0,2,0>,2 pigment{color<0.5,0.5,0.5>}}
cone{ <0,0,0>,3,<0,2,0>,0 pigment{color<0.5,0.5,0.5>}}
plane{ y, -3.5 pigment{color White}}
sphere{ <0,0,0>,3 pigment{color<0.5,0.5,0.5>} translate<0,0,2>}
box{ <0,0,0>,<2,2,2> pigment{color<0.5,0.5,0.5>} rotate<60,0,0>}
sphere{ <0,0,0>,2 pigment{color<0.5,0.5,0.5>} scale<3,0,0>}
union{ //ta kula jest naszym obiektem A sphere{ <0,0,0>,2 pigment{color<0.5,0.5,0.5>} scale<3,0,0> } //a ten box to nasz obiekt B box{ <0,0,0>,<2,2,2> pigment{color<0.5,0.5,0.5>} translate<0,0,-3> } rotate<0,0,60>}
intersection{ //ta kula jest naszym obiektem A sphere{ <0,0,0>,2 pigment{color<0.5,0.5,0.5>} } //a ten box to nasz obiekt B box{ <0,0,0>,<2,2,2> pigment{color<0.5,0.5,0.5>} translate<0,0,-1> }}
difference{ //ta kula jest naszym obiektem A sphere{ <0,0,0>,2 pigment{color<0.5,0.5,0.5>} } //ten box to nasz obiekt B box{ <0,0,0>,<2,2,2> pigment{color<0.5,0.5,0.5>} translate<0,0,-1> } }
difference{ //ten box to nasz obiekt B box{ <0,0,0>,<2,2,2> pigment{color<0.5,0.5,0.5>} translate<0,0,-1> } //ta kula jest naszym obiektem A sphere{ <0,0,0>,2 pigment{color<0.5,0.5,0.5>} } }
#include "colors.inc"camera{ location<5,5,-10> look_at<0,0,0> } light_source{ <0,3,-8> color Red} light_source{ <10,3,-8> color Blue} box{<-1,-1,-1>,<2,2,2>pigment{color<0.5,0.5,0.5>}} sphere{ <-1,-1,-1>,0.5 pigment{color Red}}sphere{ <2,2,2>,0.5 pigment{color Red}}sphere{ <-1,2,2>,0.5 pigment{color Red}}sphere{ <2,-1,-1>,0.5 pigment{color Red}} sphere{ <2,2,-1>,0.5 pigment{color Red}} sphere{ <-1,2,-1>,0.5 pigment{color Red}}sphere{ <2,-1,2>,0.5 pigment{color Red}}box{<2,2,2>,<5,5,5>pigment{color<0.5,0.5,0.5>}} box{<-1,2,2>,<-4,5,5>pigment{color<0.5,0.5,0.5>}}box{<-1,-1,-1>,<-4,-4,-4>pigment{color<0.5,0.5,0.5>}}box{<2,-1,-1>,<5,-4,-4>pigment{color<0.5,0.5,0.5>}}
#include "colors.inc"camera{ location<-5,1,-10> look_at<0,0,0> } light_source{ <0,3,-8> color White} //cialo balwanasphere{ <0,-2,0>,2 pigment{color White}}sphere{ <0,0.5,0>,1.5 pigment{color White}}sphere{ <0,2.6,0>,1 pigment{color White}} //wegle jako guzikisphere{ <0,-0.9,-1.7>,0.15 pigment{color Black}}sphere{ <0,-0.2,-1.4>,0.15 pigment{color Black}}sphere{ <0,0.5,-1.6>,0.15 pigment{color Black}}sphere{ <0,1.2,-1.4>,0.15 pigment{color Black}}//wegle na oczy i ustasphere{ <-0.4,2.4,-1>,0.1 pigment{color Black}}sphere{ <-0.2,2.3,-1>,0.1 pigment{color Black}}sphere{ <0.1,2.3,-1>,0.1 pigment{color Black}}sphere{ <0.3,2.4,-1>,0.1 pigment{color Black}}sphere{ <0.2,2.9,-1>,0.1 pigment{color Black}}sphere{ <-0.2,2.9,-1>,0.1 pigment{color Black}} //kapeluszcylinder{ <0,3.3,0>,<0,3.45,0>,1.2 pigment{color Red}}cylinder{ <0,3.45,0>,<0,4,0>,0.6 pigment{color Red}}//miotlacylinder{ <1,1,0>,<3,4,0>,0.1 pigment{color Brown}}sphere{ <3,4,0>,0.16 pigment{color Brown}}cylinder{ <3,4,0>,<3,5,0>,0.01 pigment{color Brown}}cylinder{ <3,4,0>,<4,5,-0.1>,0.01 pigment{color Brown}}cylinder{ <3,4,0>,<3.5,5,0.1>,0.01 pigment{color Brown}}cylinder{ <3,4,0>,<3.6,5,-0.2>,0.01 pigment{color Brown}}cylinder{ <3,4,0>,<3.9,5,0.2>,0.01 pigment{color Brown}}cylinder{ <3,4,0>,<4.2,5,0>,0.01 pigment{color Brown}}cylinder{ <3,4,0>,<3.5,5,-1>,0.01 pigment{color Brown}}