From 6d5c8d6c5f082961e89957c5d5073c3eecb55f7e Mon Sep 17 00:00:00 2001 From: tTh Date: Wed, 17 Jun 2026 06:28:47 +0200 Subject: [PATCH] pass number of frame by povray command line --- BloubWorld/runme.sh | 6 ++---- BloubWorld/scene.pov | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/BloubWorld/runme.sh b/BloubWorld/runme.sh index eee4821..ede3906 100755 --- a/BloubWorld/runme.sh +++ b/BloubWorld/runme.sh @@ -7,7 +7,8 @@ INCFILE="WS/bloubs.inc" TMPPNG="/dev/shm/bloubs7.png" -POVOPT="+Q9 +a -v -d -W1920 -H1080 -WT4" +NBIMG=2000 +POVOPT="+Q9 +a -v -d Declare=NbFrames=$NBIMG -W1920 -H1080 -WT4" DDIR="frames/a" LOGERR="log.error" TXTCOLOR="#db4090" @@ -19,7 +20,6 @@ BARYDATAS="WS/log.barycentres" BLBS_IN="/dev/shm/in.blbs" BLBS_OUT="/dev/shm/out.blbs" -NBIMG=2000 make all err=$? @@ -28,8 +28,6 @@ if [ $err -ne 0 ] ; then exit 1 fi -printf "\n#declare NbImg = %d;\n" $NBIMG > WS/nbimg.inc - # # first, we have to make a seminal buch of bloubs # --> this function need to be parametrizable diff --git a/BloubWorld/scene.pov b/BloubWorld/scene.pov index 354282f..ee234ce 100644 --- a/BloubWorld/scene.pov +++ b/BloubWorld/scene.pov @@ -11,9 +11,7 @@ global_settings { #include "colors.inc" -#include "WS/nbimg.inc" - -#declare NormClock = clock / NbImg; +#declare NormClock = clock / NbFrames; // ----------------------------------------------------------