From 9430b5f133b1601b8c0af8324bc19c6b0682db16 Mon Sep 17 00:00:00 2001 From: le vieux Date: Mon, 15 Mar 2021 03:08:13 +0100 Subject: [PATCH] need more work... --- Makefile | 21 ++++++++++----------- benne.pov | 3 ++- citerne.pov | 23 ++++------------------- contexte.inc | 2 +- corail.pov | 29 +++-------------------------- electric.pov | 10 +++++----- essai.pov | 5 +++-- gare.pov | 38 ++++++++++++++++++++++++++++++++++++++ grue.pov | 1 + incs/gare.inc | 6 +++--- incs/locomotive.inc | 8 +++++--- incs/train.inc | 2 +- inside.pov | 25 ++----------------------- loco.pov | 45 +++++++-------------------------------------- monde.inc | 4 ++-- parking.pov | 32 +++----------------------------- ridelles.pov | 4 ++-- rotonde.pov | 14 +++----------- train.pov | 29 ++++++++--------------------- truc.pov | 15 ++------------- voiture.pov | 34 ++++++++++++++++++++++++++++++++++ wagons.pov | 3 ++- 22 files changed, 141 insertions(+), 212 deletions(-) create mode 100644 gare.pov create mode 100644 voiture.pov diff --git a/Makefile b/Makefile index bacf559..c6a479e 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,12 @@ GRAND=+w1600 +h1200 PETIT=+w800 +h600 DIMS=$(PETIT) -OPTS = +a +q9 -d +OPTS = +a0.01 +q9 -d POVRAY=povray # nouveau mars 2021 -INCS = incs/ +INCS = incs # CJPEGOPT=-quality 88 -progressive -dct float -targa CJPEGOPT = -progressive -dct float -quality 88 @@ -22,9 +22,10 @@ all: loco.png parking.png corail.png train.png essai.png \ citerne.png GLOBDEPS=${INCS}/train.inc ${INCS}/poteaux.inc \ + ${INCS}/electric.inc ${INCS}/voiture.inc \ ${INCS}/rails.inc ${INCS}/grue.inc ${INCS}/ridelles.inc \ - ${INCS}/citerne.inc \ - ${INCS}/constantes.inc \ + ${INCS}/citerne.inc ${INCS}/benne.inc \ + ${INCS}/constantes.inc ${INCS}/locomotive.inc \ contexte.inc monde.inc #-------------------------------------------------------- @@ -48,17 +49,15 @@ parking.png: parking.pov Makefile $(GLOBDEPS) loco.png: loco.pov ${GLOBDEPS} Makefile $(POVRAY) +Iloco $(DIMS) $(OPTS) +v -train.png: train.pov ${DEPS} Makefile +train.png: train.pov ${GLOBDEPS} Makefile $(POVRAY) +Itrain $(DIMS) $(OPTS) +v corail.png: corail.pov Makefile $(GLOBDEPS) $(POVRAY) +Icorail $(DIMS) $(OPTS) +v - -gare.tga: gare.pov gare.inc plancher.tga plancher.inc \ - enseigne.inc Makefile - $(POVRAY) +Igare +FT $(DIMS) $(OPTS) +v +gare.png: gare.pov $(GLOBDEPS) Makefile + $(POVRAY) +Igare $(DIMS) $(OPTS) +v #----------------------------------------------------------------------- @@ -89,8 +88,8 @@ grue.png: grue.pov $(GLOBDEPS) Makefile #-------------------------------------------------------- # les trucs en travaux -tmp/voiture.tga: voiture.inc voiture.pov $(GLOBDEPS) - $(POVRAY) +Ivoiture +FT +Otmp/ $(DIMS) $(OPTS) +v +voiture.png: voiture.pov $(GLOBDEPS) Makefile + $(POVRAY) +Ivoiture $(DIMS) $(OPTS) +v #-------------------------------------------------------- diff --git a/benne.pov b/benne.pov index fb066e9..f7e8b89 100644 --- a/benne.pov +++ b/benne.pov @@ -6,6 +6,7 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" @@ -32,7 +33,7 @@ camera location <35.5, 13, 20> right image_width/image_height*x look_at <0, 6, 0> - angle 51 + angle ANGLE_CAM } light_source { <90, 131, 190> color White } diff --git a/citerne.pov b/citerne.pov index 7bda01b..6e2098a 100644 --- a/citerne.pov +++ b/citerne.pov @@ -1,8 +1,9 @@ /* - + * une citerne pour transporter le pinard */ #version 3.7; +#include "contexte.inc" #include "colors.inc" #include "metals.inc" @@ -24,30 +25,14 @@ object { Wagon_Citerne translate y*2 } /*------------------------------------------------------------------*/ -#include "plancher.inc" -object { Plancher_0 scale <.5, 1, .5> } - -sky_sphere { - pigment - { - gradient x - color_map - { - [0 color Green] - [0.33 color Gray30 ] - [1 color Blue] - } - } - scale 0.5 - translate -1 - } +#include "monde.inc" camera { location <36, 13, -11> right image_width/image_height*x look_at <0, 5.8, 0> - angle 61 + angle ANGLE_CAM } light_source { <290, 131, -190> color White } diff --git a/contexte.inc b/contexte.inc index 1c64559..9c72bac 100644 --- a/contexte.inc +++ b/contexte.inc @@ -2,4 +2,4 @@ * contexte.inc */ - +#declare ANGLE_CAM = 42; diff --git a/corail.pov b/corail.pov index cf336ab..dd5f1bf 100644 --- a/corail.pov +++ b/corail.pov @@ -7,38 +7,15 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" #include "textures.inc" /*------------------------------------------------------------------*/ -plane { - y, 0 - pigment - { - brick Gray35, rgb<0.50, 0.40, 0.20> - rotate z*90 - } - } -sky_sphere { - pigment - { - gradient y - color_map - { - [0 color Khaki] - [0.2 color <0 , .1, .2>] - [0.5 color <0.2 , 0, 0>] - [0.6 color <0 , .2, .1>] - [1 color Khaki] - } - turbulence 2.5 - } - rotate 50 - scale 2 - } +#include "monde.inc" #include "incs/train.inc" #include "incs/rails.inc" @@ -70,7 +47,7 @@ camera location <18, 10, -45> right image_width/image_height*x look_at <0, 6, 0> - angle 62 + angle ANGLE_CAM } light_source { <550, 725, -900> color Gray60 } diff --git a/electric.pov b/electric.pov index 7ea1913..dcb4a03 100644 --- a/electric.pov +++ b/electric.pov @@ -5,10 +5,10 @@ */ #version 3.7; - global_settings { assumed_gamma 1.0 /* pour povray 3.7 */ } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" @@ -32,13 +32,13 @@ union camera { right x*image_width/image_height - location <11, 11.1, -54> + location <19, 11.1, -44> look_at <0, 8, -10> - angle 38 + angle ANGLE_CAM } -light_source { <7, 8, -54> color Gray80 } -light_source { <150, 130, -150> color Green } +light_source { <17, 8, -54> color Gray80 } +// light_source { <150, 130, -150> color Green } light_source { <270, 130, 250> color Gray50 } /*------------------------------------------------------------------*/ diff --git a/essai.pov b/essai.pov index f39edda..d0468db 100644 --- a/essai.pov +++ b/essai.pov @@ -4,6 +4,7 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" @@ -16,10 +17,10 @@ global_settings { assumed_gamma 1.0 } object { Boogie } camera { - location <15.5, 8, 9> + location <19.5, 8, 9> right image_width/image_height*x look_at <0, 0, 0> - angle 51 + angle ANGLE_CAM } cylinder { <-100, 0, 0>, <100, 0, 0>, 0.1 pigment { color Red } } diff --git a/gare.pov b/gare.pov new file mode 100644 index 0000000..c340e8e --- /dev/null +++ b/gare.pov @@ -0,0 +1,38 @@ + +/* + * UN TRAIN SANS GARE ? + * NON ! + * + * + */ + +#version 3.7; +global_settings { + assumed_gamma 1.0 /* pour povray 3.7 */ + } +#include "contexte.inc" + +#include "colors.inc" +#include "textures.inc" + +/*------------------------------------------------------------------*/ +// #include "incs/plancher.inc" + +#include "incs/decor.inc" +#include "incs/gare.inc" +#include "incs/rails.inc" + +object { Gare } + +/*------------------------------------------------------------------*/ + +camera + { + location <320, 490, -1400> + look_at <0, 460, 0> + } + +light_source { <1650, 878, -850> color White } +light_source { <930, 598, -1350> color Yellow } + +/*------------------------------------------------------------------*/ diff --git a/grue.pov b/grue.pov index a609dd1..d0f562d 100644 --- a/grue.pov +++ b/grue.pov @@ -5,6 +5,7 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" diff --git a/incs/gare.inc b/incs/gare.inc index 0e8e0d7..c9f493f 100644 --- a/incs/gare.inc +++ b/incs/gare.inc @@ -33,9 +33,9 @@ pigment { color White } finish { phong 0.4 } } -#include "decor.inc" -#include "enseigne.inc" -#include "rails.inc" +// #include "decor.inc" +#include "incs/enseigne.inc" +// #include "incs/rails.inc" #declare Gare = object { diff --git a/incs/locomotive.inc b/incs/locomotive.inc index 3e4fb59..991b117 100644 --- a/incs/locomotive.inc +++ b/incs/locomotive.inc @@ -43,8 +43,10 @@ union { sphere { < 3.3, -2.75, -16.5>, .6 } sphere { < 3.3, -2.75, -1>, .6 } } -pigment { color Gray60 } -finish { phong 0.5 } +texture { + pigment { color Gray60 } + finish { phong 0.5 } + } translate y*10 } @@ -59,7 +61,7 @@ difference { cylinder { <0, 3, -8>, <0, 6.2, -8>, .95 } } texture { - pigment { color Gray40 } + pigment { color Gray30 } finish { phong 0.65 } } translate y*10 diff --git a/incs/train.inc b/incs/train.inc index fc435cc..1850cf3 100644 --- a/incs/train.inc +++ b/incs/train.inc @@ -23,7 +23,7 @@ difference { cylinder { <-2, xx, yy>, <2, xx, yy>, 0.56 } - #declare foo = foo + 45; + #declare foo = foo + 36; #end } translate y*4 diff --git a/inside.pov b/inside.pov index 6b7a9ca..a877356 100644 --- a/inside.pov +++ b/inside.pov @@ -7,35 +7,14 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" /*------------------------------------------------------------------*/ -sky_sphere { - pigment - { - gradient y - color_map - { - [0 color Gray75] - [1 color Blue] - } - } - scale 4 - translate -1 - rotate x*60 - } - -plane { - y, 0 - pigment - { - brick Gray35, rgb<0.50, 0.40, 0.30> - rotate z*90 - } - } +#include "monde.inc" #include "incs/train.inc" #include "incs/corail.inc" diff --git a/loco.pov b/loco.pov index 10c9918..5fc87d5 100644 --- a/loco.pov +++ b/loco.pov @@ -4,49 +4,18 @@ */ #version 3.7; +#include "contexte.inc" + +global_settings { + assumed_gamma 1.0 /* pour povray 3.7 */ + } #include "colors.inc" #include "metals.inc" - -global_settings { - ambient_light <0.18, 0.25, 0.35> - assumed_gamma 1.0 /* pour povray 3.7 */ - } - - /*------------------------------------------------------------------*/ -plane { - y, 0 - pigment { - image_map { png "picz/plancher.png" } - rotate x*90 - translate <-0.5, 0, -0.5> - scale <42, 1, 42> - } - normal { - dents 0.3 - scale 0.3 - } - } -sky_sphere { - pigment { - gradient y - color_map - { - [0 color Khaki] - [0.4 color DarkGreen] - [0.5 color Blue] - [0.6 color LightBlue] - [1 color Khaki] - } - turbulence 0.42*2 - } - rotate 70 - scale 0.3123 - translate -1 - } +#include "monde.inc" #include "incs/rails.inc" #include "incs/train.inc" @@ -75,7 +44,7 @@ camera { location <-42, 17.5, 32> right image_width/image_height*x look_at <5, 9.7, 18> - angle 42 + angle ANGLE_CAM } light_source { <150, 118, -150> color Gray70 } diff --git a/monde.inc b/monde.inc index 939789a..05d4a1b 100644 --- a/monde.inc +++ b/monde.inc @@ -24,13 +24,13 @@ sky_sphere { { [0 color Khaki ] [0.2 color Gray20 ] - [0.5 color Blue ] [0.87 color LightBlue ] [1 color Khaki ] } + turbulence 0.25 } rotate 50 - scale 0.05 + scale 0.15 translate -1 } diff --git a/parking.pov b/parking.pov index eba0468..4531212 100644 --- a/parking.pov +++ b/parking.pov @@ -6,40 +6,14 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" /*------------------------------------------------------------------*/ -disc { - <0, 0, 0>, y, 100 - pigment - { - brick Gray45, rgb<0.81, 0.42, 0.40> - rotate z*90 - } - scale 2 - rotate y*12 - } - -sky_sphere { - pigment - { - gradient y - color_map - { - [0 color Black] - [0.33 color <0.6, 0.3, 0.5> ] - [0.44 color <0.6, 0.3, 0.1> ] - [0.66 color Blue] - [1 color Black] - } - turbulence 0.92 - } - scale 0.82 - rotate 42 - } +#include "monde.inc" #include "incs/train.inc" #include "incs/locomotive.inc" @@ -99,7 +73,7 @@ camera location <44, 4, -110> right image_width/image_height*x look_at <10, 1.9, 0> - angle 62 + angle ANGLE_CAM } light_source { <150, 78, -250> color Gray20 } diff --git a/ridelles.pov b/ridelles.pov index 7f48658..c2adbe8 100644 --- a/ridelles.pov +++ b/ridelles.pov @@ -1,11 +1,11 @@ #version 3.7; +#include "contexte.inc" #include "colors.inc" #include "metals.inc" #include "textures.inc" global_settings { - ambient_light Gray15 assumed_gamma 1.0 /* pour povray 3.7 */ } @@ -33,7 +33,7 @@ camera location <40, 15, -50> right x*image_width/image_height look_at <0, 5, 0> - angle 42 + angle ANGLE_CAM } light_source { <200, 70, -200> color Gray50 } diff --git a/rotonde.pov b/rotonde.pov index 39a0136..6088cfa 100644 --- a/rotonde.pov +++ b/rotonde.pov @@ -1,12 +1,13 @@ #version 3.7; +global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" #include "textures.inc" -global_settings { ambient_light Yellow } /*------------------------------------------------------------------*/ #include "incs/poteaux.inc" @@ -20,22 +21,13 @@ object { Un_Rail_Droit translate z*-100} /*------------------------------------------------------------------*/ -plane { - y, 0 - pigment - { - checker Gray75, rgb<0.81, 0.86, 0.81> - rotate z*90 - scale 10 - } - } camera { location <0, 70, 180> right image_width/image_height*x look_at <0, 0, 0> - angle 50 + angle ANGLE_CAM } light_source { <142, 500, 500> color White } diff --git a/train.pov b/train.pov index 59aaec8..0dc6b59 100644 --- a/train.pov +++ b/train.pov @@ -1,38 +1,25 @@ /* * - * pour plus de details: oulala@chez.com + * pour plus de details: + * http://la.buvette.org/POV/jouets/ * */ +#version 3.7; +global_settings { assumed_gamma 1.0 } +#include "contexte.inc" + #include "colors.inc" #include "metals.inc" #include "textures.inc" /*------------------------------------------------------------------*/ -global_settings { ambient_light Gray10 } +#include "monde.inc" -#include "plancher.inc" -object { Plancher_0 rotate y*3 } -#declare DarkKhaki = color red 0.523529 green 0.523529 blue 0.272549; -sky_sphere { - pigment - { - gradient y - color_map - { - [0 color DarkKhaki] - [0.3 color Blue] - [1 color LightBlue] - } - turbulence 0.8 - } - rotate 55 - translate -1 - } #include "incs/rails.inc" #include "incs/train.inc" @@ -70,7 +57,7 @@ camera location <130, 18, 15> right image_width/image_height*x look_at <0, 3, 10> - angle 70 + angle ANGLE_CAM } light_source { <150, 98, -150> color Orange } diff --git a/truc.pov b/truc.pov index 00919d9..481842a 100644 --- a/truc.pov +++ b/truc.pov @@ -4,6 +4,7 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" @@ -22,24 +23,12 @@ object { Bord_Fenetre translate y*7.5 } /*------------------------------------------------------------------*/ -background { color rgb <0.7, 0.7, 0.9999> } - -plane { - y, 0 - pigment - { - checker Gray75, rgb<0.71, 0.96, 0.81> - rotate z*90 - scale 10 - } - } - camera { location <-15, 11.333, 35> right image_width/image_height*x look_at <0, 9, 0> - angle 42 + angle ANGLE_CAM } light_source { <-50, 17, -50> color White } diff --git a/voiture.pov b/voiture.pov new file mode 100644 index 0000000..d4896b6 --- /dev/null +++ b/voiture.pov @@ -0,0 +1,34 @@ +/* + un fichier de test. +*/ +#version 3.7; +global_settings { + assumed_gamma 1.0 /* pour povray 3.7 */ + } +#include "contexte.inc" + +#include "colors.inc" +#include "metals.inc" + +#include "incs/train.inc" +#include "incs/rails.inc" +#include "incs/benne.inc" +#include "incs/grue.inc" +// #include "decor.inc" + +object { Boogie } + +camera { + location <15.5, 8, 9> + look_at <0, 0, 0> + angle 42 + } + +cylinder { <-100, 0, 0>, <100, 0, 0>, 0.1 pigment { color Red } } +cylinder { <0, -100, 0>, <0, 100, 0>, 0.1 pigment { color Green } } +cylinder { <0, 0, -100>, <0, 0, 100>, 0.1 pigment { color Blue } } + +light_source { <90, 131, 190> color White } +light_source { <90, 111, 250> color White } + +/*------------------------------------------------------------------*/ diff --git a/wagons.pov b/wagons.pov index 7eefda8..9d7d499 100644 --- a/wagons.pov +++ b/wagons.pov @@ -11,6 +11,7 @@ #version 3.7; global_settings { assumed_gamma 1.0 } +#include "contexte.inc" #include "colors.inc" #include "metals.inc" @@ -41,7 +42,7 @@ camera location <12, 10, -50> right image_width/image_height*x look_at <0, 0, 0> - angle 42 + angle ANGLE_CAM } light_source { <-50, 120, -330> color Gray50 }