Compare commits
6 Commits
f28b260f8d
...
898828b49d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
898828b49d | ||
![]() |
11717a4f6a | ||
![]() |
879dab3239 | ||
![]() |
cf0bcb9cab | ||
![]() |
32606a5a18 | ||
![]() |
abaa6437fd |
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
|
||||
DIMS = -W1600 -H1200
|
||||
# POVOPT = +q9 +a0.02 -d
|
||||
POVOPT = +q9 +A -d
|
||||
POVOPT = +q9 +A Declare=NbFrames=400 -d
|
||||
POVDEP = contexte.inc hexacone.inc hexabenz.inc \
|
||||
globals.inc hexawood.inc datas/hf.png \
|
||||
dynamic.inc trident.inc groundbase.inc \
|
||||
|
@ -36,7 +36,7 @@ sphere { Position, 0.020 translate y*TY + POS_Cutoff
|
||||
texture { T_WIP_alert } }
|
||||
|
||||
/* this one is for debugging */
|
||||
object { OpenBox translate y*TY + POS_Cutoff }
|
||||
// object { OpenBox translate y*TY + POS_Cutoff }
|
||||
// object { Repere translate y*2.8 + POS_Cutoff }
|
||||
|
||||
// =======================================================
|
||||
|
@ -21,8 +21,8 @@
|
||||
// dessiner une grille
|
||||
|
||||
#for (Foo, -150, 150, 10)
|
||||
cylinder { <-150, 0, Foo>, <150, 0, Foo>, 0.12 }
|
||||
cylinder { <Foo, 0, -150>, <Foo, 0, 150>, 0.12 }
|
||||
cylinder { <-150, 0, Foo>, <150, 0, Foo>, 0.10 }
|
||||
cylinder { <Foo, 0, -150>, <Foo, 0, 150>, 0.10 }
|
||||
#end
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
@ -320,7 +320,7 @@ sky_sphere {
|
||||
[ 0.9 color rgb <.9, .6, .5> ]
|
||||
[ 1.0 color Gray20 ]
|
||||
}
|
||||
turbulence 3.14159 + 0.74 * Cos_010(NormClock)
|
||||
turbulence 3.14159 + 0.84 * Cos_010(NormClock)
|
||||
scale 1.600
|
||||
// translate -1
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ difference {
|
||||
// object { Repere scale 2 translate y*2.6 + POS_Cutoff }
|
||||
|
||||
/* this one is for debugging */
|
||||
object { OpenBox translate y*TY + POS_Cutoff }
|
||||
// object { OpenBox translate y*TY + POS_Cutoff }
|
||||
|
||||
// =======================================================
|
||||
light_source {
|
||||
@ -45,9 +45,9 @@ object { Le_Decor }
|
||||
|
||||
// =======================================================
|
||||
|
||||
#local CamX = -25.4 + (2.19*Cos_01(NormClock));
|
||||
#local CamX = -25.4 + (2.39*Cos_01(NormClock));
|
||||
#local CamY = 1.6 - (0.24*sqrt(NormClock));
|
||||
#local CamZ = -0.85 + (2.02*NormClock);
|
||||
#local CamZ = -1.85 + (4.02*NormClock);
|
||||
|
||||
camera {
|
||||
location <CamX, CamY, CamZ>
|
||||
|
@ -25,10 +25,10 @@ object { BiBenz rotate -y*(clock*0.19) translate Pos_RedB_0 }
|
||||
#local K = 1.27;
|
||||
union {
|
||||
object { HexaCone () rotate y*90 translate <-K, 1.7, 0> }
|
||||
object { HexaCone () translate < K, 1.9, 0> }
|
||||
object { HexaCone () rotate <4, 1, 6> translate < K, 1.9, 0> }
|
||||
}
|
||||
}
|
||||
object { BiCone rotate -y*(Cos_010(NormClock)*777) translate Pos_RedB_1 }
|
||||
object { BiCone rotate -y*(Cos_010(NormClock)*666) translate Pos_RedB_1 }
|
||||
|
||||
/*
|
||||
* on fait passer un hexatruc dans le ciel
|
||||
@ -90,7 +90,7 @@ object { HexaWood rotate z*R translate P_hexawood }
|
||||
* survol par un trident
|
||||
*/
|
||||
#declare A = < 2, 49, -20>;
|
||||
#declare B = <-3, 47, 22>;
|
||||
#declare B = <-3, 37, 22>;
|
||||
#declare P = Interpolate(A, B, NormClock);
|
||||
object { Trident_A () rotate y*(clock*2.7)
|
||||
rotate z*80
|
||||
|
@ -54,8 +54,8 @@ object { Le_Decor }
|
||||
|
||||
// object { Repere scale 5 translate y }
|
||||
|
||||
#local CamX = -8.7 + ( 6.6 * Cos_01(NormClock));
|
||||
#local CamY = 0.95 + (22.64 * Cos_01(NormClock));
|
||||
#local CamX = -8.7 + ( 6.9 * Cos_01(NormClock));
|
||||
#local CamY = 0.95 + (24.64 * Cos_01(NormClock));
|
||||
#local CamZ = 16.86 + (12.9 * Cos_01(NormClock));
|
||||
|
||||
camera {
|
||||
|
@ -57,7 +57,7 @@ union {
|
||||
|
||||
object { Gyros }
|
||||
|
||||
#declare Selector = mod(int(clock/14), 6);
|
||||
#declare Selector = mod(int(clock/17), 6);
|
||||
#debug concat("Selector = ", str(Selector, 6, 0), "\n")
|
||||
|
||||
#switch (Selector)
|
||||
@ -74,12 +74,12 @@ object { Gyros }
|
||||
#debug " HexaWood !!!\n"
|
||||
#break
|
||||
#case (3)
|
||||
object { Chose }
|
||||
object { Chose rotate y*clock }
|
||||
#debug " Chose\n"
|
||||
#break
|
||||
#case (4)
|
||||
object { Tridents scale 1.7 translate -y*0.1 }
|
||||
#debug " Tridents !!!\n"
|
||||
object { Chose rotate -y*clock }
|
||||
#debug " Chose\n"
|
||||
#break
|
||||
#case (5)
|
||||
object { Horloge }
|
||||
|
20
gadgets.inc
20
gadgets.inc
@ -5,17 +5,25 @@
|
||||
|
||||
/* ======================================================= */
|
||||
/* new 30 aout 2025
|
||||
*
|
||||
* une idée à creuser davantage...
|
||||
*/
|
||||
|
||||
#declare Chose = object
|
||||
{
|
||||
merge {
|
||||
cylinder { 2*z, 0.5, 1.32 }
|
||||
cylinder { 1*x, 4.5*y, 0.20+(0.5*Cos_010(NormClock)) }
|
||||
cone { 1.2*z, 0.91, 0.5, 1.22 }
|
||||
#local C2X = 8 * sin(NormClock) * sin(NormClock*3);
|
||||
#local C2Z = 5 * (sin(-NormClock) * cos(NormClock*5));
|
||||
cylinder { 1*x, <C2X, 4.5, C2Z>, 0.20+(0.2*Cos_010(NormClock)) }
|
||||
#local P2 = (clock/51)+1;
|
||||
cylinder { 0, P2, 0.04 }
|
||||
sphere { P2, 0.09 }
|
||||
}
|
||||
texture { tPlasticOrange }
|
||||
scale <0.8, 0.6, 0.9>
|
||||
translate y*1.6666
|
||||
scale <0.6, 0.5, 0.7>
|
||||
rotate -y*clock
|
||||
translate y*1.6666666
|
||||
}
|
||||
|
||||
/* ======================================================= */
|
||||
@ -27,11 +35,11 @@ translate y*1.6666
|
||||
text {
|
||||
// ttf "datas/DSEG7Classic-Regular.ttf" Texte 0.1, 0
|
||||
ttf "datas/ComicMono-Bold.ttf" Texte 0.1, 0
|
||||
texture { T_WIP_alert }
|
||||
texture { tPlasticGreen }
|
||||
}
|
||||
scale 3.00
|
||||
rotate 90*x
|
||||
translate <-4.5, 0.04, 0>
|
||||
translate <-4.5, 0.044, 0>
|
||||
}
|
||||
|
||||
// =======================================================
|
||||
|
13
globals.inc
13
globals.inc
@ -16,7 +16,7 @@ global_settings {
|
||||
#declare Rng2 = seed(now*24*60*60);
|
||||
#declare bar = rand(Rng2);
|
||||
|
||||
#declare NormClock = clock / 360.0;
|
||||
#declare NormClock = clock / NbFrames;
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/*
|
||||
@ -55,7 +55,7 @@ finish { phong 0.23 }
|
||||
#declare T_WIP_alert = texture
|
||||
{
|
||||
pigment { color Red }
|
||||
finish { ambient 1 specular 0.90 }
|
||||
finish { ambient 1 specular 0.80 }
|
||||
}
|
||||
|
||||
#declare T_Planete_A = texture
|
||||
@ -97,6 +97,15 @@ finish { roughness 1.00 }
|
||||
}
|
||||
}
|
||||
|
||||
#declare tPlasticGreen = texture
|
||||
{
|
||||
pigment{rgb <0.50, 2.000, 0.0>}
|
||||
finish {
|
||||
ambient 0.1
|
||||
diffuse 0.6
|
||||
specular 0.3
|
||||
}
|
||||
}
|
||||
|
||||
#declare Flashy = texture {
|
||||
pigment {
|
||||
|
@ -24,7 +24,7 @@ object { Le_Decor }
|
||||
|
||||
// object { Repere scale 2 }
|
||||
|
||||
#declare Loc_cam = <2, 2.5, 1> + (Pos_RedB_1 * 1.363);
|
||||
#declare Loc_cam = <2, 2.5, 1> + (Pos_RedB_1 * 1.383);
|
||||
|
||||
camera {
|
||||
location Loc_cam
|
||||
|
@ -23,7 +23,7 @@ object { Le_Decor }
|
||||
// object { Repere translate <10, 1, 10> }
|
||||
|
||||
camera {
|
||||
location <39, 2, 14>
|
||||
location <39, 2+NormClock, 14>
|
||||
look_at <-20, 1.7, 25.6>
|
||||
angle 26 + 2*NormClock
|
||||
}
|
||||
|
@ -23,8 +23,8 @@ object { Le_Decor }
|
||||
|
||||
// =======================================================
|
||||
|
||||
#declare Debut = <-3, 87, 131> ;
|
||||
#declare Fin = < 2, 91, 31> ;
|
||||
#declare Debut = <-3, 87, 151> ;
|
||||
#declare Fin = < 2, 91, 41> ;
|
||||
#declare Pos = Cos_01(NormClock);
|
||||
#declare PosCam = Interpolate(Debut, Fin, Pos);
|
||||
|
||||
@ -33,6 +33,6 @@ object { Le_Decor }
|
||||
camera {
|
||||
location PosCam
|
||||
look_at LatCam
|
||||
angle 58
|
||||
angle 56
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
Img_Width=1024
|
||||
Img_Height=720
|
||||
|
||||
TEXTCOL="Orange"
|
||||
TEXTCOL="White"
|
||||
STROKOL="OliveDrab"
|
||||
|
||||
NBFRAMES=360
|
||||
NBFRAMES=400
|
||||
|
@ -41,8 +41,8 @@ local NBRE=42
|
||||
convert "WS/negatif.png" \
|
||||
-gravity north \
|
||||
-font $FONTE \
|
||||
-pointsize 106 \
|
||||
-kerning 9 \
|
||||
-pointsize 100 \
|
||||
-kerning 8 \
|
||||
-fill $TEXTCOL \
|
||||
-strokewidth 2 -stroke $STROKOL \
|
||||
-annotate +0+530 "$1" \
|
||||
@ -74,8 +74,8 @@ faire_le_titre ()
|
||||
{
|
||||
echo "faire le titre"
|
||||
|
||||
local NBRE=320
|
||||
local SRC="frames/passage/00099.png"
|
||||
local NBRE=300
|
||||
local SRC="frames/hexawood/00199.png"
|
||||
local GRAY="/dev/shm/tmp-titre.png"
|
||||
|
||||
convert -colorspace gray -colors 27 $SRC $GRAY
|
||||
|
@ -16,7 +16,9 @@ fi
|
||||
echo "$0 $SEQNAME from $START" >> WS/log
|
||||
|
||||
DIMS="-W$Img_Width -H$Img_Height"
|
||||
POVOPT="+q9 +A0.02 -d ${DIMS} -WT7"
|
||||
NBFR=" Declare=NbFrames=$NBFRAMES "
|
||||
echo $NBFR
|
||||
POVOPT="+q9 +A0.02 -d ${DIMS} ${NBFR} -WT7"
|
||||
echo $POVOPT ; echo ; sleep 2
|
||||
|
||||
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
|
||||
|
@ -56,7 +56,7 @@ gnuplot << __EOC__
|
||||
set term png size $Img_Width,$Img_Height
|
||||
set output "timing.png"
|
||||
set grid
|
||||
set xrange [:360]
|
||||
set xrange [:400]
|
||||
set yrange [0:]
|
||||
set title "Séquence '${sequence}'"
|
||||
set xlabel "numéro de la trame"
|
||||
|
Loading…
Reference in New Issue
Block a user