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 <0, 3, -18>
- look_at <0, 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 <0, 3, -18>
- look_at <0, 4, 3>
- rotate<0,70,0>
- }
- // Back view
- #declare Camera_3 = camera{
- location <0, 3, -18>
- 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
- }
- background {
- White
- }
- #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 { White } }
- }
- #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 { White } }
- }
- //#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 { White } }
- }
- cone { <0,0,0>,1.85,<0,3.8,0>,0
- texture { pigment{ color rgb<1,0.60,0.0>}
- 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>
- }
- #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} }
- }
- #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} }
- }
- #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>}
- }
- object { Tail_Unit translate< -9,2,0 > rotate<0,90,0>}
- object{ Wings rotate<0,90,0> translate<0,0,0> scale<0.85,0.85,0.85>}
- #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}}
- }
- ////////////////////// 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{Silver_Metal
- finish { 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>}
- }
- 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>}
- //////////// End of Wheels /////////////////////////////////////////////////////////
- object {Body rotate <0,90,0> translate<0,1,-2> scale<1,1,1.3>}
- object {engine translate<4.5,-.55,-1>}
- object {engine translate<-4.5,-.55,-1>}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement