Advertisement
Guest User

Untitled

a guest
Dec 29th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
POV-Ray 14.03 KB | None | 0 0
  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 <6, 3, -18>    
  26.     look_at <5, 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 <-10, 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, -25>    
  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. // sun ---------------------------------------------------------------
  83. //light_source{<1500,2500,-2500> color rgb<1,1,1> }
  84.  
  85. background {
  86.     White
  87. }
  88.  
  89. // sky ---------------------------------------------------------------
  90. plane{<0,1,0>,1 hollow  //
  91.      
  92.         texture{ pigment {color rgb<0.1,0.3,0.75>*0.7}
  93.                  #if (version = 3.7 )  finish {emission 1 diffuse 0}
  94.                  #else                 finish { ambient 1 diffuse 0}
  95.                  #end
  96.                } // end texture 1
  97.  
  98.         texture{ pigment{ bozo turbulence 0.75
  99.                           octaves 6  omega 0.7 lambda 2
  100.                           color_map {
  101.                           [0.0  color rgb <0.95, 0.95, 0.95> ]
  102.                           [0.05  color rgb <1, 1, 1>*1.25 ]
  103.                           [0.15 color rgb <0.85, 0.85, 0.85> ]
  104.                           [0.55 color rgbt <1, 1, 1, 1>*1 ]
  105.                           [1.0 color rgbt <1, 1, 1, 1>*1 ]
  106.                           } // end color_map
  107.                          translate< 3, 0,-1>
  108.                          scale <0.3, 0.4, 0.2>*3
  109.                         } // end pigment
  110.                  #if (version = 3.7 )  finish {emission 1 diffuse 0}
  111.                  #else                 finish { ambient 1 diffuse 0}
  112.                  #end
  113.                } // end texture 2
  114.        scale 10000
  115.      } //-------------------------------------------------------------
  116.  
  117. // ground fog at the horizon -----------------------------------------
  118. fog{ fog_type   2
  119.      distance   1000
  120.      color      rgb<1,1,1>*0.9
  121.      fog_offset 0.1
  122.      fog_alt    20
  123.      turbulence 1.8
  124.    } //---------------------------------------------------------------
  125.  
  126. // ground ------------------------------------------------------------
  127. plane { <0,1,0>, 0
  128.         texture{ pigment{color rgb<0.35,0.65,0.0>*0.8}
  129.                  normal {bumps 0.75 scale 0.015}
  130.                  finish {ambient 0.1 diffuse 0.8}
  131.                } // end of texture
  132.       } // end of plane
  133. //--------------------------------------------------------------------
  134.  
  135. #declare body = cylinder {
  136.     <0,0,-7>,<0,0,7>, 1.5
  137.     texture {
  138.         pigment { color rgb<1,1,1>}
  139.         //normal  { bumps 0.5 scale 0.005}  
  140.         finish  { phong 0.5 reflection{ 0.00 metallic 0.00} }
  141.     } // end of texture
  142.     scale <1,1,1> rotate<0,0,0> translate<0,.5,1>
  143. }
  144.  
  145. #declare engine = union{    
  146.     union {
  147.         sphere {
  148.             <0,0,0>,
  149.             .5
  150.             scale <1,1,2>
  151.             translate <0,0,.5>
  152.             texture{
  153.                pigment{ color Black}
  154.                finish{ specular 0.1
  155.                 reflection{0 0 fresnel on metallic 0}
  156.                 }
  157.              }
  158.         }    
  159.    
  160.                                
  161.         #declare i = 0;
  162.         #while (i < 360)
  163.         triangle {
  164.             <0,0,0>,
  165.             <0,2,0>,
  166.             <1,2,0>
  167.             rotate <0,15,0>
  168.             rotate <0,0,i>
  169.             texture{
  170.                pigment{ color Black}
  171.                finish{ specular 0.1
  172.                 reflection{0 0 fresnel on metallic 0}
  173.                 }
  174.              }
  175.         }
  176.         //#declare i = i + 30;
  177.         #declare i = i + 24;
  178.         #end
  179.         translate <0,0,-2.5>
  180.     }
  181.    
  182.     torus {
  183.         2.1,
  184.         0.3
  185.         rotate <90,0,0>
  186.         scale <1,1,10>
  187.         texture{ pigment{color White}
  188.          finish {ambient 0.1
  189.                  diffuse 0.9
  190.                  phong 1}
  191.        } // end of texture
  192.     }
  193.    
  194.     cone { <0,0,0>,1.85,<0,3.8,0>,0
  195.  
  196.         texture { pigment{ color Grey}
  197.             finish { phong 1 reflection{ 0.00 metallic 0.00} }
  198.         } // end of texture
  199.  
  200.         scale <1,1,1> rotate<90,0,0> translate<0,0,2>        
  201.     }
  202.  
  203.  
  204.     scale <.5,.5,.5>
  205.     rotate<0,0,360*clock>
  206. }                                
  207.  
  208.  
  209. #declare Tail_Wing_Y =
  210. union{
  211.  cone  { <0,0,0>, 1.50, <0, 3.50,0>, 0.80}
  212.  sphere{ <0,0,0>, 0.80  scale<1,0.15,1> translate<0,3.50,0>}
  213.  scale <1,1,0.15>
  214.  matrix<     1, 0, 0,
  215.          -0.30, 1, 0,
  216.              0, 0, 1,
  217.              0, 0, 0>
  218.  texture{ pigment{color White}
  219.          finish {ambient 0.1
  220.                  diffuse 0.9
  221.                  phong 1}
  222.        } // end of texture
  223.   }
  224. #declare Wing =
  225. union{
  226.  cone  { <0,0,0>, 2.40,<0,9.50,0>, 1.00}
  227.  sphere{ <0,0,0>, 1.00 scale<1,0.15,1> translate<0,9.50,0>}
  228.  scale <1,1,0.15>
  229.  matrix<     1, 0, 0,
  230.           0.10, 1, 0,
  231.              0, 0, 1,
  232.              0, 0, 0>  
  233.  texture{ pigment{color White}
  234.          finish {ambient 0.1
  235.                  diffuse 0.9
  236.                  phong 1}
  237.        } // end of texture   }
  238.   }
  239.  
  240.  
  241.  
  242. #declare Tail_Unit =
  243. union{ object{ Tail_Wing_Y }
  244.        object{ Tail_Wing_Y rotate< 80,0,0> }
  245.        object{ Tail_Wing_Y rotate<-80,0,0> }
  246.        translate<1.50, 0,0>
  247.      } // end of union
  248.  
  249.  
  250. #declare Wings =
  251. union{ object{ Wing  rotate< 83,0,0>}
  252.        object{ Wing  rotate<-83,0,0>}
  253.      }
  254.  
  255.  
  256.  
  257.  
  258. #declare Body =
  259. union{
  260. intersection{            
  261.  sphere { <0,0,0>,1  scale <4.00, 2, 2>}
  262.  box    { <0,-1,-1>,<1,0,1> scale <4.00, 2.00, 2.00>}
  263.  }
  264.  
  265. intersection{                    
  266.  sphere { <0,0,0>,1  scale < 2.50, 2.00, 2.00>}
  267.  box    { <0,0,-1>,<1,1,1>  scale < 2.50, 2.00, 2.00>}
  268.  
  269.  }
  270. intersection{                          
  271.  sphere { <0,0,0>,1  scale <4.00, 1.25, 2.00>}
  272.  box    { <0,0,-1>,<1,1,1> scale <4.00, 2.00, 2.00>}
  273.  }
  274.  
  275. intersection {            
  276.  sphere { <0,0,0>,1    scale < 9.50, 2.00, 2.00> }
  277.  box    { <-1,-1,-1>,<0,1,1> scale < 9.50, 2.00, 2.00>}
  278.  }  
  279.  texture{ pigment{color White}
  280.          finish {ambient 0.1
  281.                  diffuse 0.9
  282.                  phong 1}
  283.        } // end of texture
  284. }
  285.  
  286.  
  287. ////////////////////// Wheels //////////////////////////
  288. #declare wheel = difference{
  289.     // ---------------------------------------
  290.     object{
  291.      //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
  292.      Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
  293.      texture{
  294.        pigment{ color Black}
  295.        finish{ specular 0.1
  296.         reflection{0 0 fresnel on metallic 0}
  297.         }
  298.      } // end of texture
  299.      scale<1,.6,1>
  300.      rotate<0,0,0>
  301.      translate<0,2,0>
  302.     } //---------------------------------------        
  303.    
  304.      // ---------------------------------------
  305.     object{
  306.      //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
  307.      Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
  308.      texture{Silver_Metal
  309.        finish { phong 1}
  310.      } // end of texture
  311.      scale<.5,.3,.5>
  312.      rotate<0,0,0>
  313.      translate<0,1.8,0>
  314.     } //---------------------------------------
  315. }  
  316.  
  317. #declare cap = union{
  318.      // ---------------------------------------
  319.     object{
  320.      //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
  321.      Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
  322.      texture{Chrome_Metal
  323.        finish { phong 1}
  324.      } // end of texture
  325.      scale<.25,.1,.25>
  326.      rotate<0,0,0>
  327.      translate<0,1.8,0>
  328.     } //---------------------------------------  
  329.    
  330. }  
  331.  
  332.  
  333. #declare wheels = union {
  334.     object{wheel rotate<0,0,0> translate <0,0,0>}  
  335.     object{wheel rotate<0,0,0> translate <0,1,0>}  
  336.     object{cap rotate<0,0,0> translate <0,1,0>}
  337.     object{cap rotate<0,0,0> translate <0,.15,0>}  
  338. }
  339.  
  340.  
  341. #declare leg = union {
  342.     // --------------------------
  343.     object{
  344.      Disk_Y
  345.      scale <.2,1,.2>
  346.      texture{Silver_Metal
  347.       finish {phong 1 }
  348.       } // end of texture
  349.       rotate<90,0,0>
  350.       translate<.55,2.79,-1>
  351.     } // end of disc ----------
  352.  
  353. }    
  354.  
  355. #declare leg_attachment = union {
  356.    // -----------------------------------
  357.     object {
  358.      // Round_Box(A, B, WireRadius, Merge)
  359.      Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
  360.      texture{Silver_Metal
  361.        finish { phong 1}
  362.      } // end of texture
  363.      scale<.3,.3,1>
  364.      rotate<45,0,0>
  365.      translate<.42,4.1,-2.1>
  366.     } //----------------------------------
  367.  
  368. }
  369.  
  370. #declare wheel_flap = union {
  371.  // -----------------------------------
  372.     object {
  373.      // Round_Box(A, B, WireRadius, Merge)
  374.      Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
  375.      texture{ pigment{color White}
  376.          finish {ambient 0.1
  377.                  diffuse 0.9
  378.                  phong 1}
  379.        } // end of texture
  380.      scale<1,.1,.3>
  381.      rotate<90,90,0>
  382.      translate<0,-.4,-4.8>
  383.     } //----------------------------------
  384.  
  385. }
  386.  
  387. #declare frontWheel = union {
  388.    object{wheels rotate<0,0,0> translate <0,0,0>}      
  389.    object{leg rotate<0,0,0> translate <-.55,0.01,0>}
  390.    object{leg scale<0.5,0.3,0.5> rotate<90,0,0> translate <-.26,2.5,-1>}
  391.  
  392. }
  393.  
  394. #declare backWheel = union {
  395.    object{wheels rotate<0,0,0> translate <0,0,0>}  
  396.    object{wheels rotate<0,0,0> translate <1.2,0,0>}
  397.    object{leg rotate<0,0,0> translate <0,0,0>}
  398.    object{leg scale<.8,.8,.8> rotate<90,0,90> translate <1.4,2.35,-2.2>}      
  399.    //object{leg_attachment rotate<0,0,0> translate <0,0,0>}  
  400.  
  401. }
  402.  
  403. //////////// End of Wheels /////////////////////////////////////////////////////////
  404.  
  405.  
  406.  
  407. #declare windows_front =
  408. union{
  409. prism { -2.005, 1.99, 5
  410.        < 0.50, 0.50>,< 1.30, 0.70>,< 1.00, 1.33>,
  411.        < 0.40, 1.30>,< 0.50, 0.50>
  412.        rotate<-90,0,0>scale<1,1,-1> }
  413.  
  414. prism { -2.01, 1.99, 6  
  415.        < 1.35, 0.72>,< 1.95, 0.99>,< 1.76, 1.17>,
  416.        < 1.52, 1.37>,< 1.05, 1.33>,< 1.35, 0.72>
  417.        rotate<-90,0,0>scale<1,1,-1> }
  418.  
  419. prism {  -2.1 ,2.1 , 5
  420.        <-0.65, 1.02>,<-0.04, 1.10>,<-0.04, 1.40>,
  421.        <-0.70, 1.39>,<-0.65, 1.02>
  422.        rotate<-90,-90,0>}
  423.  
  424. prism {  -2.1 ,2.1 , 5
  425.        <-0.65, 1.02>,<-0.04, 1.10>,<-0.04, 1.40>,
  426.        <-0.70, 1.39>,<-0.65, 1.02>
  427.        rotate<-90,-90,0>
  428.        scale<1,1,-1>}    
  429.  
  430.  }
  431.    
  432.  
  433.  
  434.  
  435.  
  436. #declare side_window = union {
  437.    
  438.     // -----------------------------------
  439.     object {
  440.      // Round_Box(A, B, WireRadius, Merge)
  441.      Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
  442.      texture { pigment{color Silver}} // end of texture
  443.      scale<.28,3,.23>
  444.      rotate<90,90,0>
  445.     } //----------------------------------
  446.  
  447. }
  448.  
  449.  
  450. #declare side_windows = union {
  451.    
  452.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-2.4>}
  453.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-2>}    
  454.    
  455.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-1.2>}
  456.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-.8>}
  457.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-.4>}
  458.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.89,0>}
  459.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.88,.4>}
  460.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.87,.8>}
  461.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.86,1.25>}
  462.      
  463.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,1.95>}
  464.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,2.4>}
  465.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,2.8>}
  466.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,3.2>}
  467.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,3.6>}
  468.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,4>}
  469.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.84,4.4>}
  470.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.83,4.8>}
  471.     object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.82,5.2>}
  472.  
  473.  
  474. }
  475.  
  476.  
  477.                        
  478.                  
  479. #declare airplane =        
  480. union {
  481.  difference {object {Body rotate <0,90,0> translate<0,1,-2> scale<1,1,1.3>}  
  482.     object {windows_front rotate <0,90,0> translate<0,1,-2> scale<1,1,1.3> texture { pigment{color Silver}} }    
  483.     object{side_windows scale<0,0,0> rotate<0,0,0> translate <0,0,0>}                                                                                                              
  484.  }    
  485.    
  486.  object {engine translate<4.5,-.55,-1> }
  487.  object {engine translate<-4.5,-.55,-1> }  
  488.  
  489.  object {frontWheel scale<.5,.5,.5> rotate<90,-90,0> translate <1.35,-1.55,-5>}  
  490.  
  491.  object {wheel_flap rotate<0,0,0> translate <.15,0,0>}
  492.  object {wheel_flap rotate<0,0,0> translate <-.3,0,0>}    
  493.    
  494.  object {backWheel scale<.6,.6,.6> rotate<90,-90,0> translate <2.8,-1.5,1>}  
  495.  object {backWheel scale<.6,.6,.6> rotate<90,-90,0> translate <.5,-1.5,1>}
  496.  object {Tail_Unit translate< -9,1,0 > rotate<0,90,0>}
  497.  object {Wings  rotate<0,90,0> translate<0,0,0> scale<0.85,0.85,0.85>}
  498.   translate <0,0,5>
  499.  }      
  500.  
  501.  #declare rotatePlane = 0;
  502.  #declare rotatePlane = 0;
  503.  #if(clock > 0.5)
  504.     #declare rotatePlane = (clock-0.5)*30;
  505.  #end      
  506.  
  507.  
  508. object {airplane translate<0,1.8,-clock*4> rotate<rotatePlane,0,0>}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement