You are on page 1of 9

#include "colors.

inc"
#include "textures.inc"
#include "shapes.inc"
#include "metals.inc"
#include "glass.inc"
#include "woods.inc"

global_settings {
assumed_gamma 1.0
max_trace_level 5
}

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

// color del cielo y perspectiva

sky_sphere {
pigment {
gradient y
color_map {
[0.0 rgb <0.6,0.7,1.0>]
[0.7 rgb <0.0,0.1,0.8>]
}
}
}

light_source {
<0, 0, 0> // posicion de la luz
color rgb <1, 1, 1> // color de luz
translate <-30, 30, -30>
}

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

plane { // color del piso


y, -1
texture
{
pigment {

color rgb <1, 1.5,9>

}
finish{
diffuse 0.8
ambient 0.1
}
}
}

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

//camara

camera {
location <-9, 0, -1>
look_at <0, 0, 4>
}

//-----------------------------------
//vagon

object{
box { <-1.2, 0, 0>, <1.2, 3, 5>

}
clipped_by {
box { <-1.1, 1.7,-0.01>, <1, 3.1, 5.01>
inverse
}

}
texture{ pigment{color rgb<1,0.4,.2>} }
translate<-1,-0.8,8>

//-----------------------------------
//rueda chica vagon 1

object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0,0,0>
<1,0,0>
0.5
inverse
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-.35,-0.5,9>

}
cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-.35,-0.5,9>
}
//-----------------------------------

//rueda chica locomotora 2


object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0.0,0,0>
<.8,0,0>
0.5
inverse
}
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-2.8,-0.5,9>

cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-2.8,-0.5,9>
}

//-----------------------------------
//rueda chica vagon 3

object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0,0,0>
<1,0,0>
0.5
inverse
}

texture{
pigment{color rgb<1,1,1>}
}
translate<-.35,-0.5,11>

}
cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-.35,-0.5,11>
}

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

//rueda chica locomotora 4


object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0.0,0,0>
<.8,0,0>
0.5
inverse
}
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-2.8,-0.5,11>

cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-2.8,-0.5,11>
}

//-----------------------------------
//locomotora

object{
cylinder {
<0,0,-2>
<0,0,2>
1.2
}
texture{
pigment{color rgb<0.6,.5,1>}

} // end of texture

translate<-1,0.2,3>
}

//-----------------------------------
// esfera de la parte delantera de la locomotora
sphere {
<0, 1, 0>
0.5
texture{
pigment{ color rgb<.6,.5,1>}

}
translate<-1,-0.8,1>
}

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

//caldera

object{

Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)

texture{
pigment{ color rgb<.8,.5,1>}

scale<1,1,1>
rotate<0,0,0>
translate<-1,1,3.5>
}

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

//chimenea
object{
Round_Cone( <0,0,0>,0.50, <0,1.2,0>, 0.20, 0.1, 0)

pigment{
color rgb<0.75,0.35,1>}

scale<1,1,1>
rotate<0,0,0>
translate<-1,1,1.8>
}

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

//caja del conductor


object{
box { <-1.2, 0, 0>, <1.2, 3, 2>
}
clipped_by {
box { <-1.1, 1.1,-0.01>, <1.1, 2.9, 2.01>
inverse
}

}
texture{ pigment{color rgb<0.3,0.1,0.1>} }
translate<-1,-0.8,4.9>

//-----------------------------------
//rueda chica caja conductor 1

object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0,0,0>
<1,0,0>
0.5
inverse
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-.35,-0.5,5.5>

}
cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-.35,-0.5,5.5>
}

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

//rueda chica caja del conductor 2


object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0.0,0,0>
<.8,0,0>
0.5
inverse
}
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-2.8,-0.5,5.5>

cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-2.8,-0.5,5.5>
}

//-----------------------------------
//rueda chica locomotora 2

object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0,0,0>
<1,0,0>
0.5
inverse
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-.35,-0.5,1.5>

}
cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }
translate<-.35,-0.5,1.5>
}

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

//rueda chica locomotora 1


object{
cylinder {
<0.5,0,0>
<0.7,0,0>
0.5
}
clipped_by{
cylinder {
<0.0,0,0>
<.8,0,0>
0.5
inverse
}
}

texture{
pigment{color rgb<1,1,1>}

}
translate<-2.8,-0.5,1.5>

cylinder { <0.5,0,0>
<0.7,0,0>
0.05
texture{ pigment{color rgb<1,1,1>} }

translate<-2.8,-0.5,1.5>
}

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

//rueda grande caldera

object {

cylinder {
<0.5,0,0>
<0.7,0,0>
0.8

clipped_by {
cylinder {
<0.0, 0, 0>
<0.8, 0, 0>
0.8
inverse
}

}texture{ pigment{color rgb<1,1,1>} }

translate<-2.8,-0.2,3.3>

cylinder { <0.5,0,0>
<0.7,0,0>
0.1
texture{ pigment{color rgb<1,1,1>} }

translate<-2.8,-0.2,3.3>
}

You might also like