Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "colors.inc"
- #include "textures.inc"
- #include "shapes.inc"
- global_settings {charset utf8}
- //wieżyczka kwadratowa
- #declare wk = union{
- box{<0,0,4> <4,6,0>texture{pigment {Grey}}}
- box{<0,6,4> <0.3,7,0>texture{pigment {Grey}}}
- box{<4,6,4> <3.7,7,0>texture{pigment {Grey}}}
- box{<0,6,4> <4,7,3.7>texture{pigment {Grey}}}
- box{<0,6,0> <4,7,0.3>texture{pigment {Grey}}}
- union{
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*1.2}
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*2.2}
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
- }
- union{
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*1.2}
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*2.2}
- box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
- translate z*3.5
- }
- union{
- box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*1.2}
- box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*2.2}
- }
- union{
- box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*1.2}
- box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*2.2}
- translate x*3.5
- }
- }
- //baszta kwadratowa z dachem
- #declare bk = union{
- box{<0,0,4> <4,6,0>texture{pigment {Grey}}}
- box{<0,6,4> <0.3,7,0>texture{pigment {Grey}}}
- box{<4,6,4> <3.7,7,0>texture{pigment {Grey}}}
- box{<0,6,4> <4,7,3.7>texture{pigment {Grey}}}
- box{<0,6,0> <4,7,0.3>texture{pigment {Grey}}}
- union{
- box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
- box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
- }
- union{
- box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
- box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
- translate z*3.5
- }
- prism{
- conic_sweep
- linear_spline
- 0,2,5
- <1,1>,<-1,1>,<-1,-1>,<1,-1><1,1>
- rotate<180,0,0>
- translate<1.5,9.5,2>
- scale<1.2,1,1.2>
- texture{Cork pigment{Black}}
- }
- }
- //brama kwadratowa
- #declare bramakw = union{
- box{<0,4,0.5> <6,5,0>}
- box{<0,4,0.5> <6,5,0> translate z*3.5}
- difference {box{<0,0,4> <6,4,0>}
- box{<1,0,5> <5,3,-3> texture { Glass} /*finish{ambient 1}*/ } }
- union{
- box{<0,5,0.5> <1,5.5,0>}
- box{<2.5,5,0.5> <3.5,5.5,0>}
- box{<5,5,0.5> <6,5.5,0>}
- }
- union{
- box{<0,5,0.5> <1,5.5,0>}
- box{<2.5,5,0.5> <3.5,5.5,0>}
- box{<5,5,0.5> <6,5.5,0>}
- translate z*3.5
- }
- union{
- box{<1,0,0> <5,0.2,4> texture {Rosewood} translate y*-0.18 }
- box{<1,0,-4> <5,0.2,0> texture {Rosewood} translate y*-0.18 }
- cylinder
- {
- <1.2,0,-3.8>, <1,4,0>, 0.1
- open texture{pigment{Black}}
- }
- cylinder
- {
- <4.8,0,-3.8>, <5,4,0>, 0.1
- open texture{pigment{Black}}
- }
- }
- scale<0,1.5,0>
- texture{pigment {Grey}}
- }
- //do budowli
- #declare bud = union{
- difference{
- box{<0,0,4> <11,5,0>}
- union{
- box{<1,1,5> <2,2,-1> }
- box{<3,1,5> <4,2,-1> }
- box{<5,1,5> <6,2,-1> }
- box{<7,1,5> <8,2,-1> }
- box{<9,1,5> <10,2,-1> }
- box{<1,3,5> <2,4,-1> }
- box{<3,3,5> <4,4,-1> }
- box{<5,3,5> <6,4,-1> }
- box{<7,3,5> <8,4,-1> }
- box{<9,3,5> <10,4,-1> }
- //texture{ Green_Glass}
- }
- }
- prism{
- conic_sweep
- linear_spline
- 0,2,5
- <1,1>,<-1,1>,<-1,-1>,<1,-1><1,1>
- //<0,0>,<4,0>,<4,4>,<0,4><0,0>
- rotate<180,0,0>
- translate<2,7,2>
- scale<2.75,1,1>
- texture{Cork pigment{Brown}}
- }
- texture{pigment {Grey}}
- }
- //studnia
- #declare studnia = union{
- //light_source {<0,0.2,0> Blue}
- lathe { linear_spline 4, <1, 0>, <1.5, 0>, <1.5, 2>, <1, 2> pigment {Grey} }
- cone{ < 0,4,0>,2 < 0,5,0>,0 texture{pigment{Brown}}}
- cylinder{
- <-1.5,0,-1>, <-1.5,4,-1>, 0.1
- open
- }
- cylinder {
- <-1.5,0,1>, <-1.5,4,1>, 0.1
- open
- }
- cylinder{
- <1.5,0,-1>, <1.5,4,-1>, 0.1
- open
- }
- cylinder {
- <1.5,0,1>, <1.5,4,1>, 0.1
- open
- }
- }
- #declare flaga = union{
- box{<0,2,0><2,3,0.1>}
- cylinder {
- <0,0,0>, <0,2,0>, 0.1
- open texture{pigment {Grey}}
- }
- }
- union{
- object{bud rotate<0,90,0> translate x*11}
- object{bud rotate<0,90,0> translate x*-4}
- object{studnia scale 0.5 translate<5,0,-5>}
- union{
- union{
- object{bramakw scale 0.8 translate<5,0,-25>}
- object{ bud translate <10,0,-25>}
- object{ bud translate <-6,0,-25>}
- object{ wk translate <-10,0,-25> }
- object{flaga rotate<0,180,0> translate<-9,7,-25> texture{pigment{Green}}}
- object{ wk translate <21,0,-25> }
- object{flaga rotate<0,180,0> translate<24,7,-25> texture{pigment{Green}}}
- rotate<0,180,0>
- translate<15,0,-11>
- }
- union{
- object{bramakw scale 0.8 translate<5,0,-25>}
- object{ bud translate <10,0,-25>}
- object{ bud translate <-6,0,-25>}
- object{ wk translate <-10,0,-25> }
- object{flaga translate <-9,7,-25> texture{pigment{Green}}}
- object{ wk translate <21,0,-25> }
- object{flaga translate <24,7,-25> texture{pigment{Green}}}
- }
- object{bud rotate<0,90,0> translate <21,0,-10>}
- object{bud rotate<0,90,0> translate <21,0,0>}
- object{bud rotate<0,90,0> translate <21,0,10>}
- object{bud rotate<0,90,0> translate <-10,0,-10>}
- object{bud rotate<0,90,0> translate <-10,0,0>}
- object{bud rotate<0,90,0> translate <-10,0,10>}
- translate x*-2
- }
- }
- /* Jak zapisywać polskie znaki
- Ą \u0104 Ć \u0106 Ę \u0118 Ł \u0141 Ń \u0143 Ó \u00D3 Ś \u015A Ź \u0179 Ż \u017B
- ą \u0105 ć \u0107 ę \u0119 ł \u0142 ń \u0144 ó \u00F3 ś \u015B ź \u017A ż \u017C
- */
- text {
- ttf "cour.ttf" "Avalon" 0.2, 0
- pigment { color Gold }
- finish {ambient 1 diffuse 0.4}
- no_shadow
- rotate <0,0,0>
- scale 1
- translate<0,5, -40>
- }
- plane{<0,1,0>,0 texture{
- pigment{ color Green}
- normal { bumps 0.75 scale 0.025 }
- // finish { phong 0.1 }
- } }
- #if(clock<5)
- background {rgb<0,0,0.1*clock*2>}
- global_settings {
- assumed_gamma 10/clock
- } #end
- #if(clock>=5&clock<=70)
- background {rgb<0,0,1>}
- global_settings {
- assumed_gamma 1}
- #end
- #if(clock<=6) camera {location <6,1,-50> look_at 0} #end
- #if(clock>6 & clock <21) camera {location <6,1,-60+((clock-5)*2)> look_at 0} #end
- #if(clock=21) camera {location <6,1,-50+((21-5)*2)> look_at <0,0,0>} #end
- #if(clock=22) camera {location <6,1,-50+((21-5)*2)> look_at <-15,0,0>} #end
- #if(clock=23) camera {location <6,1,-50+((21-5)*2)> look_at <-45,0,0>} #end
- #if(clock=24) camera {location <6,1,-50+((21-5)*2)> look_at <-80,0,0>} #end
- #if(clock=25) camera {location <6,1,-50+((21-5)*2)> look_at <-100,0,0>} #end
- #if(clock=26) camera {location <6,1,-50+((21-5)*2)> look_at <-80,0,0>} #end
- #if(clock=27) camera {location <6,1,-50+((21-5)*2)> look_at <-45,0,0>} #end
- #if(clock=28) camera {location <6,1,-50+((21-5)*2)> look_at <-15,0,0>} #end
- #if(clock=29) camera {location <6,1,-50+((21-5)*2)> look_at <0,0,0>} #end
- #if(clock=30) camera {location <6,1,-50+((21-5)*2)> look_at <0,0,0>} #end
- #if(clock=31) camera {location <6,1,-50+((21-5)*2)> look_at <10,0,0>} #end
- #if(clock=32) camera {location <6,1,-50+((21-5)*2)> look_at <30,0,0>} #end
- #if(clock=33) camera {location <6,1,-50+((21-5)*2)> look_at <60,0,0>} #end
- #if(clock=34) camera {location <6,1,-50+((21-5)*2)> look_at <90,0,0>} #end
- #if(clock=35) camera {location <6,1,-50+((21-5)*2)> look_at <50,0,0>} #end
- #if(clock=36) camera {location <6,1,-50+((21-5)*2)> look_at <30,0,0>} #end
- #if(clock=37) camera {location <6,1,-50+((21-5)*2)> look_at <10,0,0>} #end
- #if(clock=38) camera {location <6,1,-50+((21-5)*2)> look_at <0,2,10>} #end
- #if(clock=39) camera {location <6,1,-50+((21-5)*2)> look_at <0,5,20>} #end
- #if(clock=40) camera {location <6,1,-50+((21-5)*2)> look_at <0,10,40>} #end
- #if(clock=41) camera {location <6,1,-50+((21-5)*2)> look_at <0,5,20>} #end
- #if(clock=42) camera {location <6,1,-50+((21-5)*2)> look_at <0,2,10>} #end
- #if(clock=43) camera {location <6,1,-50+((21-5)*2)> look_at <0,5,0>} #end
- #if(clock=44) camera {location <6,1,-50+((21-5)*2)> look_at <0,10,0>} #end
- #if(clock=45) camera {location <6,1,-50+((21-5)*2)> look_at <0,20,0>} #end
- #if(clock=46) camera {location <6,1,-50+((21-5)*2)> look_at <0,30,0>} #end
- #if(clock=47) camera {location <6,1,-50+((21-5)*2)> look_at <0,60,0>} #end
- #if(clock=48) camera {location <6,1,-50+((21-5)*2)> look_at <0,70,0>} #end
- #if(clock=49) camera {location <6,1,-50+((21-5)*2)> look_at <0,80,0>} #end
- #if(clock=50) camera {location <6,1,-50+((21-5)*2)> look_at <0,85,0>} #end
- #if(clock=51) camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>} #end
- #if(clock=52)
- camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
- background {rgb<0,0,0.8>}
- global_settings {
- assumed_gamma 1.5
- } #end
- #if(clock=52)
- camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
- background {rgb<0,0,0.4>}
- global_settings {
- assumed_gamma 3
- } #end
- #if(clock=53)
- camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
- background {rgb<0,0,0.2>}
- global_settings {
- assumed_gamma 4
- } #end
- #if(clock=54)
- camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
- background {rgb<0,0,0.1>}
- global_settings {
- assumed_gamma 5
- } #end
- #if(clock>54)
- camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
- background {rgb<0,0,0>}
- global_settings {
- assumed_gamma 10
- } #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement