You are on page 1of 12

// Persistence of Vision Ray Tracer Scene Description File

// File: ?.pov
// Vers: 3.6
// Desc: Basic Scene Example
// Date: mm/dd/yy
// Auth: ?
//

#version 3.6;

#include "colors.inc"
#include "textures.inc"

// ----------------------------------------
//el piso donde esta el tren
plane {
y, -2
pigment { color rgb <0.7,0.5,0.3> }
}

camera {
perspective
location <20,10, -10>

direction <1, 0, 1>

look_at <0, 0, 0>


}

light_source {
<4, 7, -5>, rgb <1, 1, 1>
}

light_source {< 200, 100, -50> color White}


light_source {< -50, 20, 0> color Blue}
light_source {< -50, 30, 0> color White}
light_source {< -50, 100, 0> color White}

//campana
sphere_sweep {
linear_spline,
2,
<0, 1, 0>,0.3
<0, 0, 0>,0.5
translate <0, -2, 3>

texture { pigment { color White} }


interior_texture { pigment { color Black } }
rotate x*178.9
}
//ca�on de humo

cone {
<0, 0.5, 0>, 0,
<0, -0.5, 0>, 0.5
scale <-2.3, -4, -2.2>

texture { pigment { color White} }


interior_texture { pigment { color Black } }
translate <0.08, 1.5, -5.45>
}

union{
object{
cone{
<0, -0.3, -6>, 1,
<0, -1.7, -6>, 2.5
texture { pigment { color Black} }
interior_texture { pigment { color Black } }
}
clipped_by{

cone{
<0, -0.3, -7>, 1,
<0, -1.7, -7>, 2.5

}
} }
}

//cilindro arriba de ca�on de humo

cylinder {
<0, 3.4, -1.9>, <0, 3.2, -1.9>, 1.2

texture { pigment { color Black} }


interior_texture { pigment { color Black } }

translate <0.07, 0.1, -3.5>

//box de cabina

union{
box {
<-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5>
texture { pigment { color Black} }
interior_texture { pigment { color White } }
scale <2.79, 4.7, 2.75>
translate <0, 0.95, 0>

}
clipped_by{
box {
<-0.5, 0, -0.45>, <0.5, 0.4, 0.45>

scale <2.79, 4.7, 2.75>


translate <0, 0.95, 0>
inverse

box {
<-0.4, 0.1, -0.6>, <0.4, 0.4, 0.5>

scale <2.79, 4.7, 2.75>


translate <0, 0.95, 0>
inverse

}
}

sphere {
<0, 0, -6> // center of sphere <X Y Z>
1.2
// scale <1,2,1> // <= Note: Spheres can become ellipses by uneven scaling
texture { pigment { color Black} }
interior_texture { pigment { color Black } }
}

//cilindro de caldera

cylinder {
<0, 0, 0.5>, <0, 0, -0.67>, 0.5

texture { pigment { color Black} }


interior_texture { pigment { color Black } }
scale <-2.5, 2.3, 4.35>

translate <0.07, 0.1, -3.5>

cylinder {
<0, 0, -0.3>, <0, 0, -0.7>, 0.55

texture { pigment { color White} }


interior_texture { pigment { color Black } }
scale <-2.5, 2.3, 4.35>

translate <0.07, 0.1, -3.5>

cylinder {
<0, 0, 0.3>, <0, 0, 0.67>, 0.55

texture { pigment { color White} }


interior_texture { pigment { color Black } }
scale <-2.5, 2.3, 4.35>

translate <0.07, 0.1, -3.5>

cylinder {
<-0.5, -0.2, 0.2>, <-0.5, -0.2, -0.7>, 0.1

texture { pigment { color Red} }


interior_texture { pigment { color Black } }
scale <-2.5, 2.3, 4.35>

translate <0.07, 0.1, -3.5>

cylinder {
<-0.35, 0.3, 0.7>, <-0.35, 0.3, -0.7>, 0.12

texture { pigment { color Red} }


interior_texture { pigment { color Black } }
scale <-2.5, 2.3, 4.35>

translate <0.07, 0.1, -3.5>

//rueda peque�a delantera locomotora


union{
object{
cylinder {
<0.5, 0, 0>, <0, 0, 0>, 0.7
translate <1, -1.27, -6>

texture { pigment { color White} }


interior_texture { pigment { color Black } }
}

clipped_by{
cylinder {
<0.52, 0, 0>, <0, 0, 0>, 0.6

translate <1, -1.27, -6>

inverse
}

}
}

//eje rueda delantera locomotora


cylinder {
<0.5, 0, 0>, <0, 0, 0>, 0.1

translate <1, -1.27, -6>

texture { pigment { color White} }


interior_texture { pigment { color Black } }
}

// rueda grande locomotora


union{

//eje rueda grande locomotora


cylinder {
<0.54, 0, 0>, <0, 0, 0>, 0.1
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, 0, 0.7>, <0.4, 0, 0>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}
cylinder {
<0.4, 0, -0.7>, <0.4, 0, 0>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, 0, 0>, <0.4, 0.6, 0>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, 0, 0>, <0.4, -0.6, 0>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, 0, 0>, <0.3, 0.5, 0.5>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, 0, 0>, <0.3, 0.5, -0.5>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}
cylinder {
<0.4, 0, 0>, <0.3, -0.5, 0.5>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, 0, 0>, <0.3, -0.5, -0.5>, 0.05
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

object{
cylinder {
<0.54, 0, 0>, <0, 0, 0>, 0.7
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

clipped_by{
cylinder {
<0.55, 0, 0>, <0.4, 0, 0>, 0.6

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
inverse
}

}
// rueda medio de locomotora
union{
object{
cylinder {
<0.5, 0, 0>, <0, 0, 0>, 0.7

translate <1, -1.27, -3.8>

texture { pigment { color White} }


interior_texture { pigment { color Black } }

clipped_by{
cylinder {
<0.52, 0, 0>, <0, 0, 0>, 0.6

translate <1, -1.27, -3.8>

inverse
}

}
}
//eje rueda medi locomotota
cylinder {
<0.5, 0, 0>, <0, 0, 0>, 0.1

translate <1, -1.27, -3.8>

texture { pigment { color White} }


interior_texture { pigment { color Black } }

cylinder {
<0.4, 0, 0>, <0.4, 0.6, 0>, 0.05

translate <1, -1.27, -3.8>

texture { pigment { color White} }


interior_texture { pigment { color Black } }

cylinder {
<0.4, 0, 0>, <0.4, -0.6, 0>, 0.05

translate <1, -1.27, -3.8>

texture { pigment { color White} }


interior_texture { pigment { color Black } }

}
cylinder {
<0.4, 0, 0>, <0.4, 0, -0.6>, 0.05

translate <1, -1.27, -3.8>

texture { pigment { color White} }


interior_texture { pigment { color Black } }

cylinder {
<0.4, 0, 0>, <0.4, 0, 0.6>, 0.05

translate <1, -1.27, -3.8>

texture { pigment { color White} }


interior_texture { pigment { color Black } }
}

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

//rayos rueda delantera carro

cylinder {
<0.4, -0.4, -2.3>, <0.4, -0.4, -2.1>, 0.02
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, -0.4, -2.5>, <0.4, -0.4, -2.3>, 0.02
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

//rueda delantera carro


union{
cylinder {
<0.5, 0, 0>, <0.167, 0, 0>, 0.7

translate <1, -1.27, 3.9>

texture { pigment { color White} }


interior_texture { pigment { color Black } }

}
//rayos rueda delantera carro

cylinder {
<0.4, -0.4, -2.3>, <0.4, -0.4, -2.1>, 0.02
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

cylinder {
<0.4, -0.4, -3>, <0.4, -0.4, -2.3>, 0.02
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}
cylinder {
<0.4, -0.4, -2.42>, <0.4, -0.8, -2.42>, 0.02
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}
cylinder {
<0.4, -0.4, -2.42>, <0.4, -0.1, -2.42>, 0.02
texture { pigment { color White} }
interior_texture { pigment { color Black } }

translate <1.067, -0.2, -0.33>


scale <1, 2.15, 2.19>
}

// rueda trasera carro


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

translate <1, -1.27, 7>

texture { pigment { color Black} }


interior_texture { pigment { color Black } }
}

//rueda delantera de parte de atras del dibujo


union{
object{
cylinder {
<0.5, 0, 0>, <0.1, 0, 0>, 0.7

translate <-1, -1.27, -6>

texture { pigment { color Black} }


interior_texture { pigment { color Black } }

clipped_by {cylinder {
<0.5, 0, 0>, <0.166667, 0, 0>, 0.5
scale 1
translate <-1.73, -1.17, -6>
inverse
}
}

//carro del carbon


union{
object{
box {
<-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5>
scale <2.95, 2.85, 7>

translate <0.07, 0.3, 5.36>

texture { pigment { color Black} }


interior_texture { pigment { color White } }
}
clipped_by{

box {
<-0.4, -0.6, -0.4>, <0.4, 0.6, 0.4>
scale <2.95, 2.85, 7>

translate <0.07, 0.3, 5.36>


inverse

}
}
}

//union entre carro y locomotota


box {
<-0.5, -0.5, -0.5>, <0.5, 0.5, 0.5>
scale <2.79, 0.77, -1.848>

translate <0.15, -0.74, 2.26>

texture { pigment { color White} }


interior_texture { pigment { color Black } }