Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.52 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #include "colors.inc"
  6. #include "textures.inc"
  7. #include "shapes.inc"
  8. global_settings {charset utf8}
  9.  
  10.  
  11. //wieżyczka kwadratowa
  12. #declare wk = union{
  13. box{<0,0,4> <4,6,0>texture{pigment {Grey}}}
  14.  
  15. box{<0,6,4> <0.3,7,0>texture{pigment {Grey}}}
  16. box{<4,6,4> <3.7,7,0>texture{pigment {Grey}}}
  17. box{<0,6,4> <4,7,3.7>texture{pigment {Grey}}}
  18. box{<0,6,0> <4,7,0.3>texture{pigment {Grey}}}
  19.  
  20. union{
  21. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
  22. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*1.2}
  23. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*2.2}
  24. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
  25.  
  26. }
  27.  
  28. union{
  29. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
  30. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*1.2}
  31. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*2.2}
  32. box{<0,6.5,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
  33. translate z*3.5
  34. }
  35.  
  36. union{
  37. box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*1.2}
  38. box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*2.2}
  39. }
  40. union{
  41. box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*1.2}
  42. box{<0.5,6.5,0> <0,7.5,0.5>texture{pigment {Grey}} translate z*2.2}
  43. translate x*3.5
  44. }
  45. }
  46.  
  47.  
  48.  
  49.  
  50. //baszta kwadratowa z dachem
  51. #declare bk = union{
  52.  
  53. box{<0,0,4> <4,6,0>texture{pigment {Grey}}}
  54.  
  55. box{<0,6,4> <0.3,7,0>texture{pigment {Grey}}}
  56. box{<4,6,4> <3.7,7,0>texture{pigment {Grey}}}
  57. box{<0,6,4> <4,7,3.7>texture{pigment {Grey}}}
  58. box{<0,6,0> <4,7,0.3>texture{pigment {Grey}}}
  59.  
  60. union{
  61. box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
  62.  
  63. box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
  64.  
  65. }
  66.  
  67. union{
  68. box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}}}
  69.  
  70. box{<0,6,0.5> <0.5,7.5,0>texture{pigment {Grey}} translate x*3.5}
  71. translate z*3.5
  72. }
  73.  
  74.  
  75.  
  76. prism{
  77. conic_sweep
  78. linear_spline
  79. 0,2,5
  80. <1,1>,<-1,1>,<-1,-1>,<1,-1><1,1>
  81. rotate<180,0,0>
  82. translate<1.5,9.5,2>
  83. scale<1.2,1,1.2>
  84. texture{Cork pigment{Black}}
  85.  
  86. }
  87. }
  88.  
  89. //brama kwadratowa
  90. #declare bramakw = union{
  91. box{<0,4,0.5> <6,5,0>}
  92. box{<0,4,0.5> <6,5,0> translate z*3.5}
  93. difference {box{<0,0,4> <6,4,0>}
  94. box{<1,0,5> <5,3,-3> texture { Glass} /*finish{ambient 1}*/ } }
  95.  
  96. union{
  97. box{<0,5,0.5> <1,5.5,0>}
  98. box{<2.5,5,0.5> <3.5,5.5,0>}
  99. box{<5,5,0.5> <6,5.5,0>}
  100.  
  101. }
  102.  
  103. union{
  104. box{<0,5,0.5> <1,5.5,0>}
  105. box{<2.5,5,0.5> <3.5,5.5,0>}
  106. box{<5,5,0.5> <6,5.5,0>}
  107. translate z*3.5
  108. }
  109.  
  110. union{
  111. box{<1,0,0> <5,0.2,4> texture {Rosewood} translate y*-0.18 }
  112. box{<1,0,-4> <5,0.2,0> texture {Rosewood} translate y*-0.18 }
  113. cylinder
  114. {
  115. <1.2,0,-3.8>, <1,4,0>, 0.1
  116. open texture{pigment{Black}}
  117. }
  118. cylinder
  119. {
  120. <4.8,0,-3.8>, <5,4,0>, 0.1
  121. open texture{pigment{Black}}
  122. }
  123.  
  124. }
  125. scale<0,1.5,0>
  126. texture{pigment {Grey}}
  127.  
  128.  
  129. }
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. //do budowli
  140. #declare bud = union{
  141.  
  142. difference{
  143. box{<0,0,4> <11,5,0>}
  144.  
  145. union{
  146. box{<1,1,5> <2,2,-1> }
  147. box{<3,1,5> <4,2,-1> }
  148. box{<5,1,5> <6,2,-1> }
  149. box{<7,1,5> <8,2,-1> }
  150. box{<9,1,5> <10,2,-1> }
  151.  
  152. box{<1,3,5> <2,4,-1> }
  153. box{<3,3,5> <4,4,-1> }
  154. box{<5,3,5> <6,4,-1> }
  155. box{<7,3,5> <8,4,-1> }
  156. box{<9,3,5> <10,4,-1> }
  157.  
  158. //texture{ Green_Glass}
  159. }
  160.  
  161. }
  162.  
  163.  
  164. prism{
  165. conic_sweep
  166. linear_spline
  167. 0,2,5
  168. <1,1>,<-1,1>,<-1,-1>,<1,-1><1,1>
  169. //<0,0>,<4,0>,<4,4>,<0,4><0,0>
  170. rotate<180,0,0>
  171. translate<2,7,2>
  172. scale<2.75,1,1>
  173. texture{Cork pigment{Brown}}
  174.  
  175. }
  176.  
  177.  
  178. texture{pigment {Grey}}
  179.  
  180.  
  181. }
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. //studnia
  190. #declare studnia = union{
  191. //light_source {<0,0.2,0> Blue}
  192.  
  193. lathe { linear_spline 4, <1, 0>, <1.5, 0>, <1.5, 2>, <1, 2> pigment {Grey} }
  194. cone{ < 0,4,0>,2 < 0,5,0>,0 texture{pigment{Brown}}}
  195.  
  196. cylinder{
  197. <-1.5,0,-1>, <-1.5,4,-1>, 0.1
  198. open
  199. }
  200. cylinder {
  201. <-1.5,0,1>, <-1.5,4,1>, 0.1
  202. open
  203. }
  204. cylinder{
  205. <1.5,0,-1>, <1.5,4,-1>, 0.1
  206. open
  207. }
  208. cylinder {
  209. <1.5,0,1>, <1.5,4,1>, 0.1
  210. open
  211. }
  212.  
  213. }
  214.  
  215. #declare flaga = union{
  216.  
  217. box{<0,2,0><2,3,0.1>}
  218. cylinder {
  219. <0,0,0>, <0,2,0>, 0.1
  220. open texture{pigment {Grey}}
  221. }
  222.  
  223.  
  224. }
  225.  
  226.  
  227.  
  228. union{
  229.  
  230. object{bud rotate<0,90,0> translate x*11}
  231. object{bud rotate<0,90,0> translate x*-4}
  232.  
  233. object{studnia scale 0.5 translate<5,0,-5>}
  234.  
  235.  
  236. union{
  237. union{
  238. object{bramakw scale 0.8 translate<5,0,-25>}
  239. object{ bud translate <10,0,-25>}
  240. object{ bud translate <-6,0,-25>}
  241. object{ wk translate <-10,0,-25> }
  242. object{flaga rotate<0,180,0> translate<-9,7,-25> texture{pigment{Green}}}
  243. object{ wk translate <21,0,-25> }
  244. object{flaga rotate<0,180,0> translate<24,7,-25> texture{pigment{Green}}}
  245. rotate<0,180,0>
  246. translate<15,0,-11>
  247. }
  248. union{
  249. object{bramakw scale 0.8 translate<5,0,-25>}
  250. object{ bud translate <10,0,-25>}
  251. object{ bud translate <-6,0,-25>}
  252. object{ wk translate <-10,0,-25> }
  253. object{flaga translate <-9,7,-25> texture{pigment{Green}}}
  254. object{ wk translate <21,0,-25> }
  255. object{flaga translate <24,7,-25> texture{pigment{Green}}}
  256.  
  257. }
  258.  
  259.  
  260. object{bud rotate<0,90,0> translate <21,0,-10>}
  261. object{bud rotate<0,90,0> translate <21,0,0>}
  262. object{bud rotate<0,90,0> translate <21,0,10>}
  263.  
  264. object{bud rotate<0,90,0> translate <-10,0,-10>}
  265. object{bud rotate<0,90,0> translate <-10,0,0>}
  266. object{bud rotate<0,90,0> translate <-10,0,10>}
  267.  
  268.  
  269. translate x*-2
  270. }
  271. }
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. /* Jak zapisywać polskie znaki
  279.  
  280. Ą \u0104 Ć \u0106 Ę \u0118 Ł \u0141 Ń \u0143 Ó \u00D3 Ś \u015A Ź \u0179 Ż \u017B
  281.  
  282.  
  283. ą \u0105 ć \u0107 ę \u0119 ł \u0142 ń \u0144 ó \u00F3 ś \u015B ź \u017A ż \u017C
  284.  
  285.  
  286. */
  287. text {
  288. ttf "cour.ttf" "Avalon" 0.2, 0
  289. pigment { color Gold }
  290.  
  291. finish {ambient 1 diffuse 0.4}
  292. no_shadow
  293. rotate <0,0,0>
  294. scale 1
  295. translate<0,5, -40>
  296.  
  297.  
  298. }
  299.  
  300. plane{<0,1,0>,0 texture{
  301. pigment{ color Green}
  302. normal { bumps 0.75 scale 0.025 }
  303. // finish { phong 0.1 }
  304. } }
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312. #if(clock<5)
  313.  
  314. background {rgb<0,0,0.1*clock*2>}
  315.  
  316. global_settings {
  317. assumed_gamma 10/clock
  318. } #end
  319. #if(clock>=5&clock<=70)
  320.  
  321. background {rgb<0,0,1>}
  322.  
  323. global_settings {
  324. assumed_gamma 1}
  325. #end
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332. #if(clock<=6) camera {location <6,1,-50> look_at 0} #end
  333. #if(clock>6 & clock <21) camera {location <6,1,-60+((clock-5)*2)> look_at 0} #end
  334.  
  335. #if(clock=21) camera {location <6,1,-50+((21-5)*2)> look_at <0,0,0>} #end
  336. #if(clock=22) camera {location <6,1,-50+((21-5)*2)> look_at <-15,0,0>} #end
  337. #if(clock=23) camera {location <6,1,-50+((21-5)*2)> look_at <-45,0,0>} #end
  338. #if(clock=24) camera {location <6,1,-50+((21-5)*2)> look_at <-80,0,0>} #end
  339. #if(clock=25) camera {location <6,1,-50+((21-5)*2)> look_at <-100,0,0>} #end
  340. #if(clock=26) camera {location <6,1,-50+((21-5)*2)> look_at <-80,0,0>} #end
  341. #if(clock=27) camera {location <6,1,-50+((21-5)*2)> look_at <-45,0,0>} #end
  342. #if(clock=28) camera {location <6,1,-50+((21-5)*2)> look_at <-15,0,0>} #end
  343. #if(clock=29) camera {location <6,1,-50+((21-5)*2)> look_at <0,0,0>} #end
  344.  
  345. #if(clock=30) camera {location <6,1,-50+((21-5)*2)> look_at <0,0,0>} #end
  346. #if(clock=31) camera {location <6,1,-50+((21-5)*2)> look_at <10,0,0>} #end
  347. #if(clock=32) camera {location <6,1,-50+((21-5)*2)> look_at <30,0,0>} #end
  348. #if(clock=33) camera {location <6,1,-50+((21-5)*2)> look_at <60,0,0>} #end
  349. #if(clock=34) camera {location <6,1,-50+((21-5)*2)> look_at <90,0,0>} #end
  350. #if(clock=35) camera {location <6,1,-50+((21-5)*2)> look_at <50,0,0>} #end
  351. #if(clock=36) camera {location <6,1,-50+((21-5)*2)> look_at <30,0,0>} #end
  352. #if(clock=37) camera {location <6,1,-50+((21-5)*2)> look_at <10,0,0>} #end
  353.  
  354.  
  355.  
  356. #if(clock=38) camera {location <6,1,-50+((21-5)*2)> look_at <0,2,10>} #end
  357. #if(clock=39) camera {location <6,1,-50+((21-5)*2)> look_at <0,5,20>} #end
  358. #if(clock=40) camera {location <6,1,-50+((21-5)*2)> look_at <0,10,40>} #end
  359. #if(clock=41) camera {location <6,1,-50+((21-5)*2)> look_at <0,5,20>} #end
  360. #if(clock=42) camera {location <6,1,-50+((21-5)*2)> look_at <0,2,10>} #end
  361. #if(clock=43) camera {location <6,1,-50+((21-5)*2)> look_at <0,5,0>} #end
  362. #if(clock=44) camera {location <6,1,-50+((21-5)*2)> look_at <0,10,0>} #end
  363. #if(clock=45) camera {location <6,1,-50+((21-5)*2)> look_at <0,20,0>} #end
  364. #if(clock=46) camera {location <6,1,-50+((21-5)*2)> look_at <0,30,0>} #end
  365. #if(clock=47) camera {location <6,1,-50+((21-5)*2)> look_at <0,60,0>} #end
  366. #if(clock=48) camera {location <6,1,-50+((21-5)*2)> look_at <0,70,0>} #end
  367. #if(clock=49) camera {location <6,1,-50+((21-5)*2)> look_at <0,80,0>} #end
  368. #if(clock=50) camera {location <6,1,-50+((21-5)*2)> look_at <0,85,0>} #end
  369. #if(clock=51) camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>} #end
  370. #if(clock=52)
  371.  
  372. camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
  373. background {rgb<0,0,0.8>}
  374.  
  375. global_settings {
  376. assumed_gamma 1.5
  377. } #end
  378. #if(clock=52)
  379.  
  380. camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
  381. background {rgb<0,0,0.4>}
  382.  
  383. global_settings {
  384. assumed_gamma 3
  385. } #end
  386. #if(clock=53)
  387.  
  388. camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
  389. background {rgb<0,0,0.2>}
  390.  
  391. global_settings {
  392. assumed_gamma 4
  393. } #end
  394. #if(clock=54)
  395.  
  396. camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
  397. background {rgb<0,0,0.1>}
  398.  
  399. global_settings {
  400. assumed_gamma 5
  401. } #end
  402. #if(clock>54)
  403.  
  404. camera {location <6,1,-50+((21-5)*2)> look_at <0,90,0>}
  405. background {rgb<0,0,0>}
  406.  
  407. global_settings {
  408. assumed_gamma 10
  409. } #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement