Compare commits

..

6 Commits

Author SHA1 Message Date
Tonton Th
955af75151 tune the cam, bro 2025-02-09 19:06:00 +01:00
Tonton Th
e3b13c0631 tuning the groundbase 2025-02-09 19:05:10 +01:00
Tonton Th
72d99f9400 add a "start from here" option 2025-02-09 19:03:26 +01:00
Tonton Th
f737579090 etude pour une cabane 2025-02-09 19:02:32 +01:00
Tonton Th
46bb5ee3da cosmetic: change display of frame number 2025-02-07 23:16:17 +01:00
Tonton Th
8b5dbb7a99 reduction of image height for better aspect ratio 2025-02-07 23:14:59 +01:00
6 changed files with 87 additions and 17 deletions

View File

@ -9,8 +9,8 @@
#declare GroudBase_coin = object #declare GroudBase_coin = object
{ {
merge { merge {
cylinder { 0, y*0.7, 0.09 } cylinder { 0, y*0.4, 0.09 }
sphere { 0, 0.09 scale <1, 0.3, 1> translate y*0.7 } sphere { 0, 0.09 scale <1, 0.23, 1> translate y*0.4 }
} }
} }
@ -24,7 +24,7 @@ union {
object { GroudBase_coin translate <-Sz, 0, Sz> } object { GroudBase_coin translate <-Sz, 0, Sz> }
object { GroudBase_coin translate < Sz, 0, Sz> } object { GroudBase_coin translate < Sz, 0, Sz> }
} }
texture { T_Stone6 scale 0.6 } texture { T_Stone6 rotate 9 scale 0.32 }
#undef Sz #undef Sz
} }

View File

@ -38,5 +38,5 @@ object { Le_Decor }
camera { camera {
location <CamX, CamY, 5.50> location <CamX, CamY, 5.50>
look_at <0, 1.6, 0> look_at <0, 1.6, 0>
angle 42 - 4*Cos_01(NormClock) angle 38 - 5*Cos_01(NormClock)
} }

View File

@ -11,6 +11,66 @@
#include "elements.inc" #include "elements.inc"
#include "hexabenz.inc" #include "hexabenz.inc"
// =======================================================
/*
* nouveau debut fevrier 2025 - we love raytracing
*/
/*
* deux textures
*/
#declare T_Beton_1 = texture
{
pigment { color <0.9, 0.8, 0.8> }
normal { dents 0.75 scale 0.3 }
}
#declare T_Beton_2 = texture
{
pigment { color <0.9, 0.8, 0.8> }
normal { dents 0.25 scale 2 }
}
/*
* une seule forme de cabane pour le moment
*/
#declare Base_cabane_forme = object
{
difference {
box { <-0.90, 0, 0>, <0.90, 1.00, 0.80> }
box { <-0.89, -1, -1> <0.89, 0.99, 0.79> }
cylinder { <-1, 0.75, -0.23>, <1, 0.75, 0.23>, 0.09 }
}
}
/*
* comparaison des deux textures par le rendu
* de la meme forme de cabane.
*/
#declare Cabane_Base_1 = object
{
object { Base_cabane_forme }
texture { T_Beton_1 }
}
#declare Cabane_Base_2 = object
{
object { Base_cabane_forme }
texture { T_Beton_2 }
}
/*
* assemblage des deux versions face a face
*/
#declare Les_Cabanes = object
{
union {
#local E = 1.10;
object { Cabane_Base_1 rotate 270*y translate -x*E }
object { Cabane_Base_2 rotate 90*y translate x*E }
#undef E
}
}
// ======================================================= // =======================================================
#declare QuadriPole = object #declare QuadriPole = object
@ -55,12 +115,12 @@ union {
#declare Les_Machins = object #declare Les_Machins = object
{ {
union { union {
#local Rk = 2.95 + NormClock; #local Rk = 3.95 + NormClock;
#for (foo, 0, 359, 45) #for (foo, 0, 359, 45)
#local Xpos = Rk * sin(radians(foo)); #local Xpos = Rk * sin(radians(foo));
#local Zpos = Rk * cos(radians(foo)); #local Zpos = Rk * cos(radians(foo));
#local RND = rand(Rng1); #local RND = rand(Rng1);
object { GyroPhare () translate <Xpos, 0, Zpos> } object { Un_Machin () translate <Xpos, 0, Zpos> }
#end #end
#undef RND #undef RND
#undef Rk #undef Rk
@ -69,12 +129,15 @@ union {
// ======================================================= // =======================================================
object { GroundBase } object { GroundBase }
object { Les_Cabanes rotate -y*(clock*0.75) translate y*H_base }
// object { OpenBox translate y*1.2 } // object { OpenBox translate y*1.2 }
object { Les_Machins } object { Les_Machins translate y*1.5 }
object { Le_Decor } object { Le_Decor }
object { Repere } object { Repere translate y*2 }
// ======================================================= // =======================================================
@ -85,8 +148,8 @@ object { Repere }
#local CamY = 1.81 + (4*sqrt(NormClock)); #local CamY = 1.81 + (4*sqrt(NormClock));
#local CamZ = 1.7 + (3.8*Cos_01(NormClock)); #local CamZ = 1.7 + (3.8*Cos_01(NormClock));
camera { camera {
fisheye // fisheye
location <CamX, CamY, 9.99> location <CamX, CamY, 9.99>
look_at <0, 0.5, 0> look_at <0, 0.5, 0>
// angle 32 - 4*Cos_01(NormClock) angle 32 + 4*Cos_01(NormClock)
} }

View File

@ -22,8 +22,9 @@ global_settings {
* Some constants... * Some constants...
*/ */
#declare SzSol = 34; #declare SzSol = 36;
#declare SzBase = 1.9; #declare SzBase = 2.5;
#declare H_base = 0.10;
#declare R_basecone = 0.117; #declare R_basecone = 0.117;
#declare H_cone = 0.97; #declare H_cone = 0.97;

View File

@ -1,7 +1,7 @@
Img_Width=1024 Img_Width=1024
Img_Height=768 Img_Height=720
TEXTCOL="orange" TEXTCOL="orange"
STROKOL="darkblue" STROKOL="darkblue"

View File

@ -6,8 +6,14 @@ source tools/config.sh
source tools/fonctions.sh source tools/fonctions.sh
SEQNAME="$1" SEQNAME="$1"
START=0
echo "Running $0 $SEQNAME" >> WS/log if [ $# == 2 ]
then
START=$2
fi
echo "$0 $SEQNAME from $START" >> WS/log
DIMS="-W$Img_Width -H$Img_Height" DIMS="-W$Img_Width -H$Img_Height"
POVOPT="+q9 +A0.02 -d ${DIMS} -WT5" POVOPT="+q9 +A0.02 -d ${DIMS} -WT5"
@ -15,7 +21,7 @@ echo $POVOPT ; echo ; sleep 2
TMPIMG=/dev/shm/${SEQNAME}-tmp.png TMPIMG=/dev/shm/${SEQNAME}-tmp.png
for frame in $(seq 0 $((NBFRAMES-1))) for frame in $(seq $START $((NBFRAMES-1)))
do do
img=$(printf "frames/%s/%05d.png" $SEQNAME $frame) img=$(printf "frames/%s/%05d.png" $SEQNAME $frame)
@ -34,9 +40,9 @@ do
# echo $frame $img $txt # echo $frame $img $txt
convert ${TMPIMG} \ convert ${TMPIMG} \
-font Courier-Bold \ -font Courier-Bold \
-pointsize 16 \ -pointsize 14 \
-fill ${TEXTCOL} \ -fill ${TEXTCOL} \
-gravity south-west \ -gravity north \
-annotate +12+5 "$txt" \ -annotate +12+5 "$txt" \
${img} ${img}
fin=$(date +%s) fin=$(date +%s)