From 8441d5ebe9746568e79f8cbfeefe957981412e88 Mon Sep 17 00:00:00 2001 From: le vieux Date: Mon, 8 Mar 2021 14:35:37 +0100 Subject: [PATCH] first complete run --- Makefile | 65 +++++++++-------------------- benne.pov | 2 +- citerne.pov | 55 +++++++++++++++++++++++++ corail.pov | 3 ++ grue.pov | 68 +++++++++++++++++++++++++++++++ incs/monde.inc => monde.inc | 1 - incs/plancher.inc => plancher.inc | 0 ridelles.pov | 43 +++++++++++++++++++ rotonde.pov | 42 +++++++++++++++++++ train.pov | 2 +- wagons.pov | 51 +++++++++++++++++++++++ 11 files changed, 284 insertions(+), 48 deletions(-) create mode 100644 citerne.pov create mode 100644 grue.pov rename incs/monde.inc => monde.inc (99%) rename incs/plancher.inc => plancher.inc (100%) create mode 100644 ridelles.pov create mode 100644 rotonde.pov create mode 100644 wagons.pov diff --git a/Makefile b/Makefile index 972e382..239bae3 100644 --- a/Makefile +++ b/Makefile @@ -3,58 +3,48 @@ MOYEN=+w1280 +h1024 GRAND=+w1600 +h1200 PETIT=+w800 +h600 -DIMS=$(PETIT) +DIMS=$(GRAND) -OPTS=+a +q9 -d -LOWR=-a +q5 -d +OPTS = +a +q9 -d +LOWR = -a +q5 -d POVRAY=povray -# nouveau mars 2001 +# nouveau mars 2021 INCS = incs/ # CJPEGOPT=-quality 88 -progressive -dct float -targa CJPEGOPT = -progressive -dct float -quality 88 PNGOPT = -interlace -compression 9 -text png.txt -all: loco.png parking.png corail.png train.png \ +all: loco.png parking.png corail.png train.png essai.png \ inside.png benne.png electric.png truc.png wagons.png \ - ridelles.png rotonde.png grue.png t1.jpg t2.jpg t3.jpg \ + ridelles.png rotonde.png grue.png \ citerne.png - echo "on a fait les images" >> log.toto -targa: tmp/ridelles.tga tmp/electric.tga tmp/citerne.tga \ - tmp/corail.tga tmp/voiture.tga - echo "on a fait les targas" >> log.toto - -GLOBDEPS=${INCS}/train.inc ${INCS}/plancher.inc ${INCS}/poteaux.inc \ +GLOBDEPS=${INCS}/train.inc plancher.inc ${INCS}/poteaux.inc \ ${INCS}/rails.inc ${INCS}/grue.inc \ ${INCS}/constantes.inc #-------------------------------------------------------- - essai.png: essai.pov Makefile $(GLOBDEPS) $(POVRAY) +Iessai +Oessai $(DIMS) $(OPTS) - #----------------------------------------------------------------------- # # le grand garage de tout les wagons # -tmp/rotonde.tga: rotonde.pov rotonde.inc - $(POVRAY) +Irotonde +FT +Otmp/ $(DIMS) $(OPTS) +v - -rotonde.jpg: tmp/rotonde.tga - cjpeg $(CJPEGOPT) tmp/rotonde.tga > rotonde.jpg +rotonde.png: rotonde.pov Makefile $(GLOBDEPS) + $(POVRAY) +Irotonde $(DIMS) $(OPTS) +v #----------------------------------------------------------------------- parking.png: parking.pov Makefile $(GLOBDEPS) $(POVRAY) +Iparking $(DIMS) $(OPTS) +v -loco.png: loco.pov ${DEPS} Makefile +loco.png: loco.pov ${GLOBDEPS} Makefile $(POVRAY) +Iloco $(DIMS) $(OPTS) +v train.png: train.pov ${DEPS} Makefile @@ -71,12 +61,8 @@ gare.tga: gare.pov gare.inc plancher.tga plancher.inc \ #----------------------------------------------------------------------- -tmp/wagons.tga: wagons.pov plancher.inc ridelles.inc \ - train.inc poteaux.inc Makefile - $(POVRAY) +Iwagons +ft +Otmp/ $(DIMS) $(OPTS) +v - -wagons.jpg: tmp/wagons.tga - cjpeg $(CJPEGOPT) tmp/wagons.tga > wagons.jpg +wagons.png: wagons.pov $(GLOBDEPS) Makefile + $(POVRAY) +Iwagons $(DIMS) $(OPTS) +v inside.png: inside.pov $(GLOBDEPS) Makefile $(POVRAY) +Iinside $(DIMS) $(OPTS) +v @@ -84,31 +70,20 @@ inside.png: inside.pov $(GLOBDEPS) Makefile benne.png: benne.pov $(GLOBDEPS) Makefile $(POVRAY) +Ibenne $(DIMS) $(OPTS) +v -tmp/citerne.tga: citerne.pov citerne.inc $(GLOBDEPS) - $(POVRAY) +Iciterne +Otmp/citerne +FT $(DIMS) $(OPTS) +v -citerne.jpg: tmp/citerne.tga - cjpeg $(CJPEGOPT) tmp/citerne.tga > citerne.jpg - - electric.png: electric.pov $(GLOBDEPS) Makefile $(POVRAY) +Ielectric $(DIMS) $(OPTS) +v - + +citerne.png: citerne.pov $(GLOBDEPS) Makefile + $(POVRAY) +Iciterne $(DIMS) $(OPTS) +v + truc.png: truc.pov $(GLOBDEPS) Makefile $(POVRAY) +Itruc $(DIMS) $(OPTS) +v +ridelles.png: ridelles.pov $(GLOBDEPS) Makefile + $(POVRAY) +Iridelles $(DIMS) $(OPTS) +v -tmp/ridelles.tga: ridelles.pov ridelles.inc $(GLOBDEPS) - $(POVRAY) +Iridelles +ft +Otmp/ridelles $(DIMS) $(OPTS) +v - -ridelles.jpg: tmp/ridelles.tga - cjpeg $(CJPEGOPT) tmp/ridelles.tga > ridelles.jpg - - -tmp/grue.tga: grue.pov train.inc grue.inc rails.inc \ - poteaux.inc Makefile - $(POVRAY) +Igrue +ft +otmp/ $(DIMS) $(OPTS) +v -grue.jpg: tmp/grue.tga - cjpeg $(CJPEGOPT) tmp/grue.tga > grue.jpg +grue.png: grue.pov $(GLOBDEPS) Makefile + $(POVRAY) +Igrue $(DIMS) $(OPTS) +v #-------------------------------------------------------- # les trucs en travaux diff --git a/benne.pov b/benne.pov index 5423200..749a080 100644 --- a/benne.pov +++ b/benne.pov @@ -25,7 +25,7 @@ object { Wagon_Benne translate y*2 } /*------------------------------------------------------------------*/ -#include "incs/plancher.inc" +#include "plancher.inc" object { Plancher_0 scale <.5, 1, .5> } sky_sphere { diff --git a/citerne.pov b/citerne.pov new file mode 100644 index 0000000..644898e --- /dev/null +++ b/citerne.pov @@ -0,0 +1,55 @@ +/* + +*/ + +#version 3.7; + +#include "colors.inc" +#include "metals.inc" + +global_settings { + ambient_light Gray15 + assumed_gamma 1.0 /* pour povray 3.7 */ + } + +/*------------------------------------------------------------------*/ + +#include "incs/train.inc" +#include "incs/rails.inc" +#include "incs/citerne.inc" +#include "incs/decor.inc" + +object { Un_Rail_Droit } +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 + } + +camera + { + location <36, 13, -11> + look_at <0, 5.8, 0> + angle 61 + } + +light_source { <290, 131, -190> color White } +light_source { <290, 111, -250> color White } + +/*------------------------------------------------------------------*/ diff --git a/corail.pov b/corail.pov index 4706a83..134892d 100644 --- a/corail.pov +++ b/corail.pov @@ -5,6 +5,9 @@ * */ +#version 3.7; +global_settings { assumed_gamma 1.0 } + #include "colors.inc" #include "metals.inc" #include "textures.inc" diff --git a/grue.pov b/grue.pov new file mode 100644 index 0000000..d51e647 --- /dev/null +++ b/grue.pov @@ -0,0 +1,68 @@ + +/* + * + */ + +#version 3.7; +global_settings { assumed_gamma 1.0 } + +#include "colors.inc" +#include "metals.inc" +#include "textures.inc" + +/*------------------------------------------------------------------*/ + +plane { + y, 0 + pigment + { + brick Gray50, rgb<0.10, 0.60, 0.30> + rotate z*90 + scale 3 + } + } + +sky_sphere { + pigment + { + gradient y + color_map + { + [0.2 color <0, .1, .2>] + [0.6 color <0, .3, .1>] + [0.9 color <0, .2, .3>] + } + turbulence 29 + } + rotate 40 + scale 1.5 + } + +#include "incs/train.inc" +#include "incs/rails.inc" +#include "incs/grue.inc" + +object +{ +union + { + object { Wagon_Grue translate y*2 } + object { Un_Rail_Droit } + object { Un_Rail_Droit translate z*100 } + object { Un_Rail_Droit translate z*200 } + } +} + +/*------------------------------------------------------------------*/ + +camera + { + location <42, 12, 25> + look_at <0, 6, 3> + angle 42 + } + +light_source { <350, 425, -500> color Green } +light_source { <70, 38, 40> color White } + +/*------------------------------------------------------------------*/ diff --git a/incs/monde.inc b/monde.inc similarity index 99% rename from incs/monde.inc rename to monde.inc index eef0d4e..d8d65b2 100644 --- a/incs/monde.inc +++ b/monde.inc @@ -16,7 +16,6 @@ plane { } } - sky_sphere { pigment { diff --git a/incs/plancher.inc b/plancher.inc similarity index 100% rename from incs/plancher.inc rename to plancher.inc diff --git a/ridelles.pov b/ridelles.pov new file mode 100644 index 0000000..8f77a72 --- /dev/null +++ b/ridelles.pov @@ -0,0 +1,43 @@ +#version 3.7; + +#include "colors.inc" +#include "metals.inc" +#include "textures.inc" + +global_settings { + ambient_light Gray15 + assumed_gamma 1.0 /* pour povray 3.7 */ + } + + +/*------------------------------------------------------------------*/ + +#include "monde.inc" + +#include "incs/train.inc" +#include "incs/rails.inc" + +object { Un_Rail_Droit } +object { Un_Rail_Droit translate z*-100 } +object { Un_Rail_Droit translate z* 100 } + +#include "incs/ridelles.inc" + +object { Wagon_Ridelles translate <0, 2, 0> } + + +/*------------------------------------------------------------------*/ + +camera + { + spherical + location <100, 35, -90> + right x*image_width/image_height + look_at <0, 5, 0> + angle 20 + } + +light_source { <20, 70, -200> color White } +light_source { <-20, 170, -150> color White } + +/*------------------------------------------------------------------*/ diff --git a/rotonde.pov b/rotonde.pov new file mode 100644 index 0000000..b7640ec --- /dev/null +++ b/rotonde.pov @@ -0,0 +1,42 @@ + + +#version 3.7; + +#include "colors.inc" +#include "metals.inc" +#include "textures.inc" + +global_settings { ambient_light Yellow } + +/*------------------------------------------------------------------*/ +#include "incs/poteaux.inc" +object { Poteau_1 } + +#include "incs/rotonde.inc" +object { Rotonde_0 } + +#include "incs/rails.inc" +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> + look_at <0, 0, 0> + angle 50 + } + +light_source { <142, 500, 500> color White } + +/*------------------------------------------------------------------*/ diff --git a/train.pov b/train.pov index 8c1087d..37d33a0 100644 --- a/train.pov +++ b/train.pov @@ -13,7 +13,7 @@ global_settings { ambient_light Gray10 } -#include "incs/plancher.inc" +#include "plancher.inc" object { Plancher_0 rotate y*3 } diff --git a/wagons.pov b/wagons.pov new file mode 100644 index 0000000..3cf9356 --- /dev/null +++ b/wagons.pov @@ -0,0 +1,51 @@ +/* + * tous les petits jouets ensembles + * -------------------------------- + * + * les dimensions sont en centimetres, et on regardera + * les choses a une hauteur de 40 cm. + * + * pour plus de details: oulala@chez.com + * + */ + +#version 3.7; +global_settings { assumed_gamma 1.0 } + +#include "colors.inc" +#include "metals.inc" +#include "textures.inc" + +/*------------------------------------------------------------------*/ + +#include "plancher.inc" +object { Plancher_0 scale <.5, 1, .5> } + +/*------------------------------------------------------------------*/ + +#include "incs/train.inc" +#include "incs/citerne.inc" +#include "incs/ridelles.inc" + +object { Wagon_Ridelles rotate y*-10 translate x*-14 } +object { Wagon_Citerne rotate y*50 translate x*16 } + +#include "incs/poteaux.inc" + +object { Poteau_0 } +object { Poteau_1 translate -z*9.34567 } + +/*------------------------------------------------------------------*/ + +camera + { + location <12, 20, -50> + look_at <0, 0, 0> + angle 42 + } + +light_source { <-50, 120, -330> color White } +light_source { <190, 498, -250> color White } +light_source { <160, 99, -250> color Yellow } + +/*------------------------------------------------------------------*/