Compare commits

..

No commits in common. "955af75151830a02acd8a8f63ba17dae2d7984fa" and "3117141b5279aecfd9b72accdedfb2ea80bc1729" have entirely different histories.

6 changed files with 17 additions and 87 deletions

View File

@ -9,8 +9,8 @@
#declare GroudBase_coin = object #declare GroudBase_coin = object
{ {
merge { merge {
cylinder { 0, y*0.4, 0.09 } cylinder { 0, y*0.7, 0.09 }
sphere { 0, 0.09 scale <1, 0.23, 1> translate y*0.4 } sphere { 0, 0.09 scale <1, 0.3, 1> translate y*0.7 }
} }
} }
@ -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 rotate 9 scale 0.32 } texture { T_Stone6 scale 0.6 }
#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 38 - 5*Cos_01(NormClock) angle 42 - 4*Cos_01(NormClock)
} }

View File

@ -11,66 +11,6 @@
#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
@ -115,12 +55,12 @@ union {
#declare Les_Machins = object #declare Les_Machins = object
{ {
union { union {
#local Rk = 3.95 + NormClock; #local Rk = 2.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 { Un_Machin () translate <Xpos, 0, Zpos> } object { GyroPhare () translate <Xpos, 0, Zpos> }
#end #end
#undef RND #undef RND
#undef Rk #undef Rk
@ -129,15 +69,12 @@ 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 translate y*1.5 } object { Les_Machins }
object { Le_Decor } object { Le_Decor }
object { Repere translate y*2 } object { Repere }
// ======================================================= // =======================================================
@ -148,8 +85,8 @@ object { Repere translate y*2 }
#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,9 +22,8 @@ global_settings {
* Some constants... * Some constants...
*/ */
#declare SzSol = 36; #declare SzSol = 34;
#declare SzBase = 2.5; #declare SzBase = 1.9;
#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=720 Img_Height=768
TEXTCOL="orange" TEXTCOL="orange"
STROKOL="darkblue" STROKOL="darkblue"

View File

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