PovJouets/train.pov

82 lines
1.6 KiB
POVRay
Raw Normal View History

2021-03-07 20:58:18 +01:00
/*
*
2021-03-15 03:08:13 +01:00
* pour plus de details:
* http://la.buvette.org/POV/jouets/
2021-03-07 20:58:18 +01:00
*
*/
2021-03-15 03:08:13 +01:00
#version 3.7;
#include "contexte.inc"
2021-03-07 20:58:18 +01:00
/*------------------------------------------------------------------*/
2021-03-15 03:08:13 +01:00
#include "monde.inc"
2021-03-15 17:29:35 +01:00
#include "incs/train.inc"
#include "incs/electric.inc"
2021-03-07 20:58:18 +01:00
#include "incs/rails.inc"
#include "incs/benne.inc"
#include "incs/citerne.inc"
#include "incs/ridelles.inc"
#include "incs/corail.inc"
#include "incs/locomotive.inc"
2021-03-15 17:29:35 +01:00
#declare Trois_rails = object
{
union {
2021-03-07 20:58:18 +01:00
object { Un_Rail_Droit }
object { Un_Rail_Droit translate z*-100 }
object { Un_Rail_Droit translate z* 100 }
2021-03-15 17:29:35 +01:00
}
}
2021-03-16 00:48:07 +01:00
#declare Train_Electric = object
{
union {
object { Locomotive_Electric translate <0, 2, -10> }
object { Wagon_Corail translate <0, 2, 29> }
}
}
2021-03-15 17:29:35 +01:00
union
{
object { Trois_rails }
2021-03-07 20:58:18 +01:00
2021-03-16 00:48:07 +01:00
object { Locomotive_Vapeur translate <0, 2, -52> }
object { Wagon_Citerne translate <0, 2, -21> }
object { Wagon_Benne translate <0, 2, 6> }
2021-03-23 09:55:20 +01:00
object { Wagon_Ridelles translate <0, 2, 35> }
2021-03-15 17:29:35 +01:00
#local XS = 60;
object { Trois_rails translate x*XS }
2021-03-23 09:55:20 +01:00
#local K = Cos_01(clock);
#local DZ = 50 - (K * 85);
2021-03-16 00:48:07 +01:00
object { Train_Electric translate <XS, 0, DZ> }
2021-03-07 20:58:18 +01:00
}
#include "incs/poteaux.inc"
#declare foo = -300;
#while (foo < 300)
object { Poteau_1 translate <25, 0, foo> }
#declare foo = foo + 42;
#end
/*------------------------------------------------------------------*/
camera
{
2021-03-15 17:29:35 +01:00
location <260, 38, 25>
2021-03-11 23:33:35 +01:00
right image_width/image_height*x
2021-03-23 09:55:20 +01:00
look_at <0, 3, -10>
2021-03-15 03:08:13 +01:00
angle ANGLE_CAM
2021-03-07 20:58:18 +01:00
}
light_source { <150, 98, -150> color Orange }
light_source { <170, 88, -170> color Yellow }
// light_source { <100, 100, 50> color White }
/*------------------------------------------------------------------*/