Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "colors.inc"
- #include "metals.inc"
- #include "woods.inc"
- #include "shapes3.inc"
- #include "textures.inc"
- #declare Camera_0 = camera {
- location<0,5,-18>
- look_at <0,0,0>
- rotate<0,0,0>
- translate<0,0,0>
- }
- // Rightside view
- #declare Camera_1 = camera{
- location <0, 2, -18>
- look_at <0, 2, 3>
- rotate<0,-40,0>
- }
- // Right Rightside view
- #declare Camera_12 = camera{
- location <6, 3, -18>
- look_at <5, 4, 3>
- rotate<0,-80,0>
- }
- // Leftside view
- #declare Camera_2 = camera{
- location <0, 3, -18>
- look_at <0, 4, 3>
- rotate<0,40,0>
- }
- // Left Leftside view
- #declare Camera_22 = camera{
- location <-10, 3, -18>
- look_at <0, 4, 3>
- rotate<0,70,0>
- }
- // Back view
- #declare Camera_3 = camera{
- location <0, 3, -25>
- look_at <0, 4, 3>
- rotate<0,140,0>
- }
- // Bottom view
- #declare Camera_4 = camera{
- location <0, -8, -12>
- look_at <0, 5, 3>
- rotate<0,0,0>
- }
- // Bottom right view
- #declare Camera_5 = camera{
- location <0, -8, -12>
- look_at <0, 5, 3>
- rotate<0,-90,0>
- }
- camera{Camera_1}
- light_source {
- < 20, 15, 30> color White
- }
- light_source {
- < -20, 15, -30> color White
- }
- // sun ---------------------------------------------------------------
- //light_source{<1500,2500,-2500> color rgb<1,1,1> }
- background {
- White
- }
- // sky ---------------------------------------------------------------
- plane{<0,1,0>,1 hollow //
- texture{ pigment {color rgb<0.1,0.3,0.75>*0.7}
- #if (version = 3.7 ) finish {emission 1 diffuse 0}
- #else finish { ambient 1 diffuse 0}
- #end
- } // end texture 1
- texture{ pigment{ bozo turbulence 0.75
- octaves 6 omega 0.7 lambda 2
- color_map {
- [0.0 color rgb <0.95, 0.95, 0.95> ]
- [0.05 color rgb <1, 1, 1>*1.25 ]
- [0.15 color rgb <0.85, 0.85, 0.85> ]
- [0.55 color rgbt <1, 1, 1, 1>*1 ]
- [1.0 color rgbt <1, 1, 1, 1>*1 ]
- } // end color_map
- translate< 3, 0,-1>
- scale <0.3, 0.4, 0.2>*3
- } // end pigment
- #if (version = 3.7 ) finish {emission 1 diffuse 0}
- #else finish { ambient 1 diffuse 0}
- #end
- } // end texture 2
- scale 10000
- } //-------------------------------------------------------------
- // ground fog at the horizon -----------------------------------------
- fog{ fog_type 2
- distance 1000
- color rgb<1,1,1>*0.9
- fog_offset 0.1
- fog_alt 20
- turbulence 1.8
- } //---------------------------------------------------------------
- // ground ------------------------------------------------------------
- plane { <0,1,0>, 0
- texture{ pigment{color rgb<0.35,0.65,0.0>*0.8}
- normal {bumps 0.75 scale 0.015}
- finish {ambient 0.1 diffuse 0.8}
- } // end of texture
- } // end of plane
- //--------------------------------------------------------------------
- #declare body = cylinder {
- <0,0,-7>,<0,0,7>, 1.5
- texture {
- pigment { color rgb<1,1,1>}
- //normal { bumps 0.5 scale 0.005}
- finish { phong 0.5 reflection{ 0.00 metallic 0.00} }
- } // end of texture
- scale <1,1,1> rotate<0,0,0> translate<0,.5,1>
- }
- #declare engine = union{
- union {
- sphere {
- <0,0,0>,
- .5
- scale <1,1,2>
- translate <0,0,.5>
- texture{
- pigment{ color Black}
- finish{ specular 0.1
- reflection{0 0 fresnel on metallic 0}
- }
- }
- }
- #declare i = 0;
- #while (i < 360)
- triangle {
- <0,0,0>,
- <0,2,0>,
- <1,2,0>
- rotate <0,15,0>
- rotate <0,0,i>
- texture{
- pigment{ color Black}
- finish{ specular 0.1
- reflection{0 0 fresnel on metallic 0}
- }
- }
- }
- //#declare i = i + 30;
- #declare i = i + 24;
- #end
- translate <0,0,-2.5>
- }
- torus {
- 2.1,
- 0.3
- rotate <90,0,0>
- scale <1,1,10>
- texture{ pigment{color White}
- finish {ambient 0.1
- diffuse 0.9
- phong 1}
- } // end of texture
- }
- cone { <0,0,0>,1.85,<0,3.8,0>,0
- texture { pigment{ color Grey}
- finish { phong 1 reflection{ 0.00 metallic 0.00} }
- } // end of texture
- scale <1,1,1> rotate<90,0,0> translate<0,0,2>
- }
- scale <.5,.5,.5>
- rotate<0,0,360*clock>
- }
- #declare Tail_Wing_Y =
- union{
- cone { <0,0,0>, 1.50, <0, 3.50,0>, 0.80}
- sphere{ <0,0,0>, 0.80 scale<1,0.15,1> translate<0,3.50,0>}
- scale <1,1,0.15>
- matrix< 1, 0, 0,
- -0.30, 1, 0,
- 0, 0, 1,
- 0, 0, 0>
- texture{ pigment{color White}
- finish {ambient 0.1
- diffuse 0.9
- phong 1}
- } // end of texture
- }
- #declare Wing =
- union{
- cone { <0,0,0>, 2.40,<0,9.50,0>, 1.00}
- sphere{ <0,0,0>, 1.00 scale<1,0.15,1> translate<0,9.50,0>}
- scale <1,1,0.15>
- matrix< 1, 0, 0,
- 0.10, 1, 0,
- 0, 0, 1,
- 0, 0, 0>
- texture{ pigment{color White}
- finish {ambient 0.1
- diffuse 0.9
- phong 1}
- } // end of texture }
- }
- #declare Tail_Unit =
- union{ object{ Tail_Wing_Y }
- object{ Tail_Wing_Y rotate< 80,0,0> }
- object{ Tail_Wing_Y rotate<-80,0,0> }
- translate<1.50, 0,0>
- } // end of union
- #declare Wings =
- union{ object{ Wing rotate< 83,0,0>}
- object{ Wing rotate<-83,0,0>}
- }
- #declare Body =
- union{
- intersection{
- sphere { <0,0,0>,1 scale <4.00, 2, 2>}
- box { <0,-1,-1>,<1,0,1> scale <4.00, 2.00, 2.00>}
- }
- intersection{
- sphere { <0,0,0>,1 scale < 2.50, 2.00, 2.00>}
- box { <0,0,-1>,<1,1,1> scale < 2.50, 2.00, 2.00>}
- }
- intersection{
- sphere { <0,0,0>,1 scale <4.00, 1.25, 2.00>}
- box { <0,0,-1>,<1,1,1> scale <4.00, 2.00, 2.00>}
- }
- intersection {
- sphere { <0,0,0>,1 scale < 9.50, 2.00, 2.00> }
- box { <-1,-1,-1>,<0,1,1> scale < 9.50, 2.00, 2.00>}
- }
- texture{ pigment{color White}
- finish {ambient 0.1
- diffuse 0.9
- phong 1}
- } // end of texture
- }
- ////////////////////// Wheels //////////////////////////
- #declare wheel = difference{
- // ---------------------------------------
- object{
- //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
- Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
- texture{
- pigment{ color Black}
- finish{ specular 0.1
- reflection{0 0 fresnel on metallic 0}
- }
- } // end of texture
- scale<1,.6,1>
- rotate<0,0,0>
- translate<0,2,0>
- } //---------------------------------------
- // ---------------------------------------
- object{
- //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
- Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
- texture{Silver_Metal
- finish { phong 1}
- } // end of texture
- scale<.5,.3,.5>
- rotate<0,0,0>
- translate<0,1.8,0>
- } //---------------------------------------
- }
- #declare cap = union{
- // ---------------------------------------
- object{
- //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
- Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
- texture{Chrome_Metal
- finish { phong 1}
- } // end of texture
- scale<.25,.1,.25>
- rotate<0,0,0>
- translate<0,1.8,0>
- } //---------------------------------------
- }
- #declare wheels = union {
- object{wheel rotate<0,0,0> translate <0,0,0>}
- object{wheel rotate<0,0,0> translate <0,1,0>}
- object{cap rotate<0,0,0> translate <0,1,0>}
- object{cap rotate<0,0,0> translate <0,.15,0>}
- }
- #declare leg = union {
- // --------------------------
- object{
- Disk_Y
- scale <.2,1,.2>
- texture{Silver_Metal
- finish {phong 1 }
- } // end of texture
- rotate<90,0,0>
- translate<.55,2.79,-1>
- } // end of disc ----------
- }
- #declare leg_attachment = union {
- // -----------------------------------
- object {
- // Round_Box(A, B, WireRadius, Merge)
- Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
- texture{Silver_Metal
- finish { phong 1}
- } // end of texture
- scale<.3,.3,1>
- rotate<45,0,0>
- translate<.42,4.1,-2.1>
- } //----------------------------------
- }
- #declare wheel_flap = union {
- // -----------------------------------
- object {
- // Round_Box(A, B, WireRadius, Merge)
- Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
- texture{ pigment{color White}
- finish {ambient 0.1
- diffuse 0.9
- phong 1}
- } // end of texture
- scale<1,.1,.3>
- rotate<90,90,0>
- translate<0,-.4,-4.8>
- } //----------------------------------
- }
- #declare frontWheel = union {
- object{wheels rotate<0,0,0> translate <0,0,0>}
- object{leg rotate<0,0,0> translate <-.55,0.01,0>}
- object{leg scale<0.5,0.3,0.5> rotate<90,0,0> translate <-.26,2.5,-1>}
- }
- #declare backWheel = union {
- object{wheels rotate<0,0,0> translate <0,0,0>}
- object{wheels rotate<0,0,0> translate <1.2,0,0>}
- object{leg rotate<0,0,0> translate <0,0,0>}
- object{leg scale<.8,.8,.8> rotate<90,0,90> translate <1.4,2.35,-2.2>}
- //object{leg_attachment rotate<0,0,0> translate <0,0,0>}
- }
- //////////// End of Wheels /////////////////////////////////////////////////////////
- #declare windows_front =
- union{
- prism { -2.005, 1.99, 5
- < 0.50, 0.50>,< 1.30, 0.70>,< 1.00, 1.33>,
- < 0.40, 1.30>,< 0.50, 0.50>
- rotate<-90,0,0>scale<1,1,-1> }
- prism { -2.01, 1.99, 6
- < 1.35, 0.72>,< 1.95, 0.99>,< 1.76, 1.17>,
- < 1.52, 1.37>,< 1.05, 1.33>,< 1.35, 0.72>
- rotate<-90,0,0>scale<1,1,-1> }
- prism { -2.1 ,2.1 , 5
- <-0.65, 1.02>,<-0.04, 1.10>,<-0.04, 1.40>,
- <-0.70, 1.39>,<-0.65, 1.02>
- rotate<-90,-90,0>}
- prism { -2.1 ,2.1 , 5
- <-0.65, 1.02>,<-0.04, 1.10>,<-0.04, 1.40>,
- <-0.70, 1.39>,<-0.65, 1.02>
- rotate<-90,-90,0>
- scale<1,1,-1>}
- }
- #declare side_window = union {
- // -----------------------------------
- object {
- // Round_Box(A, B, WireRadius, Merge)
- Round_Box(<0,0,0>,<1,0.5,2>, 0.125, 0)
- texture { pigment{color Silver}} // end of texture
- scale<.28,3,.23>
- rotate<90,90,0>
- } //----------------------------------
- }
- #declare side_windows = union {
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-2.4>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-2>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-1.2>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-.8>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.9,-.4>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.89,0>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.88,.4>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.87,.8>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.86,1.25>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,1.95>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,2.4>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,2.8>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,3.2>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,3.6>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.85,4>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.84,4.4>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.83,4.8>}
- object{side_window scale<0,0,0> rotate<0,0,0> translate <.8,1.82,5.2>}
- }
- #declare airplane =
- union {
- difference {object {Body rotate <0,90,0> translate<0,1,-2> scale<1,1,1.3>}
- object {windows_front rotate <0,90,0> translate<0,1,-2> scale<1,1,1.3> texture { pigment{color Silver}} }
- object{side_windows scale<0,0,0> rotate<0,0,0> translate <0,0,0>}
- }
- object {engine translate<4.5,-.55,-1> }
- object {engine translate<-4.5,-.55,-1> }
- object {frontWheel scale<.5,.5,.5> rotate<90,-90,0> translate <1.35,-1.55,-5>}
- object {wheel_flap rotate<0,0,0> translate <.15,0,0>}
- object {wheel_flap rotate<0,0,0> translate <-.3,0,0>}
- object {backWheel scale<.6,.6,.6> rotate<90,-90,0> translate <2.8,-1.5,1>}
- object {backWheel scale<.6,.6,.6> rotate<90,-90,0> translate <.5,-1.5,1>}
- object {Tail_Unit translate< -9,1,0 > rotate<0,90,0>}
- object {Wings rotate<0,90,0> translate<0,0,0> scale<0.85,0.85,0.85>}
- translate <0,0,5>
- }
- #declare rotatePlane = 0;
- #declare rotatePlane = 0;
- #if(clock > 0.5)
- #declare rotatePlane = (clock-0.5)*30;
- #end
- object {airplane translate<0,1.8,-clock*4> rotate<rotatePlane,0,0>}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement