# # DANS UN LIEU INCONNU # DEPS = batiment.inc elements.inc decorations.inc \ reperes.inc univers.inc values.inc meubles.inc \ vaisselle.inc paramove.inc lumieres.inc \ steles.inc monster.inc jardin.inc \ grostrucs.inc rotonde.inc eolienne.inc \ assemblage.inc bidules.inc chateau.inc \ supports.inc annexe.inc cubes.inc \ machine.inc plantes.inc \ topov.awk \ neonmap.incc volcanomap.incc \ configuration.sh \ Makefile HFDEPS = WS/montagnes.png WS/base_chateau.png POVDVD = -d -v +q9 +a +W720 +H576 +WT2 POVOPT = -d -v +q9 +a +W1920 +H1080 +WT2 POVBIG = -d -v +q9 +a +W6000 +H4500 +WT2 POVLOW = -d -v +q9 +a +W920 +H512 +WT2 PORTRAIT = -d -v +q9 +a +W1600 +H2400 +WT2 # -------------------------------------------------- all: @echo "\tWHAT?" picz: brotched.png inbrotch.png extbrotch.png atk.png \ loopbr.png rushbr.png KFOO = 55 foo.png: foo.pov $(DEPS) $(HFDEPS) essais.inc povray -i$< +K$(KFOO) $(POVOPT) KESSAI = 55 essai.png: essai.pov $(DEPS) $(HFDEPS) essais.inc povray -i$< +K$(KESSAI) $(POVDVD) essaibr.png: essai.png brotche ./brotche $< $@ bigessai.png: essai.pov $(DEPS) essais.inc povray -i$< +K$(KESSAI) $(POVBIG) -o$@ bigessaibr.png: bigessai.png brotche Makefile ./brotche $< $@ KLOOP = 198 loop.png: loop.pov $(DEPS) $(HFDEPS) essais.inc povray -i$< +K$(KLOOP) $(POVOPT) loopbr.png: loop.png brotche ./brotche $< $@ bigloop.png: loop.pov $(DEPS) essais.inc povray -i$< +K$(KESSAI) $(POVBIG) -o$@ bigloopbr.png: bigloop.png brotche Makefile ./brotche $< $@ KRUSH = 265 rush.png: rush.pov $(DEPS) $(HFDEPS) essais.inc povray -i$< +K$(KRUSH) $(POVOPT) rushbr.png: rush.png brotche Makefile ./brotche $< $@ bigrush.png: rush.pov $(DEPS) WS/montagnes.png essais.inc povray -i$< +K$(KRUSH) $(POVBIG) -o$@ bigrushbr.png: bigrush.png brotche Makefile ./brotche $< $@ KINDOOR = 1166 indoor.png: indoor.pov $(DEPS) povray -i$< -K$(KINDOOR) $(POVOPT) atk.png: indoor.png Makefile atkinson.py $< $@ inbrotch.png: indoor.png brotche ./brotche $< $@ bigpic.png: indoor.pov $(DEPS) povray -i$< -K$(KINDOOR) $(POVBIG) -o$@ bigview.png: bigpic.png brotche ./brotche $< $@ bigatk.png: bigview.png Makefile atkinson.py $< $@ KEXT = 1950 exterieur.png: exterieur.pov $(DEPS) $(HFDEPS) povray -i$< -K$(KEXT) $(POVOPT) extbrotch.png: exterieur.png brotche ./brotche $< $@ bigext.png: exterieur.pov $(DEPS) $(HFDEPS) povray -i$< -K$(KEXT) $(POVBIG) -o$@ bigextbr.png: bigext.png brotche ./brotche $< $@ KFORMES = 0 formes.png: formes.pov $(DEPS) $(HFDEPS) povray -i$< -K$(KFORMES) $(POVOPT) formesbr.png: formes.png brotche ./brotche $< $@ bigformes.png: formes.pov $(DEPS) $(HFDEPS) povray -i$< -K$(FORMES) $(POVBIG) -o$@ bigformesbr.png: bigformes.png brotche ./brotche $< $@ KCASTEL = 355 castel.png: castel.pov $(DEPS) povray -i$< -K$(KCASTEL) $(POVOPT) -o$@ bigcastel.png: castel.pov $(DEPS) povray -i$< -K$(KCASTEL) $(POVBIG) -o$@ bigcastelbr.png: bigcastel.png brotche ./brotche $< $@ KVISITE = 626 visite.png: visite.pov $(DEPS) povray -i$< -K$(KVISITE) $(POVOPT) -o$@ bigvisite.png: visite.pov $(DEPS) povray -i$< -K$(KVISITE) $(POVBIG) -o$@ bigvisitebr.png: bigvisite.png brotche ./brotche $< $@ # the CLOCK variable is set by the 'snapshoot.sh' script extsnap.png: exterieur.pov $(DEPS) povray -i$< -o$@ -K$(CLOCK) $(POVLOW) touch "WS/snapflag" # -------------------------------------------------- NEONMAP = "/usr/local/share/libimage/neon.map" VOLCANOMAP = "/usr/local/share/libimage/volcano.map" neonmap.incc: fractmap2povmap.awk Makefile ./fractmap2povmap.awk < $(NEONMAP) > $@ volcanomap.incc: fractmap2povmap.awk Makefile ./fractmap2povmap.awk < $(VOLCANOMAP) > $@ # -------------------------------------------------- # gestion du son et lumières # new: Sat Dec 16 21:22:30 UTC 2023 wavmetric: wavmetric.f90 Makefile gfortran -Wall -g $< -o $@ freq.inc: wavmetric Makefile wav2text Sounds/untitled.wav | ./wavmetric | awk '{ printf "%d, %d, %d\n", $1, $2, $3 }' > $@ # -------------------------------------------------- # post processing brotche: brotche.cpp Makefile g++ -Wall -g $< -lpng -lpthread -lX11 -lm \ -o $@ brotched.png: essai.png brotche ./brotche $< $@ echo ' brotched done' >> toto # -------------------------------------------------- gifs: indoor.gif rush.gif snapshot.gif loop.gif visite.gif \ formes.gif castel.gif ls -rtlh *.gif speed.gif: Makefile $(DEPS) mkrush.sh essai.pov convert frames/rush/??[012345][6].png \ -resize "480x340!" \ -delay 10 \ -normalize \ -colors 48 -dither FloydSteinberg \ $@ animate $@ & snapshot.gif: Makefile snapshoot.sh values.inc convert -delay 10 -resize '640x360!' \ `ls -rt1 frames/snapshot/*.png | tail -48` \ -normalize \ -dither none \ -colors 128 \ $@ animate $@ & rush.gif: $(DEPS) rush.pov convert -delay 10 \ -resize "480x340!" \ `ls -rt1 frames/rush/*.png | tail -60` \ -normalize \ -dither FloydSteinberg -colors 128 \ $@ animate $@ & castel.gif: $(DEPS) rush.pov convert -delay 10 \ -resize "480x340!" \ `ls -rt1 frames/castel/*.png | tail -60` \ -normalize \ -dither FloydSteinberg -colors 128 \ $@ animate $@ & indoor.gif: $(DEPS) convert \ `ls -rt1 frames/indoor/????.png | tail -80` \ -delay 120 \ -resize "480x340!" \ -normalize \ -colorspace gray \ -dither none \ -colors 48 \ $@ ls -lh $@ animate $@ & loop.gif: $(DEPS) convert \ `ls -rt1 frames/loop/???[02468].png | tail -90` \ -delay 60 \ -resize "480x340!" \ -colors 48 \ -dither FloydSteinberg \ $@ ls -lh $@ animate $@ & visite.gif: $(DEPS) convert \ `ls -rt1 frames/visite/????.png | tail -60` \ -delay 120 \ -resize "480x340!" \ -colors 127 \ -dither FloydSteinberg \ $@ ls -lh $@ animate $@ & formes.gif: $(DEPS) convert \ `ls -rt1 frames/formes/????.png | tail -60` \ -delay 120 \ -resize "480x340!" \ -colors 127 \ -dither FloydSteinberg \ $@ ls -lh $@ animate $@ & # --------------------------------------------------