Compare commits
4 Commits
0eecce13be
...
ff8ccfea55
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ff8ccfea55 | ||
![]() |
cda8b7d2cd | ||
![]() |
f5007558ed | ||
![]() |
c4c2d4a307 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,6 +3,8 @@ frames/*
|
|||||||
datas/*.xcf
|
datas/*.xcf
|
||||||
|
|
||||||
WS/timing
|
WS/timing
|
||||||
|
WS/*.timing
|
||||||
|
|
||||||
*.png
|
*.png
|
||||||
*.gif
|
*.gif
|
||||||
|
*.mp4
|
||||||
|
32
contexte.inc
32
contexte.inc
@ -2,18 +2,16 @@
|
|||||||
* 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 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -22,21 +20,35 @@ 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 20
|
falloff 10
|
||||||
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 20
|
falloff 10
|
||||||
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=30 \
|
fps=24 \
|
||||||
-ovc lavc \
|
-ovc lavc \
|
||||||
-lavcopts vcodec=mpeg4 \
|
-lavcopts vcodec=mpeg4 \
|
||||||
-o output.avi
|
-o output.avi
|
||||||
|
45
plot-timing.sh
Executable file
45
plot-timing.sh
Executable file
@ -0,0 +1,45 @@
|
|||||||
|
#!/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