Вы находитесь на странице: 1из 18

#include "colors.

inc" // Los archivos de inclusi�n contienen


#include "stones.inc" // elementos de escena predefinidos
#include "textures.inc"
#include "shapes.inc"

camera {
location <5, 4, 9>
look_at <0, -0., 0>

}
//--------------------------------------------------------------------------------
-----

light_source {
0*x // light's position (translated below)
color rgb 1.0 // light's color
area_light
<8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
4, 4 // total number of lights in grid (4x*4z = 16 lights)
adaptive 0 // 0,1,2,3...
jitter // adds random softening of light
circular // make the shape of the light circular
orient // orient light
translate <40, 80, 30> // <x y z> position of light
}

//--------------------------------------------------------------------------------
--------

light_source{ <30, 20, 8> White }

cylinder { // Ca�on
<0, 1, 0>, // Centro de un extremo
<1, 2, 3>, // Centro del otro extremo
0.1 // Radio
open // Quita las tapas de los extremos
texture { T_Stone25 scale 4 }

finish { phong 1 }
}

sphere { // Casco
<0, 0.6, 0>, 0.8
texture { T_Stone16 scale 0.5 }

}
box { // parte del casco
<1, 0.8, 1>, // Esquina cercana de abajo a la izquierda
<-1, 0.4, -1> // Esquina lejana de arriba a la derecha
texture {
T_Stone25 // Predefinida en el archivo stones.inc
scale 4 // Escalada en la misma medida en todas
// las direcciones
}
}

box { // parte del casco


<1.2, 0.6, 1.3>, // Esquina cercana de abajo a la izquierda
<-1.2, 0.4, -1.3>

texture { T_Stone16 scale 0.5 }

box { // parte del casco


<1.2, 0.4, 2.4>, // Esquina cercana de abajo a la izquierda
<-1.2, -0.1, -2.1> // Esquina lejana de arriba a la derecha
texture {
T_Stone25 // Predefinida en el archivo stones.inc
scale 4 // Escalada en la misma medida en todas
// las direcciones

}
}

cylinder { // Sc0tilla
<0.8, 0.4, 2>, // Centro de un extremo
<0.8, 0.4, -1>, // Centro del otro extremo
0.3 // Radio

texture { T_Stone16 scale 0.5 }

cylinder { // Sc0tilla
<-0.8, 0.4, 2>, // Centro de un extremo
<-0.8, 0.4, -1>, // Centro del otro extremo
0.3 // Radio
texture { T_Stone16 scale 0.5 }
}
cone {
-0.25*y, 1.8,
0.2*y, 1.8 // open

texture { T_Stone16 scale 0.5 }


}

cylinder { // Antena
<0.8 , 2.5, -0.5>, // Centro de un extremo
<0.8, 0, -0.5>, // Centro del otro extremo
0.03 // Radio

texture { T_Stone16 scale 0.5 }


}

cylinder { // fusiles 1
<-0.8, 0.5, 3>, // Centro de un extremo
<-0.8, 0.5, 0>, // Centro del otro extremo
0.05 // Radio

texture { T_Stone25 scale 2 }


}

cylinder { // fusiles 1
<0.8, 0.5, 3>, // Centro de un extremo
<0.8, 0.5, 0>, // Centro del otro extremo
0.05 // Radio
open
texture { T_Stone25 scale 2 }
}

disc {
<0.8, 2, -0.45> // center position
z, // normal vector
0.3, // outer radius
0.02 // optional hole radius
texture { T_Stone25 scale 2 }

cylinder { // Ca�on
<0.8, 1.8, 2.5 >, // Centro de un extremo
<1, 2, 3.1>, // Centro del otro extremo
0.18 // Radio
open
texture
{ T_Stone25 scale 4 }
}

// -------------------------------------------------
cylinder { // se�alesde radio
<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
0.2 // Radio

open
translate x*-0.2
translate y*0.1

texture
{ T_Stone25 scale 4 }
}

cylinder { // se�alesde radio


<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
0.4 // Radio

open
translate x*-0.2
translate y*0.1
translate z*-0.3

texture
{ T_Stone25 scale 4 }
}

cylinder { // se�alesde radio


<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
0.6 // Radio

open
translate x*-0.2
translate y*0.1
translate z*-0.6

texture
{ T_Stone25 scale 4 }
}

cylinder { // se�alesde radio


<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
0.9 // Radio

open
translate x*-0.2
translate y*0.1
translate z*-0.9

texture
{ T_Stone25 scale 4 }
}

cylinder { // se�alesde radio


<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
1.2 // Radio

open
translate x*-0.2
translate y*0.1
translate z*-1.2

texture
{ T_Stone25 scale 4 }
}

cylinder { // se�alesde radio


<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
1.6 // Radio

open
translate x*-0.2
translate y*0.1
translate z*-1.6

texture
{ T_Stone25 scale 4 }
}

cylinder { // se�alesde radio


<0.99, 2, -0.9 >, // Centro de un extremo
<1, 2, -1>, // Centro del otro extremo
1.9 // Radio

open
translate x*-0.2
translate y*0.1
translate z*-2

texture
{ T_Stone25 scale 4 }
}

// ----------------------------------

box { // parte de abajo cuerpo


<1.8, -0.30, 3>, // Esquina cercana de abajo a la izquierda
<-1.8, -1, -3> // Esquina lejana de arriba a la derecha
texture {
T_Stone25 // Predefinida en el archivo stones.inc
scale 4 // Escalada en la misma medida en todas
}
}

box { // parte de abajo cuerpo


<2.1,-0.6, 3.1>, // Esquina cercana de abajo a la izquierda
<-2.1, -0.3, -3.1> // Esquina lejana de arriba a la derecha
texture { T_Stone16 scale 0.5 }

translate y* -0.3

box { // parte de abajo 1 1


<2 , -0.4, 3.8>, // Esquina cercana de abajo a la izquierda
<2.8 , -0.5, -3.5> // Esquina lejana de arriba a la derecha
texture { T_Stone16 scale 0.5 }
}

box { // parte de abajo 1 -1


<2 , -1.2, 3>, // Esquina cercana de abajo a la izquierda
<2.8 , -1.3, -4> // Esquina lejana de arriba a la derecha
texture { T_Stone16 scale 0.5 }
}

box { // parte de abajo 2 2


<-2 , -0.4, 3.7>, // Esquina cercana de abajo a la izquierda
<-2.8 , -0.5, -3.6> // Esquina lejana de arriba a la derecha
texture { T_Stone16 scale 0.5 }

box { // parte de abajo 2 -2


<-2 , -1.2, 3>, // Esquina cercana de abajo a la izquierda
<-2.8 , -1.3, -4> // Esquina lejana de arriba a la derecha
texture { T_Stone16 scale 0.5 }
}

// ru3da supior delantera


box {
<0.8, 2.06, 2>,
< 1, 0.9, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*89
translate z*4
rotate x * 40

// rueda inferior delantera


box {
<0.8, 2, -2>,
< 1, 0.95, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*88.9
translate z*4
rotate x * 40

// rueda superior trasera


box {
<6.8, -2.1, 1.8>,
<6.9, -3.1, 2.56>
texture { T_Stone16 scale 0.5 }

rotate y*88.2
translate z*4
rotate x * 30

// rueda inferior trasera


box {
<6.8, -2.2, -2.18>,
<6.9, -3.1, -2.95>
texture { T_Stone16 scale 0.5 }

rotate y*88
translate z*4
rotate x * 30
}

//
----------------------------------------------------------------------------------
-

torus { 4, 1.5
// Bottom layer texture. Uses a "stretched" bozo for fine porous grain
texture {
pigment {
bozo
color_map {
[0.0 0.9 color BakersChoc color BakersChoc ]
[0.0 1.01 color Tan color Tan]
}
scale <2, 5, 0.05>
}
}

rotate z* -15
translate y*10
translate x*1
translate z*-18

// Overlaying ring grain texture


texture {
finish {
phong 1
phong_size 100
brilliance 3
ambient 0.2
diffuse 0.8
}
pigment {
wood
turbulence 0.025

color_map {
[0.0 0.15 color SemiSweetChoc color CoolCopper ]
[0.15 0.40 color CoolCopper color Clear ]
[0.40 0.80 color Clear color CoolCopper ]
[0.80 1.01 color CoolCopper color SemiSweetChoc ]
}

}
}
}

//
----------------------------------------------------------------------------------
---------------------------------------------

sphere { // rue
<0, 0.6, 0>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 1>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 2>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 2.8>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

sphere { // rue
<0, 0.6, -1>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

sphere { // rue
<0, 0.6, -2>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

sphere { // rue
<0, 0.6, -3>, 0.4
texture { T_Stone25 scale 2 }

translate x * 2.4

translate y * -1.4

//////////////////////////////////

sphere { // rue
<0, 0.6, -3>, 0.4
texture { T_Stone25 scale 2 }

translate x * -2.4

translate y * -1.4

sphere { // rue
<0, 0.6, -2>, 0.4
texture { T_Stone25 scale 2 }

translate x * -2.4
translate y * -1.4

sphere { // rue
<0, 0.6, -1>, 0.4
texture { T_Stone25 scale 2 }

translate x * -2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 0>, 0.4
texture { T_Stone25 scale 2 }

translate x * -2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 1>, 0.4
texture { T_Stone25 scale 2 }

translate x * -2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 2>, 0.4
texture { T_Stone25 scale 2 }

translate x * -2.4

translate y * -1.4

sphere { // rue
<0, 0.6, 3>, 0.3
texture { T_Stone25 scale 2 }

translate x * -2.4

translate y * -1.4

}
/////////////////////////////////////////////////////

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*5
rotate x * 40
translate y*1.91

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*3
rotate x * 40

translate y*0.63

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*2
rotate x * 40

translate y*-0.01

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*4
rotate x * 40

translate y*1.27

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*1
rotate x * 40

translate y*-0.66

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*0
rotate x * 40
translate y*-1.3

/// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*-2
rotate x * 40
translate y*-2.58

// cadena

box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*-1
rotate x * 40
translate y*-1.94

// cadena
box {
<0.8, 0.5, 2>,
< 1, 0.3, 2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*-3
rotate x * 40
translate y*-3.23

//////////////////////////////////////////
////

// cadena
box {
<0.8, 0.5 , -2.8>,
< 1, 0.3, -2>
texture { T_Stone16 scale 0.5 }
rotate y*90
translate z*5
rotate x * 40
translate y*1.91

// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*4
rotate x * 40

translate y*1.27

// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*3
rotate x * 40

translate y*0.63

// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*2
rotate x * 40

translate y*-0.01

}
// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*1
rotate x * 40

translate y*-0.66

// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*0
rotate x * 40
translate y*-1.3

// cadena

box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*-1
rotate x * 40
translate y*-1.94

/// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*-2
rotate x * 40
translate y*-2.58
}

// cadena
box {
<0.8, 0.5, -2>,
< 1, 0.3, -2.78>
texture { T_Stone16 scale 0.5 }

rotate y*90
translate z*-3
rotate x * 40
translate y*-3.23

//////////////////////////////////////////////////////////////////////////

#local Wing =
cone { <0,0,0>,0.75,<0,1.00,0>,0.35
scale <1,1,0.1>
matrix< 1 , 0, 0, // shearing in x
-0.25, 1, 0,
0 , 0, 1,
0 , 0, 0>
}

union{

sphere { <0,2,0>, 0.5 scale<1.5,1,1> translate< -6,0,0> texture


{ T_Stone16 scale 0.5 }
} // end of sphere --------------------------------------

cylinder{ <-2.5,2,0>,<0,2,0>,0.5 scale< 1,1,1> translate< -4,0,0>texture


{ T_Stone16 scale 0.5 }
} // end of cylinder -------------------------------------

sphere { <-0.4,2,0>, 0.5 scale< 5,1,1> translate<-2,0,0> texture


{ T_Stone16 scale 0.5 }
} // end of sphere --------------------------------------

union{
object{ Wing rotate <0*90,0,0>}
object{ Wing rotate <1*90,0,0>}
object{ Wing rotate <2*90,0,0>}
object{ Wing rotate <3*90,0,0>}

translate<-6,2,0> texture { T_Stone25 scale 2 }


}
texture { Chrome_Metal //pigment { color White *0.45}
finish { phong 1 reflection 0.05}
}

//------------------------------------------------------------- e

sphere{<0, 0,0>,5 hollow


texture{pigment{gradient <0,1,0>
color_map{[0 color White]
[1 color Blue ]}
quick_color White }
finish {ambient 0.5 diffuse 0} } scale 1000}

// sol ---------------------------------------------------------------------
light_source{<-1500,2500,-2500> color White}

// cielo ---------------------------------------------------------------------
sky_sphere { pigment { gradient <0,-1.5,0>
color_map { [0.00 rgb <1.0,1.0,1.0>]
[0.30 rgb <0.0,0.1,1.0>]
[0.70 rgb <0.0,0.1,1.0>]
[1.00 rgb <1.0,1.0,1.0>]
}
scale 2
} // end of pigment
} //end of skysphere

// suelo ------------------------------------------------------------------
plane{ <0,-1.3,0>, 1.3
texture{ pigment{ color rgb <0.825,0.57,0.35>}
normal { bumps 0.75 scale 0.025 }
finish { phong 0.1 }
}
}

Вам также может понравиться