SHARE
TWEET

Untitled

a guest May 20th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 3.7;
  2.  
  3. #include "colors.inc"
  4. #include "functions.inc"
  5. #include "rad_def.inc"
  6.  
  7. #include "textures.inc"
  8. #include "stars.inc"
  9. #include "skies.inc"
  10.  
  11. #declare myMode = 0; // 0: Animation, 1...n  Shots
  12.  
  13. #declare myClock = frame_number/final_frame;
  14.  
  15. #declare smoothClock = (sin(myClock*pi-pi/2)+1)/2;      
  16.  
  17. #warning concat("Frame: ",str(frame_number,3,3))
  18.  
  19. #declare myRadius = 19;  
  20.  
  21. #declare Rnd = seed (1153);
  22.  
  23. //#declare vFrame = 504;
  24. #declare vFrame = clock;
  25. #declare vFrameC = clock/4498;
  26.  
  27. //#declare vFrame = 504;
  28. //#declare vFrameC = 0.5;
  29.    
  30.  
  31. // global_settings { radiosity { Rad_Settings(Radiosity_OutdoorHQ, on, off) } }
  32. global_settings { ambient_light rgb<1,1,1> max_trace_level 100}
  33.  
  34.  
  35. #declare pirataColor1 = rgb<36,37,53>/255;
  36. #declare pirataColor2 = rgb<255,133,46>/255;
  37.          
  38. #declare nPiratePeople = 23;
  39. #declare piratePeopleN1 = array[nPiratePeople];
  40. /*
  41. #declare piratePeopleN1[0] = "Alessandro Ciofini"
  42. #declare piratePeopleN1[1] = "Aram Gurekian"
  43. #declare piratePeopleN1[2] = "Carlo Piana"
  44. #declare piratePeopleN1[3] = "Cristina Bargu"
  45. #declare piratePeopleN1[4] = "Emmanuele Somma"
  46. #declare piratePeopleN1[5] = "Fabio Brancotti"
  47. #declare piratePeopleN1[6] = "Felice Zingarelli"
  48. #declare piratePeopleN1[7] = "Flavio Del Soldato"
  49. #declare piratePeopleN1[8] = "Giuseppe Cossalter"
  50. #declare piratePeopleN1[9] = "Luca Cappelletti"
  51. #declare piratePeopleN1[10] = "Luigi Di Liberto"
  52. #declare piratePeopleN1[11] = "Luigi Gubello"
  53. #declare piratePeopleN1[12] = "Marco Calamari"
  54. #declare piratePeopleN1[13] = "Marco Ciurcina"
  55. #declare piratePeopleN1[14] = "Maria Pievatolo"
  56. #declare piratePeopleN1[15] = "Michele Pinassi"
  57. #declare piratePeopleN1[16] = "Monica Amici"
  58. #declare piratePeopleN1[17] = "Paul S. Borile"
  59. #declare piratePeopleN1[18] = "Rosaria Cuomo"
  60. #declare piratePeopleN1[19] = "Rosaria Talarico"
  61. #declare piratePeopleN1[20] = "Sara Bonanno"
  62. #declare piratePeopleN1[21] = "Stefania Calcagno"
  63. #declare piratePeopleN1[22] = "Valentina Piattelli"    
  64. */                                                      
  65. #declare piratePeopleN1[0] = "Alessandro"
  66. #declare piratePeopleN1[1] = "Aram"
  67. #declare piratePeopleN1[2] = "Carlo"
  68. #declare piratePeopleN1[3] = "Cristina"
  69. #declare piratePeopleN1[4] = "Emmanuele"
  70. #declare piratePeopleN1[5] = "Fabio"
  71. #declare piratePeopleN1[6] = "Felice"
  72. #declare piratePeopleN1[7] = "Flavio"
  73. #declare piratePeopleN1[8] = "Giuseppe"
  74. #declare piratePeopleN1[9] = "Luca"
  75. #declare piratePeopleN1[10] = "Luigi"
  76. #declare piratePeopleN1[11] = "Luigi"
  77. #declare piratePeopleN1[12] = "Marco"
  78. #declare piratePeopleN1[13] = "Marco"
  79. #declare piratePeopleN1[14] = "Maria"
  80. #declare piratePeopleN1[15] = "Michele"
  81. #declare piratePeopleN1[16] = "Monica"
  82. #declare piratePeopleN1[17] = "Paul S."
  83. #declare piratePeopleN1[18] = "Rosaria"
  84. #declare piratePeopleN1[19] = "Rosaria"
  85. #declare piratePeopleN1[20] = "Sara"
  86. #declare piratePeopleN1[21] = "Stefania"
  87. #declare piratePeopleN1[22] = "Valentina"    
  88.                                                
  89. #declare piratePeopleN2 = array[nPiratePeople];
  90. #declare piratePeopleN2[0] = "Ciofini"
  91. #declare piratePeopleN2[1] = "Gurekian"
  92. #declare piratePeopleN2[2] = "Piana"
  93. #declare piratePeopleN2[3] = "Bargu"
  94. #declare piratePeopleN2[4] = "Somma"
  95. #declare piratePeopleN2[5] = "Brancotti"
  96. #declare piratePeopleN2[6] = "Zingarelli"
  97. #declare piratePeopleN2[7] = "Del Soldato"
  98. #declare piratePeopleN2[8] = "Cossalter"
  99. #declare piratePeopleN2[9] = "Cappelletti"
  100. #declare piratePeopleN2[10] = "Di Liberto"
  101. #declare piratePeopleN2[11] = "Gubello"
  102. #declare piratePeopleN2[12] = "Calamari"
  103. #declare piratePeopleN2[13] = "Ciurcina"
  104. #declare piratePeopleN2[14] = "Pievatolo"
  105. #declare piratePeopleN2[15] = "Pinassi"
  106. #declare piratePeopleN2[16] = "Amici"
  107. #declare piratePeopleN2[17] = "Borile"
  108. #declare piratePeopleN2[18] = "Cuomo"
  109. #declare piratePeopleN2[19] = "Talarico"
  110. #declare piratePeopleN2[20] = "Bonanno"
  111. #declare piratePeopleN2[21] = "Calcagno"
  112. #declare piratePeopleN2[22] = "Piattelli"  
  113.  
  114. #declare piratePhoto = array[nPiratePeople];
  115. #declare piratePhoto[0] = "Alessandro-Ciofini-cerchiato.jpg"
  116. #declare piratePhoto[1] = "Aram-Gurekian-cerchiato.jpg"
  117. #declare piratePhoto[2] = "Carlo-Piana-cerchiato.jpg"
  118. #declare piratePhoto[3] = "Cristina-Bargu-cerchiato.jpg"
  119. #declare piratePhoto[4] = "Emmanuele-Somma-cerchiato.jpg"
  120. #declare piratePhoto[5] = "Fabio-Brancotti-cerchiato.jpg"
  121. #declare piratePhoto[6] = "Felice-Zingarelli-cerchiato.jpg"
  122. #declare piratePhoto[7] = "Flavio-Del-Soldato-cerchiato.jpg"
  123. #declare piratePhoto[8] = "Giuseppe-Cossalter-cerchiato.jpg"
  124. #declare piratePhoto[9] = "Luca-Cappelletti-cerchiato.jpg"
  125. #declare piratePhoto[10] = "Luigi-Di-Liberto-cerchiato.jpg"
  126. #declare piratePhoto[11] = "Luigi-Gubello-cerchiato.jpg"
  127. #declare piratePhoto[12] = "Marco-Calamari-cerchiato.jpg"
  128. #declare piratePhoto[13] = "Marco-Ciurcina-cerchiato.jpg"
  129. #declare piratePhoto[14] = "Maria-Pievatolo-cerchiato.jpg"
  130. #declare piratePhoto[15] = "Michele-Pinassi-cerchiato.jpg"
  131. #declare piratePhoto[16] = "Monica-Amici-cerchiato.jpg"
  132. #declare piratePhoto[17] = "Paul-S.-Borile-cerchiato.jpg"
  133. #declare piratePhoto[18] = "Rosaria-Cuomo-cerchiato.jpg"
  134. #declare piratePhoto[19] = "Rosaria-Talarico-cerchiato.jpg"
  135. #declare piratePhoto[20] = "Sara-Bonanno-cerchiato.jpg"
  136. #declare piratePhoto[21] = "Stefania-Calcagno-cerchiato.jpg"
  137. #declare piratePhoto[22] = "Valentina-Piattelli-cerchiato.jpg"
  138.            
  139. // For each, two cylinder and two text
  140. #declare i = 0;
  141. #while (i < nPiratePeople)
  142.  
  143.     #declare a = 30+i*300/(nPiratePeople-1);
  144.  
  145.     cylinder
  146.     {
  147.         <0,0,-.05>,
  148.         <0,0,+.05>,
  149.         0.3          
  150.        
  151.         //
  152.         pigment
  153.             {      
  154.                 image_map {
  155.                     jpeg concat("people/",piratePhoto[i])
  156.                     map_type 0 // 0=planar
  157.                     interpolate 2 // bilinear
  158.                 }                                          
  159.                
  160.                 translate<0.5,0.5,0.5>            
  161.             }  
  162.        
  163.         /*rotate y*((-45+rand(Rnd)*90)+sin(vFrame))*/
  164.         rotate y*(360*rand(Rnd)+vFrame)
  165.        
  166.         translate<0,1.8,3>
  167.        
  168.         rotate y*a
  169.     }                      
  170.    
  171.     cylinder
  172.     {
  173.         <0,-0.35,0>,
  174.         <0,-10,0>,
  175.         0.3              
  176.        
  177.         translate<0,1.8,3>    
  178.        
  179.         pigment
  180.         {
  181.             image_map {
  182.                 png "pirataColor2.png"      
  183.                 map_type 0            
  184.             }      
  185.         }
  186.        
  187.         finish { reflection {0.02} }
  188.        
  189.         rotate y*a
  190.     }                  
  191.    
  192.     #declare fontSize = 2.5;
  193.                                    
  194.     text {
  195.         ttf "arial.ttf" piratePeopleN1[i] 0.2, 0
  196.         pigment { pirataColor2 }
  197.         scale<.1,.1,.1>*fontSize
  198.         rotate z*270
  199.         translate<+0.01,-.45,-.35>
  200.         translate<0,1.8,3>      
  201.        
  202.         pigment
  203.         {
  204.             image_map {
  205.                 png "pirataColor1.png"      
  206.                 map_type 0            
  207.             }      
  208.         }    
  209.        
  210.         rotate y*a
  211.     }      
  212.    
  213.     text {
  214.         ttf "arial.ttf" piratePeopleN2[i] 0.2, 0
  215.         pigment { pirataColor2 }
  216.         scale<.1,.1,.1>*fontSize
  217.         rotate z*270
  218.         translate<-0.2,-.45,-.35>
  219.         translate<0,1.8,3>      
  220.        
  221.         pigment
  222.         {
  223.             image_map {
  224.                 png "pirataColor1.png"      
  225.                 map_type 0            
  226.             }      
  227.         }    
  228.        
  229.         rotate y*a
  230.     }
  231.    
  232.     #declare i = i+1;    
  233. #end
  234.                        
  235.                  
  236. // Front Video        
  237. box
  238. {        
  239.         <0,0,0>
  240.         <16, 9, 1>*0.15
  241.         pigment
  242.         {      
  243.             image_map {
  244.                 jpeg concat("video/frame", str(vFrame,-5,0), ".jpg")
  245.                 map_type 0 // 0=planar
  246.                 interpolate 2 // bilinear          
  247.                 once
  248.             }      
  249.             scale<16, 9, 1>*0.15
  250.         }        
  251.                      
  252.         translate -<16, 9, 1>*0.15/2
  253.         translate <0,1.8,3>
  254.        
  255.         finish { reflection {0.2} }
  256. }      
  257.  
  258.  
  259. // Floor  
  260. plane
  261. {
  262.         y, -0
  263.         pigment
  264.         {
  265.                 checker
  266.                 pigment
  267.                 {
  268.                     image_map {
  269.                         png "pirataColor1.png"      
  270.                         map_type 0            
  271.                     }      
  272.                 },
  273.                 pigment
  274.                 {
  275.                     image_map {
  276.                         png "pirataColor2.png"      
  277.                         map_type 0            
  278.                     }      
  279.                 }
  280.                 translate<0,0,0.5>
  281.         }        
  282.        
  283.         finish { reflection {0.4} }        
  284.        
  285. }          
  286.  
  287. // Horizon sphere
  288. sphere
  289. {
  290.     <0,0,0>,
  291.     100          
  292.     pigment
  293.     {
  294.         image_map {
  295.             jpeg concat("video/frame", str(vFrame,-5,0), ".jpg")
  296.             map_type 0 // 0=planar
  297.             interpolate 2 // bilinear          
  298.             /*once     */
  299.            
  300.            
  301.         }  
  302.        
  303.         scale<1,1,1>*100
  304.         translate<0,0,90>
  305.        
  306.         /*rotate y*180 */
  307.        
  308.         rotate -y*45
  309.     }        
  310. }
  311.  
  312. // Light, shadow cast
  313. light_source
  314. {
  315.         <0,50,-10>
  316.         color rgb <1,1,1>*2
  317.         spotlight
  318.         radius 80
  319.         falloff 50
  320.         tightness 20
  321.         point_at <0, 0, 10>
  322. }
  323.          /*
  324.  
  325. camera
  326. {              
  327.         location<0,-300.8,0>
  328.         look_at <5,1.8,0>  
  329. }        
  330.  
  331.  
  332.        */
  333.        
  334. camera
  335. {
  336.     spherical
  337.     angle 360 180
  338.     location<0,1.8,0>
  339.     look_at<0,1.8,5>
  340. }  
  341.        
  342.  
  343. /*
  344. camera
  345. {              
  346.         orthographic
  347.         location<0,10,0>
  348.         look_at <0, 0.0, 0.0>        
  349. }                            
  350. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top