Advertisement
Guest User

Untitled

a guest
Dec 28th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "colors.inc"
  2. #include "metals.inc"
  3. #include "woods.inc"
  4. #include "shapes3.inc"
  5. #include "textures.inc"    
  6.  
  7.  
  8. #declare Camera_0 = camera {                                                                
  9.    location<0,5,-18>
  10.    look_at <0,0,0>
  11.    rotate<0,0,0>
  12.    translate<0,0,0>
  13. }
  14.  
  15. // Rightside view
  16. #declare Camera_1 = camera{
  17.     location <0, 2, -18>    
  18.     look_at <0, 2, 3>  
  19.     rotate<0,-40,0>
  20.  
  21. }    
  22.  
  23. // Right Rightside view
  24. #declare Camera_12 = camera{
  25.     location <0, 3, -18>    
  26.     look_at <0, 4, 3>  
  27.     rotate<0,-80,0>
  28.  
  29. }  
  30.  
  31.  
  32. // Leftside view
  33. #declare Camera_2 = camera{
  34.     location <0, 3, -18>    
  35.     look_at <0, 4, 3>  
  36.     rotate<0,40,0>
  37.  
  38. }
  39.  
  40. // Left Leftside view
  41. #declare Camera_22 = camera{
  42.     location <0, 3, -18>    
  43.     look_at <0, 4, 3>  
  44.     rotate<0,70,0>
  45.  
  46. }  
  47.  
  48. // Back view
  49. #declare Camera_3 = camera{
  50.     location <0, 3, -18>    
  51.     look_at <0, 4, 3>  
  52.     rotate<0,140,0>
  53.  
  54. }  
  55.  
  56. // Bottom view
  57. #declare Camera_4 = camera{
  58.     location <0, -8, -12>    
  59.     look_at <0, 5, 3>  
  60.     rotate<0,0,0>
  61.  
  62. }
  63.  
  64. // Bottom right view
  65. #declare Camera_5 = camera{
  66.     location <0, -8, -12>    
  67.     look_at <0, 5, 3>  
  68.     rotate<0,-90,0>
  69.  
  70. }
  71.  
  72. camera{Camera_1}    
  73.  
  74. light_source {
  75.     < 20, 15, 30> color White    
  76. }                            
  77.  
  78. light_source {
  79.     < -20, 15, -30> color White    
  80. }
  81.  
  82. background {
  83.     White
  84. }
  85.  
  86.      
  87.  
  88. #declare body = cylinder {
  89.     <0,0,-7>,<0,0,7>, 1.5
  90.     texture {
  91.         pigment { color rgb<1,1,1>}
  92.         //normal  { bumps 0.5 scale 0.005}  
  93.         finish  { phong 0.5 reflection{ 0.00 metallic 0.00} }
  94.     } // end of texture
  95.     scale <1,1,1> rotate<0,0,0> translate<0,.5,1>
  96. }
  97.  
  98. #declare engine = union{    
  99.     union {
  100.         sphere {
  101.             <0,0,0>,
  102.             .5
  103.             scale <1,1,2>
  104.             translate <0,0,.5>
  105.             texture { pigment { White } }
  106.         }    
  107.    
  108.                                
  109.         #declare i = 0;
  110.         #while (i < 360)
  111.         triangle {
  112.             <0,0,0>,
  113.             <0,2,0>,
  114.             <1,2,0>
  115.             rotate <0,15,0>
  116.             rotate <0,0,i>
  117.             texture { pigment { White } }
  118.         }
  119.         //#declare i = i + 30;
  120.         #declare i = i + 24;
  121.         #end
  122.         translate <0,0,-2.5>
  123.     }
  124.    
  125.     torus {
  126.         2.1,
  127.         0.3
  128.         rotate <90,0,0>
  129.         scale <1,1,10>
  130.         texture { pigment { White } }
  131.     }
  132.    
  133.     cone { <0,0,0>,1.85,<0,3.8,0>,0
  134.  
  135.         texture { pigment{ color rgb<1,0.60,0.0>}
  136.             finish { phong 1 reflection{ 0.00 metallic 0.00} }
  137.         } // end of texture
  138.  
  139.         scale <1,1,1> rotate<90,0,0> translate<0,0,2>        
  140.     }
  141.  
  142.  
  143.     scale <.5,.5,.5>
  144. }                                
  145.  
  146.  
  147. #declare Tail_Wing_Y =
  148. union{
  149.  cone  { <0,0,0>, 1.50, <0, 3.50,0>, 0.80}
  150.  sphere{ <0,0,0>, 0.80  scale<1,0.15,1> translate<0,3.50,0>}
  151.  scale <1,1,0.15>
  152.  matrix<     1, 0, 0,
  153.          -0.30, 1, 0,
  154.              0, 0, 1,
  155.              0, 0, 0>
  156.  texture {pigment{color White}    }
  157.   }
  158. #declare Wing =
  159. union{
  160.  cone  { <0,0,0>, 2.40,<0,9.50,0>, 1.00}
  161.  sphere{ <0,0,0>, 1.00 scale<1,0.15,1> translate<0,9.50,0>}
  162.  scale <1,1,0.15>
  163.  matrix<     1, 0, 0,
  164.           0.10, 1, 0,
  165.              0, 0, 1,
  166.              0, 0, 0>  
  167.  texture {pigment{color White}    }
  168.   }
  169.  
  170.  
  171.  
  172. #declare Tail_Unit =
  173. union{ object{ Tail_Wing_Y }
  174.        object{ Tail_Wing_Y rotate< 80,0,0> }
  175.        object{ Tail_Wing_Y rotate<-80,0,0> }
  176.        translate<1.50, 0,0>
  177.      } // end of union
  178.  
  179.  
  180. #declare Wings =
  181. union{ object{ Wing  rotate< 83,0,0>}
  182.        object{ Wing  rotate<-83,0,0>}
  183.      }
  184.  
  185.   object { Tail_Unit translate< -9,2,0 > rotate<0,90,0>}
  186.   object{ Wings  rotate<0,90,0> translate<0,0,0> scale<0.85,0.85,0.85>}
  187.  
  188.  
  189. #declare Body =
  190. union{
  191. intersection{            
  192.  sphere { <0,0,0>,1  scale <4.00, 2, 2>}
  193.  box    { <0,-1,-1>,<1,0,1> scale <4.00, 2.00, 2.00>}
  194.  }
  195.  
  196. intersection{                    
  197.  sphere { <0,0,0>,1  scale < 2.50, 2.00, 2.00>}
  198.  box    { <0,0,-1>,<1,1,1>  scale < 2.50, 2.00, 2.00>}
  199.  
  200.  }
  201. intersection{                          
  202.  sphere { <0,0,0>,1  scale <4.00, 1.25, 2.00>}
  203.  box    { <0,0,-1>,<1,1,1> scale <4.00, 2.00, 2.00>}
  204.  }
  205.  
  206. intersection {            
  207.  sphere { <0,0,0>,1    scale < 9.50, 2.00, 2.00> }
  208.  box    { <-1,-1,-1>,<0,1,1> scale < 9.50, 2.00, 2.00>}
  209.  }  
  210.  texture {pigment {color White}}
  211. }
  212.  
  213.  
  214. ////////////////////// Wheels //////////////////////////
  215. #declare wheel = difference{
  216.     // ---------------------------------------
  217.     object{
  218.      //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
  219.      Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
  220.      texture{
  221.        pigment{ color Black}
  222.        finish{ specular 0.1
  223.         reflection{0 0 fresnel on metallic 0}
  224.         }
  225.      } // end of texture
  226.      scale<1,.6,1>
  227.      rotate<0,0,0>
  228.      translate<0,2,0>
  229.     } //---------------------------------------        
  230.    
  231.      // ---------------------------------------
  232.     object{
  233.      //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
  234.      Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
  235.      texture{Silver_Metal
  236.        finish { phong 1}
  237.      } // end of texture
  238.      scale<.5,.3,.5>
  239.      rotate<0,0,0>
  240.      translate<0,1.8,0>
  241.     } //---------------------------------------
  242. }  
  243.  
  244. #declare cap = union{
  245.      // ---------------------------------------
  246.     object{
  247.      //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
  248.      Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
  249.      texture{Chrome_Metal
  250.        finish { phong 1}
  251.      } // end of texture
  252.      scale<.25,.1,.25>
  253.      rotate<0,0,0>
  254.      translate<0,1.8,0>
  255.     } //---------------------------------------  
  256.    
  257. }  
  258.  
  259.  
  260. #declare wheels = union {
  261.     object{wheel rotate<0,0,0> translate <0,0,0>}  
  262.     object{wheel rotate<0,0,0> translate <0,1,0>}  
  263.     object{cap rotate<0,0,0> translate <0,1,0>}
  264.     object{cap rotate<0,0,0> translate <0,.15,0>}  
  265. }
  266.  
  267.  
  268. #declare leg = union {
  269.     // --------------------------
  270.     object{
  271.      Disk_Y
  272.      scale <.2,1,.2>
  273.      texture{Silver_Metal
  274.       finish {phong 1 }
  275.       } // end of texture
  276.       rotate<90,0,0>
  277.       translate<.55,2.79,-1>
  278.     } // end of disc ----------
  279.  
  280. }    
  281.  
  282. #declare leg_attachment = union {
  283.    // -----------------------------------
  284.     object {
  285.      // Round_Box(A, B, WireRadius, Merge)
  286.      Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
  287.      texture{Silver_Metal
  288.        finish { phong 1}
  289.      } // end of texture
  290.      scale<.3,.3,1>
  291.      rotate<45,0,0>
  292.      translate<.42,4.1,-2.1>
  293.     } //----------------------------------
  294.  
  295. }
  296.  
  297. #declare wheel_flap = union {
  298.  // -----------------------------------
  299.     object {
  300.      // Round_Box(A, B, WireRadius, Merge)
  301.      Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
  302.      texture{Silver_Metal
  303.        finish { phong 1}
  304.      } // end of texture
  305.      scale<1,.1,.3>
  306.      rotate<90,90,0>
  307.      translate<0,-.4,-4.8>
  308.     } //----------------------------------
  309.  
  310. }
  311.  
  312. #declare frontWheel = union {
  313.    object{wheels rotate<0,0,0> translate <0,0,0>}      
  314.    object{leg rotate<0,0,0> translate <-.55,0.01,0>}
  315.    object{leg scale<0.5,0.3,0.5> rotate<90,0,0> translate <-.26,2.5,-1>}
  316.  
  317. }
  318.  
  319. #declare backWheel = union {
  320.    object{wheels rotate<0,0,0> translate <0,0,0>}  
  321.    object{wheels rotate<0,0,0> translate <1.2,0,0>}
  322.    object{leg rotate<0,0,0> translate <0,0,0>}
  323.    object{leg scale<.8,.8,.8> rotate<90,0,90> translate <1.4,2.35,-2.2>}      
  324.    //object{leg_attachment rotate<0,0,0> translate <0,0,0>}  
  325.  
  326. }  
  327.  
  328. object{frontWheel scale<.5,.5,.5> rotate<90,-90,0> translate <1.35,-1.55,-5>}  
  329.  
  330. object{wheel_flap rotate<0,0,0> translate <.15,0,0>}
  331. object{wheel_flap rotate<0,0,0> translate <-.3,0,0>}    
  332.    
  333. object{backWheel scale<.6,.6,.6> rotate<90,-90,0> translate <2.8,-1.5,1>}  
  334. object{backWheel scale<.6,.6,.6> rotate<90,-90,0> translate <.5,-1.5,1>}  
  335.  
  336. //////////// End of Wheels /////////////////////////////////////////////////////////
  337.    
  338.                        
  339.                  
  340.                        
  341. object {Body rotate <0,90,0> translate<0,1,-2> scale<1,1,1.3>}                        
  342. object {engine translate<4.5,-.55,-1>}
  343. object {engine translate<-4.5,-.55,-1>}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement