Compare commits
No commits in common. "ff8ccfea55053f9b2c0d91dcd8858b41da582fb0" and "0eecce13befd9ae923682259ed8545b4956ad60d" have entirely different histories.
ff8ccfea55
...
0eecce13be
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,8 +3,6 @@ frames/*
|
|||||||
datas/*.xcf
|
datas/*.xcf
|
||||||
|
|
||||||
WS/timing
|
WS/timing
|
||||||
WS/*.timing
|
|
||||||
|
|
||||||
*.png
|
*.png
|
||||||
*.gif
|
*.gif
|
||||||
*.mp4
|
|
||||||
|
32
contexte.inc
32
contexte.inc
@ -2,16 +2,18 @@
|
|||||||
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024
|
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// plane { y, 0 pigment { color DarkGreen } }
|
||||||
|
|
||||||
height_field {
|
height_field {
|
||||||
png "datas/hf.png"
|
png "datas/hf.png"
|
||||||
smooth
|
smooth
|
||||||
|
texture {
|
||||||
|
pigment { DarkGreen }
|
||||||
|
normal { bumps 1 scale 4.2 }
|
||||||
|
finish { phong 0.333 }
|
||||||
|
}
|
||||||
translate <-.5, 0, -.5>
|
translate <-.5, 0, -.5>
|
||||||
scale <18, 0.85, 18>
|
scale <18, 0.85, 18>
|
||||||
texture {
|
|
||||||
pigment { color DarkGreen }
|
|
||||||
normal { bumps 0.035 scale 0.186 }
|
|
||||||
finish { phong 0.111 }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -20,35 +22,21 @@ cylinder { 0, <1, 0, 0>, 0.005 pigment { color Red } }
|
|||||||
cylinder { 0, <0, 0, 1>, 0.005 pigment { color Blue } }
|
cylinder { 0, <0, 0, 1>, 0.005 pigment { color Blue } }
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if (1)
|
|
||||||
light_source {
|
light_source {
|
||||||
<3, 3.50, 2> color Gray90
|
<3, 3.50, 2> color Gray90
|
||||||
spotlight
|
spotlight
|
||||||
radius 12
|
radius 12
|
||||||
falloff 10
|
falloff 20
|
||||||
tightness 10
|
tightness 10
|
||||||
point_at <0, 0.95, 0.22222222>
|
point_at <0, 0.95, 0.22222222>
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
|
|
||||||
#if (1)
|
|
||||||
light_source {
|
|
||||||
<4, 0.30, -2> color Gray90
|
|
||||||
spotlight
|
|
||||||
radius 12
|
|
||||||
falloff 20
|
|
||||||
tightness 10
|
|
||||||
point_at <0, 0.80, 0.22222>
|
|
||||||
}
|
|
||||||
#end
|
|
||||||
|
|
||||||
#if (1)
|
|
||||||
light_source {
|
light_source {
|
||||||
<-5, 5.50, 8> color White
|
<-5, 5.50, 8> color White
|
||||||
spotlight
|
spotlight
|
||||||
radius 8
|
radius 8
|
||||||
falloff 10
|
falloff 20
|
||||||
tightness 5
|
tightness 5
|
||||||
point_at <0, 0.95, -0.22>
|
point_at <0, 0.95, -0.22>
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
|
@ -17,7 +17,7 @@ mp_encodage()
|
|||||||
{
|
{
|
||||||
mencoder 'mf://frames/*.png' \
|
mencoder 'mf://frames/*.png' \
|
||||||
-mf \
|
-mf \
|
||||||
fps=24 \
|
fps=30 \
|
||||||
-ovc lavc \
|
-ovc lavc \
|
||||||
-lavcopts vcodec=mpeg4 \
|
-lavcopts vcodec=mpeg4 \
|
||||||
-o output.avi
|
-o output.avi
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -ue
|
|
||||||
|
|
||||||
TMPFILE="/dev/shm/plot-timing.tmp"
|
|
||||||
IMAGE="timing.png"
|
|
||||||
|
|
||||||
tail -3600 WS/timing.mp4 | awk ' \
|
|
||||||
BEGIN { \
|
|
||||||
for (foo=0; foo<180; foo++) { \
|
|
||||||
mini[foo] = 666; \
|
|
||||||
maxi[foo] = -42; \
|
|
||||||
} \
|
|
||||||
maxidx = 0; \
|
|
||||||
} \
|
|
||||||
{ \
|
|
||||||
accu[$1] += $2; \
|
|
||||||
count[$1]++; \
|
|
||||||
if (mini[$1] > $2) mini[$1] = $2; \
|
|
||||||
if (maxi[$1] < $2) maxi[$1] = $2; \
|
|
||||||
last[$1] = $2; \
|
|
||||||
maxidx = $1; \
|
|
||||||
} \
|
|
||||||
END { \
|
|
||||||
for (foo=0; foo<180; foo++) { \
|
|
||||||
mean = accu[foo] / count[foo]; \
|
|
||||||
printf "%4d %4f %4d %4d %4d\n", foo, mean, \
|
|
||||||
mini[foo], maxi[foo], last[foo]; \
|
|
||||||
} \
|
|
||||||
} \
|
|
||||||
' > $TMPFILE
|
|
||||||
|
|
||||||
gnuplot << __EOC__
|
|
||||||
set term png size 800,480
|
|
||||||
set output "timing.png"
|
|
||||||
set grid
|
|
||||||
set yrange [:200]
|
|
||||||
set title "HexaCone : temps de tracé vs. numéro de séquence"
|
|
||||||
set xlabel "numéro de la trame"
|
|
||||||
set ylabel "temps en secondes"
|
|
||||||
plot "/dev/shm/plot-timing.tmp" u 1:2 w l t "moyenne", \
|
|
||||||
"/dev/shm/plot-timing.tmp" u 1:3 w l t "minimum", \
|
|
||||||
"/dev/shm/plot-timing.tmp" u 1:4 w l t "maximum", \
|
|
||||||
"/dev/shm/plot-timing.tmp" u 1:5 w l t "dernier"
|
|
||||||
__EOC__
|
|
Loading…
Reference in New Issue
Block a user