Compare commits
21 Commits
255643e55a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17e72ea61c | ||
|
|
35db5eb9e2 | ||
|
|
faff740ab3 | ||
|
|
cc62cb88b7 | ||
|
|
852160ec6f | ||
|
|
b5aea0e10e | ||
|
|
82ff0c7765 | ||
|
|
9da2ca1d29 | ||
|
|
fa56cadce2 | ||
|
|
239362c942 | ||
|
|
13838b582e | ||
|
|
f401bd432d | ||
|
|
69fdaec978 | ||
|
|
2a66ed7952 | ||
|
|
d0edb79cb6 | ||
|
|
11741fd72e | ||
|
|
8c6f914a53 | ||
|
|
69e0a3bd52 | ||
|
|
e4df9e1299 | ||
|
|
2a983b8335 | ||
|
|
40f7b689db |
10
Makefile
10
Makefile
@@ -1,11 +1,11 @@
|
||||
#--------------------------------------------------------
|
||||
|
||||
MOYEN = +w1280 +h1024
|
||||
GRAND = +w1600 +h1200
|
||||
PETIT = +w800 +h600
|
||||
DIMS=$(PETIT)
|
||||
MOYEN = +w1152 +h900
|
||||
GRAND = +w1600 +h1200
|
||||
DIMS=$(MOYEN)
|
||||
|
||||
OPTS = +a +q9 -d
|
||||
OPTS = +a0.01 +q9 -d
|
||||
|
||||
POVRAY = povray
|
||||
|
||||
@@ -24,7 +24,7 @@ all: loco.png parking.png corail.png train.png essai.png \
|
||||
GLOBDEPS=${INCS}/train.inc ${INCS}/poteaux.inc \
|
||||
${INCS}/electric.inc ${INCS}/voiture.inc \
|
||||
${INCS}/rails.inc ${INCS}/grue.inc ${INCS}/ridelles.inc \
|
||||
${INCS}/instruments.inc \
|
||||
${INCS}/instruments.inc ${INCS}/corail.inc \
|
||||
${INCS}/citerne.inc ${INCS}/benne.inc \
|
||||
${INCS}/constantes.inc ${INCS}/locomotive.inc \
|
||||
${INCS}/enseigne.inc \
|
||||
|
||||
11
README.md
11
README.md
@@ -1,7 +1,12 @@
|
||||
# PovJouets
|
||||
|
||||
Un très très vieux projet POVray qui revient dans le triste monde de 2021.
|
||||
|
||||
http://la.buvette.org/POV/jouets/
|
||||
Un très très vieux projet POVray qui revient dans le triste
|
||||
monde de 2021.
|
||||
Et qui revient en forme pour attaquer **2025** ?
|
||||
|
||||
https://git.tetalab.org/tTh/PovJouets
|
||||
|
||||
## TODO
|
||||
|
||||
- bien revoir la hiérarchie des includes
|
||||
- définir un jeu de textures cohérent
|
||||
|
||||
@@ -26,7 +26,7 @@ object { Wagon_Benne translate y*2 }
|
||||
|
||||
camera
|
||||
{
|
||||
location <35.5, 23, 40>
|
||||
location <35.5, 21, 40>
|
||||
right image_width/image_height*x
|
||||
look_at <0, 6, 0>
|
||||
angle ANGLE_CAM
|
||||
|
||||
20
contexte.inc
20
contexte.inc
@@ -2,7 +2,11 @@
|
||||
* contexte.inc
|
||||
*/
|
||||
|
||||
global_settings { assumed_gamma 1.0 }
|
||||
global_settings {
|
||||
assumed_gamma 1.0
|
||||
ambient_light rgb <0.18, 0.15, 0.17>
|
||||
max_trace_level 17
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/*
|
||||
@@ -14,7 +18,19 @@ global_settings { assumed_gamma 1.0 }
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
#declare ANGLE_CAM = 33;
|
||||
#declare ANGLE_CAM = 42;
|
||||
|
||||
//---------------------------------------
|
||||
/*
|
||||
* deux macros pour des variations plus 'touchy'
|
||||
*/
|
||||
#macro Cos_01( X )
|
||||
(0.5-0.5*cos( 3.141592654 * X))
|
||||
#end
|
||||
#macro Cos_010( X )
|
||||
(0.5-0.5*cos( 2 * 3.141592654 * X))
|
||||
#end
|
||||
//---------------------------------------
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
/*
|
||||
|
||||
@@ -41,11 +41,11 @@ camera
|
||||
{
|
||||
location <38, 10, -45>
|
||||
right image_width/image_height*x
|
||||
look_at <0, 7, 0>
|
||||
look_at <-5.3, 7, 0>
|
||||
angle ANGLE_CAM
|
||||
}
|
||||
|
||||
light_source { <550, 725, -900> color Gray60 }
|
||||
// light_source { <550, 725, -900> color Gray60 }
|
||||
light_source { <600, 700, -850> color Gray50 }
|
||||
|
||||
|
||||
|
||||
BIN
data/tintin_talking.ttf
Normal file
BIN
data/tintin_talking.ttf
Normal file
Binary file not shown.
11
essai.pov
11
essai.pov
@@ -13,16 +13,17 @@
|
||||
#include "incs/grue.inc"
|
||||
|
||||
// object { Boogie }
|
||||
object { Grande_Roue }
|
||||
|
||||
// object { Grande_Roue }
|
||||
#include "incs/enseigne.inc"
|
||||
object { Enseigne_Corail_texte }
|
||||
camera {
|
||||
location <5.5, 15, 20>
|
||||
location <17.5, 3, 10>
|
||||
right image_width/image_height*x
|
||||
look_at <0, 3, 0>
|
||||
look_at <0, 0, 0>
|
||||
angle ANGLE_CAM
|
||||
}
|
||||
|
||||
object { Repere }
|
||||
object { Repere scale 0.5 }
|
||||
|
||||
light_source { <90, 131, 190> color White }
|
||||
light_source { <90, 111, 250> color White }
|
||||
|
||||
@@ -18,10 +18,7 @@ union {
|
||||
cylinder { <0, 4.5, 9.75>, <0, 4.5, 12>, .8 }
|
||||
}
|
||||
translate y*6
|
||||
texture {
|
||||
pigment { color Green }
|
||||
finish { phong 0.5 }
|
||||
}
|
||||
texture { Vert_Train_1 }
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
* Une citerne de St Chinian
|
||||
*/
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
#include "incs/constantes.inc"
|
||||
|
||||
#declare Diam_Citerne = 4.6;
|
||||
#declare Epp_Cerclage = 0.233;
|
||||
#declare Diam_Cerclage = (Diam_Citerne+Epp_Cerclage);
|
||||
@@ -40,11 +43,8 @@ union {
|
||||
}
|
||||
}
|
||||
scale <1, 0.882, 1>
|
||||
translate y*10.7
|
||||
texture {
|
||||
pigment { color rgb <0.96, 0.25, 0.2> }
|
||||
finish { phong 0.6 }
|
||||
}
|
||||
translate y*10.7 // ???
|
||||
texture { Rouge_Train_1 }
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/*
|
||||
LES JOUETS DE TONTON TH
|
||||
LES POVJOUETS DE TONTON TH
|
||||
Quelque constantes utiles
|
||||
*/
|
||||
|
||||
#ifdef(Jouets_Constantes)
|
||||
// do nothing
|
||||
#error "constantes deja definies\n"
|
||||
// #warning "*** constantes deja definies\n"
|
||||
#else
|
||||
#declare Jouets_Constantes=version;
|
||||
|
||||
@@ -18,11 +18,57 @@
|
||||
/* generateur de nombres pseudo-aleatoires.
|
||||
mais comment le 'seeder' de fac,on differente a chaque run ? */
|
||||
|
||||
#declare RND = seed(42);
|
||||
#declare RND = seed(1664);
|
||||
|
||||
#declare FADE_DIST = 2.0;
|
||||
#declare FADE_POWA = 2.0;
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/* il nous faut quelques textures 'standards' */
|
||||
|
||||
#declare Orange_Corail = texture
|
||||
{
|
||||
pigment { color Orange }
|
||||
normal { dents 0.42 scale 0.042 }
|
||||
finish { phong 0.4 }
|
||||
}
|
||||
|
||||
#declare Jaune_Corail = texture
|
||||
{
|
||||
pigment { color Yellow }
|
||||
normal { dents 0.32 scale 0.242 }
|
||||
finish { phong 0.4 }
|
||||
}
|
||||
|
||||
#declare Vert_Train_1 = texture
|
||||
{
|
||||
/* pour la benne */
|
||||
pigment { color rgb <0.22, 0.77, 0.11> }
|
||||
normal { bumps 0.17 rotate <10, 0, 10> scale 0.31 }
|
||||
finish { phong 0.5 }
|
||||
}
|
||||
|
||||
#declare Rouge_Train_1 = texture
|
||||
{
|
||||
// pour la citerne
|
||||
pigment { color rgb <0.93, 0.25, 0.2> }
|
||||
normal { bumps 0.33 scale 0.42 }
|
||||
finish { phong 0.5 }
|
||||
}
|
||||
|
||||
#declare Texture_Roues = texture
|
||||
{
|
||||
pigment { color LightSteelBlue }
|
||||
finish { specular 0.5 }
|
||||
}
|
||||
|
||||
#declare Texture_Chassis = texture
|
||||
{
|
||||
pigment { color Yellow }
|
||||
finish { phong 0.5 ambient 0.4 }
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
#end // #ifdef
|
||||
|
||||
|
||||
@@ -6,27 +6,22 @@
|
||||
|
||||
#declare Chassis_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
box { <-4, 5.5, -20>, <4, 6.5, 20> }
|
||||
box { <-3.5, 3.5, -5>, <3.5, 5.4, -1> }
|
||||
box { <-3.5, 3.5, 5>, <3.5, 5.4, 1> }
|
||||
}
|
||||
texture {
|
||||
pigment { color Yellow }
|
||||
finish { phong 0.7 }
|
||||
}
|
||||
texture { Jaune_Corail }
|
||||
}
|
||||
|
||||
#declare Base_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
object { Chassis_Corail }
|
||||
object { Boogie translate z*-13.8 }
|
||||
object { Boogie translate z* 13.8 }
|
||||
}
|
||||
finish { phong 0.65 }
|
||||
// finish { phong 0.65 }
|
||||
}
|
||||
|
||||
|
||||
@@ -36,21 +31,18 @@ finish { phong 0.65 }
|
||||
|
||||
#declare Bord_Fenetre = object
|
||||
{
|
||||
difference
|
||||
{
|
||||
difference {
|
||||
box { <-1, -HAUT_FEN, -LARG_FEN>,
|
||||
<1, HAUT_FEN, LARG_FEN> }
|
||||
box { <-2, -HAUT_FEN+E_FEN, -LARG_FEN+E_FEN>,
|
||||
<2, HAUT_FEN-E_FEN, LARG_FEN-E_FEN> }
|
||||
}
|
||||
|
||||
texture { T_Chrome_2C }
|
||||
}
|
||||
|
||||
#declare Cabine_Corail = object
|
||||
{
|
||||
difference
|
||||
{
|
||||
difference {
|
||||
box { <-4.5, 6.6, -20>, <4.5, 15, 20> }
|
||||
box { <-4, 6.6, -19.5>, <4, 15.1, 19.5> }
|
||||
|
||||
@@ -68,20 +60,17 @@ difference
|
||||
box { <-2.2, 7, -21>, < 2.2, 14.8, -19> }
|
||||
box { <-2.2, 7, 21>, < 2.2, 14.8, 19> }
|
||||
}
|
||||
pigment { color Orange }
|
||||
finish { phong 0.5 }
|
||||
texture { Orange_Corail }
|
||||
}
|
||||
|
||||
#declare Toit_Corail = object
|
||||
{
|
||||
intersection
|
||||
{
|
||||
intersection {
|
||||
box { <-4.7, 0, -21>, <4.7, 14, 21> }
|
||||
cylinder { <0, -11, -22>, <0, -11, 22>, 12.5 }
|
||||
}
|
||||
translate y*15
|
||||
texture
|
||||
{
|
||||
texture {
|
||||
pigment { color Red }
|
||||
finish { phong 0.6 }
|
||||
}
|
||||
@@ -90,28 +79,33 @@ texture
|
||||
//
|
||||
// la tuyauterie sur les deux caissons d'en dessous
|
||||
//
|
||||
#declare Citerne_Corail = object
|
||||
{
|
||||
#local Ltc = 5.22;
|
||||
#local Rtc = 1.12;
|
||||
#local Etc = 4.98;
|
||||
|
||||
merge {
|
||||
cylinder { -Ltc*z, Ltc*z, Rtc }
|
||||
sphere { -Ltc*z, Rtc }
|
||||
sphere { Ltc*z, Rtc }
|
||||
}
|
||||
scale <1, 1, 0.707>
|
||||
texture { T_Chrome_4C }
|
||||
}
|
||||
#declare Tuyaux_Corail = object
|
||||
{
|
||||
#local posX = 4.8;
|
||||
#local diametre = 1.2;
|
||||
union
|
||||
{
|
||||
cylinder { <-4.7, 4.5, -5>, <-4.7, 4.5, 5>, diametre }
|
||||
sphere { <-4.7, 4.5, -5>, diametre }
|
||||
sphere { <-4.7, 4.5, 5>, diametre }
|
||||
cylinder { < 4.7, 4.5, -5>, < 4.7, 4.5, 5>, diametre }
|
||||
sphere { < 4.7, 4.5, -5>, diametre }
|
||||
sphere { < 4.7, 4.5, 5>, diametre }
|
||||
union {
|
||||
object { Citerne_Corail translate -x* Etc }
|
||||
object { Citerne_Corail translate x* Etc }
|
||||
}
|
||||
texture { T_Chrome_4C }
|
||||
}
|
||||
|
||||
// ------------------------------------------
|
||||
|
||||
#declare Armature_Siege_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
cylinder { <-1.3, 0, 0>, <-1.3, 1.50, 0>, 0.2 }
|
||||
cylinder { < 1.3, 0, 0>, < 1.3, 1.50, 0>, 0.2 }
|
||||
|
||||
@@ -134,15 +128,13 @@ texture { T_Chrome_2C }
|
||||
|
||||
#declare Coussins_Siege_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
box { <-2, 1.75, -1>, <2, 1.40, 1> }
|
||||
box { <-2, 1.95, 1>, <2, 3.10, 0.8> }
|
||||
|
||||
cylinder { <-2, 3.38, 0.9>, <2, 3.38, 0.9>, 0.2 }
|
||||
}
|
||||
texture
|
||||
{
|
||||
texture {
|
||||
pigment { color Brown }
|
||||
normal { bumps 0.6 scale 0.42 }
|
||||
finish { phong 0.4 diffuse 0.3 }
|
||||
@@ -151,8 +143,7 @@ texture
|
||||
|
||||
#declare Siege_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
object { Armature_Siege_Corail }
|
||||
object { Coussins_Siege_Corail }
|
||||
}
|
||||
@@ -164,27 +155,25 @@ union
|
||||
//
|
||||
#declare Ampoule_Corail = object
|
||||
{
|
||||
sphere { <0, 0, 0> 0.2 pigment { color Gray90 } }
|
||||
sphere { <0, 0, 0> 0.17 pigment { color White } }
|
||||
}
|
||||
|
||||
// ------------------------------------------
|
||||
|
||||
#declare Lumieres_Corail = object
|
||||
{
|
||||
|
||||
union
|
||||
{
|
||||
union {
|
||||
#declare foo = -2;
|
||||
#while (foo <= 2)
|
||||
#declare px = foo * 6.97;
|
||||
|
||||
sphere { <0, 15.3, px> 0.6 pigment { color BakersChoc } }
|
||||
// sphere { <0, 15.3, px> 0.6 pigment { color BakersChoc } }
|
||||
|
||||
light_source {
|
||||
<0, 0, px> color Gray35
|
||||
fade_distance 6 fade_power 1
|
||||
looks_like { Ampoule_Corail }
|
||||
translate y*13.8
|
||||
translate y*13.85
|
||||
}
|
||||
|
||||
#declare foo = foo + 1;
|
||||
@@ -195,8 +184,7 @@ union
|
||||
|
||||
#declare Interieur_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
#declare foo = -4;
|
||||
#while (foo <= 4)
|
||||
#declare px = foo * 4.16;
|
||||
@@ -206,14 +194,12 @@ union
|
||||
}
|
||||
}
|
||||
// ------------------------------------------
|
||||
|
||||
/*
|
||||
* MAIS CETTE RAMPE EST COMPLETEMENT FAUSSE !!!
|
||||
*/
|
||||
#declare Rampe = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
#declare foo = -2;
|
||||
#while (foo <= 2)
|
||||
#declare px = foo * 6.97;
|
||||
@@ -235,15 +221,14 @@ union
|
||||
|
||||
#declare Wagon_Corail = object
|
||||
{
|
||||
union
|
||||
{
|
||||
union {
|
||||
object { Base_Corail }
|
||||
object { Cabine_Corail }
|
||||
object { Toit_Corail }
|
||||
object { Tuyaux_Corail }
|
||||
object { Tuyaux_Corail translate y*4.16 }
|
||||
object { Interieur_Corail }
|
||||
object { Lumieres_Corail }
|
||||
object { Rampe }
|
||||
// object { Rampe }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ texture {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#declare Haut_Pento = 15;
|
||||
#declare Haut_Pento = 18;
|
||||
|
||||
#declare Base_Panto_0 = object
|
||||
{
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* see 'gare.inc' for usage
|
||||
*/
|
||||
|
||||
#include "chars.inc"
|
||||
|
||||
#declare Enseigne = object
|
||||
/* ===========================================================*/
|
||||
/*
|
||||
* see 'gare.inc' for usage
|
||||
*/
|
||||
#declare Enseigne_Hello = object
|
||||
{
|
||||
union
|
||||
{
|
||||
@@ -22,5 +23,33 @@ union
|
||||
}
|
||||
texture { PinkAlabaster scale 3 }
|
||||
}
|
||||
/* ===========================================================*/
|
||||
#declare Enseigne_Corail_plaque = object
|
||||
{
|
||||
box { <-0.8, -0.01, -3.5>, <0.8, 0.01, 3.5> }
|
||||
pigment { color Blue }
|
||||
rotate z*90
|
||||
}
|
||||
/* ----------------------------------------------------------- */
|
||||
#declare Enseigne_Corail_texte = object
|
||||
{
|
||||
text { ttf "data/tintin_talking.ttf" ,
|
||||
"Bourtoulots Express", 0.06, 0.0
|
||||
pigment{ White }
|
||||
}
|
||||
translate -3.6*x
|
||||
rotate -90 * y
|
||||
translate <0.03, -0.19, 0.00>
|
||||
}
|
||||
/* ----------------------------------------------------------- */
|
||||
#declare Enseigne_Corail_texte = object
|
||||
{
|
||||
union {
|
||||
object { Enseigne_Corail_plaque }
|
||||
object { Enseigne_Corail_texte }
|
||||
}
|
||||
}
|
||||
/* ===========================================================*/
|
||||
/* ===========================================================*/
|
||||
|
||||
/* (c) Oulala */
|
||||
/* (c) Oulala 2025 */
|
||||
|
||||
@@ -43,7 +43,7 @@ union
|
||||
{
|
||||
object { Corps_Gare }
|
||||
object { Quai_Gare }
|
||||
object { Enseigne scale 15 translate <0, 460, -210> }
|
||||
object { Enseigne_Hello scale 15 translate <0, 460, -210> }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -106,8 +106,8 @@ union
|
||||
sphere { < 3, 8.5, 14>, 2 }
|
||||
sphere { <-3, 8.5, 14>, 2 }
|
||||
}
|
||||
texture { T_Chrome_2C }
|
||||
|
||||
// rotate 10*x
|
||||
texture { T_Chrome_3C }
|
||||
}
|
||||
|
||||
#declare Locomotive_Vapeur = object
|
||||
|
||||
@@ -19,7 +19,7 @@ texture {
|
||||
pigment { color MediumWood }
|
||||
finish { roughness .83 }
|
||||
}
|
||||
translate y*5.75
|
||||
translate y*5.85
|
||||
}
|
||||
|
||||
/* avant et arriere */
|
||||
|
||||
@@ -5,17 +5,7 @@
|
||||
*/
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
#declare Texture_Roues = texture
|
||||
{
|
||||
pigment { color LightSteelBlue }
|
||||
finish { phong 0.7 }
|
||||
}
|
||||
|
||||
#declare Texture_Chassis = texture
|
||||
{
|
||||
pigment { color Yellow }
|
||||
finish { phong 0.6 ambient 0.4 }
|
||||
}
|
||||
#include "incs/constantes.inc"
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
@@ -31,7 +21,7 @@ difference {
|
||||
|
||||
#declare foo = 0;
|
||||
#while (foo < 360)
|
||||
#local R = 2.2;
|
||||
#local R = 2.35;
|
||||
#declare xx = sin(radians(foo))*R;
|
||||
#declare yy = cos(radians(foo))*R;
|
||||
|
||||
@@ -105,7 +95,7 @@ union {
|
||||
#declare Chassis_Court = object
|
||||
{
|
||||
union {
|
||||
box { <-3.5, 0, -12>, <3.5, 2, 12> }
|
||||
box { <-3.5, 0.2, -12>, <3.5, 1.8, 12> }
|
||||
box { <-3.6, 0.7, -12.5>, <3.6, 1.3, 12.5> }
|
||||
}
|
||||
translate y*4.1
|
||||
@@ -115,7 +105,7 @@ texture { Texture_Chassis }
|
||||
#declare Chassis_Long = object
|
||||
{
|
||||
union {
|
||||
box { <-3.5, 0, -15.5>, <3.5, 2, 15.5> }
|
||||
box { <-3.5, 0.2, -15.5>, <3.5, 1.8, 15.5> }
|
||||
box { <-4, 0.5, -16>, <4, 1.5, 16> }
|
||||
}
|
||||
translate y*4.1
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
object { Wagon_Corail }
|
||||
camera {
|
||||
location <-1.6, 10, -19>
|
||||
location <-1.6, 12, -19>
|
||||
right image_width/image_height*x
|
||||
look_at <1, 4, 10>
|
||||
angle 80
|
||||
@@ -26,7 +26,7 @@ camera {
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
|
||||
light_source { <180, 125, -180> color White }
|
||||
// light_source { <180, 125, -180> color White }
|
||||
//light_source { <170, 100, -180> color White }
|
||||
//light_source { <120, 11, -185> color White }
|
||||
|
||||
|
||||
13
loco.pov
13
loco.pov
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
*
|
||||
* LOCO.POV
|
||||
*/
|
||||
|
||||
#version 3.7;
|
||||
@@ -13,23 +13,24 @@
|
||||
#include "incs/rails.inc"
|
||||
#include "incs/train.inc"
|
||||
#include "incs/locomotive.inc"
|
||||
// #include "electric.inc"
|
||||
#include "incs/electric.inc"
|
||||
|
||||
union {
|
||||
object { Un_Rail_Droit }
|
||||
object { Un_Rail_Droit translate z*-100 }
|
||||
object { Locomotive_Vapeur translate <0, 2, 15> }
|
||||
object { Locomotive_Vapeur translate <0, 2, 17.8> }
|
||||
rotate y*5
|
||||
}
|
||||
|
||||
|
||||
#if (0)
|
||||
union {
|
||||
object { Un_Rail_Droit }
|
||||
object { Un_Rail_Droit translate z*-100 }
|
||||
// object { Locomotive_Electric translate y*2 }
|
||||
object { Locomotive_Electric translate y*2 }
|
||||
translate x*42
|
||||
}
|
||||
|
||||
#end
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
@@ -43,6 +44,4 @@ camera {
|
||||
light_source { <150, 118, -150> color Gray70 }
|
||||
light_source { <-170, 298, -250> color Gray70 }
|
||||
|
||||
light_source { <-700, 200, 150> color White }
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
13
monde.inc
13
monde.inc
@@ -4,8 +4,10 @@
|
||||
*/
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
#declare R_monde = 290; /* le rayon du monde */
|
||||
|
||||
cylinder {
|
||||
<0, -0.2, 0>, 0, 400
|
||||
<0, -0.2, 0>, 0, R_monde
|
||||
pigment {
|
||||
image_map {
|
||||
png "picz/plancher.png" interpolate 2
|
||||
@@ -16,6 +18,15 @@ cylinder {
|
||||
}
|
||||
}
|
||||
|
||||
#for (foo, 0, 360, 1)
|
||||
#local R2 = R_monde - 1.5;
|
||||
#local xpos = R2 * sin(radians(foo));
|
||||
#local zpos = R2 * cos(radians(foo));
|
||||
cylinder { <0, 0, 0>, <0, 5, 0>, 0.40
|
||||
pigment { color <0.5, 0.5, 0.9> }
|
||||
translate <xpos, 0, zpos> }
|
||||
#end
|
||||
|
||||
sky_sphere {
|
||||
pigment
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
SPOOL="$HOME/TMP"
|
||||
mkdir "$SPOOL"
|
||||
|
||||
NBRE=279
|
||||
POVOPT=" -w768 -h576 +q9 +a -d "
|
||||
NBRE=599
|
||||
POVOPT=" -w1280 -h960 +q9 -a -d "
|
||||
SRCFILE="train.pov"
|
||||
|
||||
for idx in $(seq 0 $NBRE)
|
||||
@@ -13,7 +13,7 @@ do
|
||||
outfile=$(printf "%s/%04d.png" $SPOOL $idx)
|
||||
horloge=$(echo "$idx / $NBRE" | bc -l)
|
||||
|
||||
printf "%-20s %.3f\n" $outfile $horloge
|
||||
printf "%-20s %.4f\n" $outfile $horloge
|
||||
|
||||
povray -i${SRCFILE} ${POVOPT} -K${horloge} -o${outfile}
|
||||
|
||||
@@ -21,6 +21,6 @@ done
|
||||
|
||||
ffmpeg -nostdin \
|
||||
-loglevel error \
|
||||
-y -r 30 -f image2 -i $SPOOL/%04d.png \
|
||||
-y -r 25 -f image2 -i $SPOOL/%04d.png \
|
||||
-c:v libx264 -pix_fmt yuv420p \
|
||||
$SPOOL/foo.mp4
|
||||
|
||||
11
train.pov
11
train.pov
@@ -45,12 +45,13 @@ union
|
||||
object { Locomotive_Vapeur translate <0, 2, -52> }
|
||||
object { Wagon_Citerne translate <0, 2, -21> }
|
||||
object { Wagon_Benne translate <0, 2, 6> }
|
||||
object { Wagon_Ridelles translate <0, 2, 41> }
|
||||
object { Wagon_Ridelles translate <0, 2, 35> }
|
||||
|
||||
#local XS = 60;
|
||||
object { Trois_rails translate x*XS }
|
||||
|
||||
#local DZ = 60 - (clock*33);
|
||||
#local K = Cos_01(clock);
|
||||
#local DZ = 50 - (K * 85);
|
||||
object { Train_Electric translate <XS, 0, DZ> }
|
||||
}
|
||||
|
||||
@@ -68,12 +69,12 @@ camera
|
||||
{
|
||||
location <260, 38, 25>
|
||||
right image_width/image_height*x
|
||||
look_at <0, 3, 10>
|
||||
look_at <0, 3, 12>
|
||||
angle ANGLE_CAM
|
||||
}
|
||||
|
||||
light_source { <150, 98, -150> color Orange }
|
||||
light_source { <170, 88, -170> color Yellow }
|
||||
light_source { <150, 98, -150> color Orange }
|
||||
light_source { <170, 128, -170> color Yellow }
|
||||
|
||||
// light_source { <100, 100, 50> color White }
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ camera
|
||||
angle ANGLE_CAM
|
||||
}
|
||||
|
||||
light_source { <-50, 120, -330> color Gray50 }
|
||||
light_source { <190, 498, -250> color White }
|
||||
// light_source { <-50, 120, -330> color Gray50 }
|
||||
// light_source { <190, 498, -250> color White }
|
||||
light_source { <160, 99, -450> color Yellow }
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user