From d0edb79cb68ae77083d56ba209b1bb3d009fa2c5 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Mon, 30 Dec 2024 04:41:51 +0100 Subject: [PATCH] start of cleanup --- incs/constantes.inc | 13 ++++++++++--- incs/corail.inc | 9 ++++----- incs/locomotive.inc | 4 ++-- loco.pov | 13 ++++++------- monde.inc | 3 ++- 5 files changed, 24 insertions(+), 18 deletions(-) diff --git a/incs/constantes.inc b/incs/constantes.inc index b2a8c55..ce4af68 100644 --- a/incs/constantes.inc +++ b/incs/constantes.inc @@ -1,5 +1,5 @@ /* - LES JOUETS DE TONTON TH + LES POVJOUETS DE TONTON TH Quelque constantes utiles */ @@ -23,11 +23,18 @@ /* ------------------------------------------------------------ */ /* il nous faut quelques textures 'standards' */ +#declare Orange_Corail = texture +{ +pigment { color Orange } +normal { dents 0.22 scale 0.42 } +finish { phong 0.5 } +} + #declare Vert_Train_1 = texture { // pour la benne pigment { color Green } - normal { bumps 0.33 scale 0.42 } + normal { bumps 0.22 scale 0.42 } finish { phong 0.5 } } @@ -43,7 +50,7 @@ #declare Texture_Roues = texture { pigment { color LightSteelBlue } - finish { phong 0.7 } + finish { phong 0.5 } } #declare Texture_Chassis = texture diff --git a/incs/corail.inc b/incs/corail.inc index 0d60ad7..ff48e58 100644 --- a/incs/corail.inc +++ b/incs/corail.inc @@ -14,7 +14,7 @@ union } texture { pigment { color Yellow } - finish { phong 0.7 } + finish { phong 0.5 } } } @@ -26,7 +26,7 @@ union object { Boogie translate z*-13.8 } object { Boogie translate z* 13.8 } } -finish { phong 0.65 } +// finish { phong 0.65 } } @@ -68,8 +68,7 @@ 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 @@ -243,7 +242,7 @@ union object { Tuyaux_Corail } object { Interieur_Corail } object { Lumieres_Corail } - object { Rampe } + // object { Rampe } } } diff --git a/incs/locomotive.inc b/incs/locomotive.inc index 0e81064..c8c906c 100644 --- a/incs/locomotive.inc +++ b/incs/locomotive.inc @@ -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 diff --git a/loco.pov b/loco.pov index b0668bc..175703d 100644 --- a/loco.pov +++ b/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 } - /*------------------------------------------------------------------*/ diff --git a/monde.inc b/monde.inc index 3f8c4c9..825761b 100644 --- a/monde.inc +++ b/monde.inc @@ -22,7 +22,8 @@ cylinder { #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 Blue } + cylinder { <0, 0, 0>, <0, 5, 0>, 0.40 + pigment { color <0.5, 0.5, 0.9> } translate } #end