Compare commits

...

13 Commits

Author SHA1 Message Date
Tonton Th
949d5b328d preparing the next release, stay tuned 2025-01-27 03:34:51 +01:00
Tonton Th
1944fdd337 add a new sequence : cutoff 2025-01-27 03:33:53 +01:00
Tonton Th
b344d0b762 a lot a better things 2025-01-26 19:32:18 +01:00
Tonton Th
9962480356 remove useless message 2025-01-25 07:05:30 +01:00
Tonton Th
8e02e9e466 very fine tuning 2025-01-23 21:49:59 +01:00
Tonton Th
45ac640ba6 affiner le contexte... 2025-01-22 19:46:55 +01:00
Tonton Th
27891b70dc cosmetic 2025-01-22 19:30:23 +01:00
Tonton Th
05f40fae75 add intertitres 2025-01-22 19:29:20 +01:00
Tonton Th
070679ec5b add a new sequence 2025-01-19 21:45:56 +01:00
Tonton Th
1eac9d4cfc increase video size 2025-01-16 15:07:06 +01:00
Tonton Th
cf899967ce moving the gyrophare to the right file 2025-01-16 13:01:46 +01:00
Tonton Th
af4f9fc282 oups... 2025-01-16 01:11:56 +01:00
Tonton Th
b9299568f4 using anti-aliasing 2025-01-16 01:04:49 +01:00
19 changed files with 383 additions and 167 deletions

View File

@@ -1,6 +1,7 @@
DIMS = -W1600 -H1200
POVOPT = +q9 +a0.02 -d
# POVOPT = +q9 +a0.02 -d
POVOPT = +q9 +A -d
POVDEP = contexte.inc elements.inc hexabenz.inc \
globals.inc datas/hf.png
@@ -9,12 +10,15 @@ CK=180
PNG: essai.png scene.png topview.png passage.png \
orbite.png hexabenz.png escadrille.png \
hexacone.png
hexacone.png remote.png
topview.png: topview.pov Makefile $(POVDEP)
povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@
cutoff.png: cutoff.pov Makefile $(POVDEP)
povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@
essai.png: essai.pov Makefile $(POVDEP)
povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@
@@ -36,4 +40,6 @@ scene.png: scene.pov Makefile $(POVDEP)
escadrille.png: escadrille.pov Makefile $(POVDEP)
povray $(POVOPT) $(DIMS) +K$(CK) -i$< -o$@
remote.png: remote.pov Makefile $(POVDEP)
povray $(POVOPT) $(DIMS) +K$(CK) -i$< -o$@

View File

@@ -6,6 +6,66 @@
/* ------------------------------------------------------------ */
#macro GyroPhare_mat ()
cylinder {
0, y*H_gyro, R_gyro
#if (rand(Rng1) < 0.5)
texture { T_Stone25 scale 1+rand(Rng1) }
#else
texture { T_Stone6 }
#end
}
#end // macro
#macro GyroPhare_lampe ()
union {
difference {
cylinder { 0, y*0.20, R_gyro }
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
#local WB = 0.015;
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
#undef WB
pigment { color Gray90 }
#local Ro = 0.5-rand(Rng1);
#if (abs(Ro) < 0.01)
#local Ro = Ro * 10;
#end
rotate y*(0.5-rand(Rng1)) * clock
}
light_source { y*0.10
rgb <0.8, 0.9, 0.999999999>
fade_distance 3.96
fade_power 1.55
}
}
#end // macro
#macro GyroPhare ()
union {
object { GyroPhare_mat () }
object { GyroPhare_lampe ()
// rotate y*rand(Rng1)*clock
translate y*(H_gyro+0.02) }
}
#end // macro
#macro Les_GyroPhares ()
union {
#local E = SzSol * 0.485;
object { GyroPhare () translate <-E, 0, -E> }
object { GyroPhare () translate < E, 0, -E> }
object { GyroPhare () translate <-E, 0, E> }
object { GyroPhare () translate < E, 0, E> }
object { GyroPhare () translate <-E, 0, 0> }
object { GyroPhare () translate < E, 0, 0> }
object { GyroPhare () translate < 0, 0, -E> }
object { GyroPhare () translate < 0, 0, E> }
#undef E
}
#end
/* ------------------------------------------------------------ */
#declare Rhxba = 0.30;
#declare R2hxba = Rhxba * 0.48;
@@ -20,6 +80,7 @@ merge {
sphere { 0, R2hxba translate < 0, E, 0> }
sphere { 0, R2hxba translate < 0, 0, -E> }
sphere { 0, R2hxba translate < 0, 0, E> }
#undef E
}
}
@@ -29,13 +90,13 @@ union {
object { HexaBalls
texture { Lightning1 scale 0.33 }
rotate <clock/3, clock/6, clock/9>
translate <5, -1.2+1.01*Cos_010(NormClock), 7>
translate <5, -1.1+1.01*Cos_010(NormClock), 7>
}
object { HexaBalls
texture { Lightning2 scale 0.56 }
// rotate <-clock, clock*0.33333, clock>
translate <7, -1+0.89*Cos_010(NormClock), -6>
translate <7, -1+0.92*Cos_010(NormClock), -6>
}
}
}
@@ -73,7 +134,7 @@ height_field {
pigment {
// color DarkGreen
image_map { png "datas/cmap.png" }
translate <-.5, 0, -.5>
// translate <-.5, 0, -.5>
scale <SzSol, 0.98, SzSol>
}
// normal { bumps 0.035 scale 0.186 }
@@ -82,14 +143,54 @@ height_field {
}
}
#declare Underground = object
{
plane { y, -0.80 }
texture {
pigment { color Gray20 }
normal { bumps 0.25 scale 6 }
}
}
// =======================================================
#declare Repere = object
{
union {
cylinder { 0, <1, 0, 0>, 0.008 pigment { color Red } }
cylinder { 0, <0, 0, 1>, 0.008 pigment { color Blue } }
#local R = 0.008;
cylinder { 0, <1, 0, 0>, R pigment { color Red } }
cylinder { 0, <0, 1, 0>, R pigment { color Green } }
cylinder { 0, <0, 0, 1>, R pigment { color Blue } }
}
}
#declare OpenBox = object
{
union {
#local R = 0.010;
/* les verticales */
cylinder { <-1, -1, -1>, <-1, 1, -1>, R }
cylinder { < 1, -1, -1>, < 1, 1, -1>, R }
cylinder { <-1, -1, 1>, <-1, 1, 1>, R }
cylinder { < 1, -1, 1>, < 1, 1, 1>, R }
/* en bas */
cylinder { < 1, -1, 1>, <-1, -1, 1>, R }
cylinder { < 1, -1, -1>, <-1, -1, -1>, R }
cylinder { <-1, -1, 1>, <-1, -1, -1>, R }
cylinder { < 1, -1, 1>, < 1, -1, -1>, R }
/* en haut */
cylinder { < 1, 1, 1>, <-1, 1, 1>, R }
cylinder { < 1, 1, -1>, <-1, 1, -1>, R }
cylinder { <-1, 1, 1>, <-1, 1, -1>, R }
cylinder { < 1, 1, 1>, < 1, 1, -1>, R }
#undef R
texture { WIP_color }
}
}
// =======================================================
#declare Les_Lumieres = object
{
union {
@@ -125,6 +226,14 @@ union {
point_at <0, 0.95, -0.22>
}
#end
light_source {
<-4, 54, -7>
colour Yellow*0.76
parallel
point_at 0
}
}
}
@@ -140,7 +249,7 @@ sky_sphere {
[ 0.8 color White ]
[ 1.0 color Gray10 ]
}
turbulence 3.14159 + 0.91 * Cos_010(NormClock)
turbulence 3.14159 + 0.78 * Cos_010(NormClock)
scale 1.804
// translate -1
}
@@ -157,8 +266,10 @@ sky_sphere {
{
union {
object { Le_Sol }
object { Underground }
object { Les_Bibelots }
object { Les_Lumieres }
object { Les_GyroPhares () }
}
}
/* ------------------------------------------------------------ */

42
cutoff.pov Normal file
View File

@@ -0,0 +1,42 @@
/*
* H E X A C O N E - C U T O F F
* nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024
*/
#version 3.7;
#include "globals.inc"
#include "contexte.inc"
#include "elements.inc"
#include "hexabenz.inc"
// =======================================================
#debug concat("------ cutoff clock = ", str(clock,5,0),"\n")
#declare Kbox = (2*NormClock);
/* this one is for debugging */
object { OpenBox translate <0, 1.5, Kbox> }
difference {
object { HexaCone () rotate y*5 }
box { -1, 1 translate z*Kbox }
translate y*1.5
}
// =======================================================
object { Le_Decor }
object { Repere }
// =======================================================
#local CamX = -2.7 + (2.1*NormClock);
#local CamY = 2.58 + (0.034*sqrt(NormClock));
camera {
location <CamX, CamY, 6.99>
look_at <0, 1.3, 0>
angle 42 - 4*Cos_01(NormClock)
}

View File

@@ -168,11 +168,10 @@ merge {
box { <-DXail, -DYail, -DZail> , <DXail, DYail, 0> }
}
#declare Le_rotor = object
{
#macro Le_rotor ()
union {
#local Rrot = 0.0034;
#local Lrot = 0.13;
union {
sphere { -x*Lrot, Rrot }
cylinder { <-Lrot, 0, 0>, <Lrot, 0, 0>, Rrot }
sphere { x*Lrot, Rrot }
@@ -183,14 +182,17 @@ union {
rotate (foo*35)*x
translate (foo*0.013)*x }
#end
}
// texture { T_Chrome_1C }
texture {
#if ( rand(Rng1) < 0.333 )
pigment { color Orange }
#else
pigment { color Magenta }
#end
// finish { emission 0.7 }
finish { ambient 0.7 phong 0.5 brilliance 0.9 metallic 0.7 }
finish { ambient 0.7 phong 0.5 brilliance 0.9 }
}
}
#end
/* ------------------------------------------------------
*
@@ -228,7 +230,7 @@ texture { T_Brass_1C }
{
union {
object { Tuyere }
object { Le_rotor rotate x*(clock*5.8) translate -0.06*x }
object { Le_rotor () rotate x*(clock*5.8) translate -0.06*x }
}
}

View File

@@ -17,36 +17,40 @@
#for (idX, 0, 4)
#for (idZ, 0, 4)
#local posX = (idX * 4.56) - 6.5;
#local posY = 1.3 * (rand(Rng1)-0.5);
#local posZ = (idZ * 4.24) - 8.9;
#local Ry = (rand(Rng1) - 0.5) * 16;
#local posX = (idX * 4.56) - 7.5 + (rand(Rng1)-0.5);
#local posY = 2.3 + (1.2*(rand(Rng1)-0.5));
#local posZ = (idZ * 4.24) - 7.9;
#local Rx = (rand(Rng1) - 0.5) * 8;
#local Ry = (rand(Rng1) - 0.5) * 14;
#local Rz = (rand(Rng1) - 0.5) * 11;
#if (rand(Rng1) < 0.515)
object { HexaCone ()
rotate y*Ry translate <posX, posY, posZ> }
rotate <0, Ry, Rz>
translate <posX, posY, posZ> }
#else
object { HexaBenz ()
rotate y*Ry translate <posX, posY, posZ> }
rotate <0, Ry, Rz>
translate <posX, posY, posZ> }
#end
#end
#end
// =======================================================
#if (NormClock < 0.08)
#if (NormClock < 0.09)
light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> }
#end
light_source { < 11, 7, 4>, rgb <NormClock, 0.48, 0.80> }
object { Le_Decor }
// object { Repere scale 5 }
#local CamX = -8.7+(6.6*NormClock);
#local CamY = -5+(11.9*Cos_01(NormClock));
#local CamZ = 15.06+(2.9*Cos_010(NormClock));
#local CamY = 1.9+(13.37*Cos_01(NormClock));
#local CamZ = 15.86+(12.9*Cos_01(NormClock));
camera {
location <CamX, CamY, CamZ>
look_at <0.0, 0.0, 0>
angle 53 - (3.57 * NormClock)
look_at <0.0, -0.3, 0>
angle 60 - (3.97 * NormClock)
}

View File

@@ -13,46 +13,27 @@
// =======================================================
#macro GyroPhare_mat ()
cylinder {
0, y*H_gyro, R_gyro
#if (rand(Rng1) < 0.5)
texture { T_Stone25 scale 1+rand(Rng1) }
#else
texture { T_Stone6 }
#end
}
#end // macro
#macro GyroPhare_lampe ()
#declare QuadriPole = object
{
#local R = 0.02;
#local E = 0.25;
#local H = H_cone*2;
union {
difference {
cylinder { 0, y*0.20, R_gyro }
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
#local WB = 0.015;
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
#undef WB
pigment { color White }
rotate y*(0.5-rand(Rng1))*clock
cylinder { 0, y*H, R translate -x*E }
cylinder { 0, y*H, R translate x*E }
cylinder { 0, y*H, R translate -z*E }
cylinder { 0, y*H, R translate z*E }
}
light_source { y*0.10 rgb <0.8, 0.9, 0.999999999> }
texture { WIP_color }
#undef E
#undef H
#undef R
}
#end // macro
#macro GyroPhare ()
union {
object { GyroPhare_mat () }
object { GyroPhare_lampe ()
// rotate y*rand(Rng1)*clock
translate y*(H_gyro+0.02) }
}
#end // macro
// =======================================================
#macro Bubble ()
sphere {
0, 0.06
0, 0.065
#if ( rand(Rng1) < 0.333 )
texture { Ruby_Glass }
#elseif ( rand(Rng1) < 0.666 )
@@ -74,36 +55,38 @@ union {
#declare Les_Machins = object
{
union {
#local Rk = 4.95;
#for (foo, 0, 360, 15)
#local Rk = 2.55;
#for (foo, 0, 359, 45)
#local Xpos = Rk * sin(radians(foo));
#local Zpos = Rk * cos(radians(foo));
#if ( rand(Rng1) < 0.40 )
#local RND = rand(Rng1);
object { GyroPhare () translate <Xpos, 0, Zpos> }
#else
object { Un_Machin () translate <Xpos, 0.33, Zpos> }
#end
#end
#undef RND
#undef Rk
}
}
object { Les_Machins translate y*0.01}
// =======================================================
object { Le_Sol }
// object { Repere }
// =======================================================
object { OpenBox translate y*1.2 }
object { Les_Machins }
object { Le_Decor }
object { Repere }
// =======================================================
// light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> }
// light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> }
#local CamX = -12.7 + (5.8*NormClock);
#local CamY = 8.81 + (14*sqrt(NormClock));
#local CamX = -2.7 + (3.8*NormClock);
#local CamY = 1.81 + (4*sqrt(NormClock));
camera {
location <CamX, CamY, 9.99>
look_at <0, 0, 0>
angle 42 + 8*Cos_01(NormClock)
look_at <0, 0.5, 0>
angle 42 - 4*Cos_01(NormClock)
}

View File

@@ -1,7 +1,7 @@
global_settings {
assumed_gamma 1.0
ambient_light rgb <0.18, 0.18, 0.21>
ambient_light rgb <0.17, 0.17, 0.21>
max_trace_level 15
}
@@ -22,14 +22,24 @@ global_settings {
* Some constants...
*/
#declare SzSol = 30;
#declare SzSol = 34;
#declare R_basecone = 0.117;
#declare H_cone = 0.97;
#declare R_gyro = 0.10;
#declare R_gyro = 0.08;
#declare H_gyro = 1.20;
/* ------------------------------------------------------------ */
/*
* Some textures...
*/
#declare WIP_color = texture
{
pigment { color Cyan*0.60 }
finish { phong 0.01 }
}
/* ------------------------------------------------------------ */
/*
* Usefull macros

View File

@@ -18,7 +18,7 @@ union {
// {
union {
#for (foo, 0, 360, 60)
#local E = 0.38;
#local E = 0.35;
#local Tx = E * sin(radians(foo));
#local Ty = E * cos(radians(foo));
object {
@@ -38,13 +38,12 @@ union {
// ------------------------------------------------------
#local R_Tube = 0.20;
#declare R_Tube = 0.20;
#local L_Tube = 0.54;
#declare Benz_Tubules = object
{
#macro Benz_Tubules ()
merge {
#local E = R_Tube * 0.0910;
#local E = R_Tube * 0.75;
#local R = 0.01;
#for (foo, 0, 360, 20)
#local Tx = E * sin(radians(foo));
@@ -55,13 +54,13 @@ merge {
sphere { -Dza, R*1.8 translate <Tx, Ty, 0> }
sphere { Dzb, R*1.8 translate <Tx, Ty, 0> }
#end
}
#if ( rand(Rng1) < 0.333)
texture { Orange_Glass }
#else
texture { Yellow_Glass }
#end
}
#end
#declare Benz_Fuseau = object
{
@@ -109,7 +108,7 @@ texture { Soft_Silver scale 6.0 }
// #declare Benz_Tube = object
// {
union {
object { Benz_Tubules }
object { Benz_Tubules () }
object { Benz_Fuseau_Flash translate z*0.40 }
object { Benz_Cylindre }
}

View File

@@ -17,22 +17,24 @@
#local K = 1.48;
object { HexaBenz () rotate y*90 translate -x*K }
object { HexaBenz () translate x*K }
object { HexaBenz () rotate y*90 translate <-K, 1.2, 0> }
object { HexaBenz () translate < K, 1.2, 0> }
// =======================================================
light_source { <19, 7, 14>, rgb <0.77, 0.79, 0.80> }
light_source { <19, 9, -14>, rgb <0.87, 0.79, 0.70> }
object { Le_Decor }
// light_source { <19, 7, 14>, rgb <0.77, 0.79, 0.80> }
// light_source { <19, 9, -14>, rgb <0.87, 0.79, 0.70> }
// object { Repere scale 2 }
camera {
location <-1.9+(8*NormClock), 0.70, 7.59-NormClock>
look_at <0.37, 0.0, 0>
focal_point <0.37, 0.0, 0>
aperture 0.046
blur_samples 30
look_at <0.37, 0.9, 0>
// focal_point <0.37, 0.0, 0>
// aperture 0.046
// blur_samples 30
angle 60 - 28 * Cos_01(NormClock)
}

View File

@@ -6,27 +6,23 @@
#include "globals.inc"
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
#include "stones.inc"
#include "contexte.inc"
#include "elements.inc"
#include "hexabenz.inc"
#declare Cone_Repere = object
{
union {
object { HexaCone () }
object { Repere translate <-0.4, -0.2, -0.5> }
// object { Repere translate <-0.4, -0.2, -0.5> }
}
}
#local K = 1.48;
object { Cone_Repere rotate y*90 translate -x*K }
object { Cone_Repere translate x*K }
object { Cone_Repere rotate y*90 translate <-K, 1.2, 0> }
object { Cone_Repere translate < K, 1.1, 0> }
object { Le_Decor }
// =======================================================
@@ -37,10 +33,10 @@ light_source { <19, 9, -14>, rgb <0.87, 0.79, 0.70> }
camera {
location <-1.9+(8*NormClock), 0.70, 7.59-NormClock>
look_at <0.37, 0.0, 0>
focal_point <0.37, 0.0, 0>
aperture 0.046
blur_samples 30
look_at <0.37, 0.70, 0>
// focal_point <0.37, 0.90, 0>
// aperture 0.046
// blur_samples 30
angle 55 - 28 * Cos_01(NormClock)
}

View File

@@ -11,7 +11,7 @@
#include "hexabenz.inc"
// =======================================================
#declare R_planete = 1.42;
#declare R_planete = 1.22;
#declare Croute = object
{
@@ -29,7 +29,7 @@ difference {
}
texture {
pigment { color rgb <0.20, 0.40, 0.10> }
finish { reflection 0.25 }
finish { reflection 0.15 }
}
}
@@ -38,7 +38,7 @@ texture {
sphere { 0, R_planete }
texture {
pigment { rgb <0.70, 0.50, 0.70> }
finish { reflection 0.25 }
finish { reflection 0.15 }
}
}
@@ -52,26 +52,26 @@ union {
// =======================================================
#local RO = 4.15;
#local CK = NormClock * 7.87;
#local CK = NormClock * 22.64;
#declare PosX = RO * sin(CK);
#declare PosY = 0;
#declare PosZ = RO * cos(CK);
object { HexaBenz ()
rotate -y*CK*2.333 translate <PosX, PosY, PosZ>
rotate -y*CK*6.333 translate <PosX, PosY, PosZ>
}
#declare PosX = RO * sin(CK+2.12);
#declare PosY = 0;
#declare PosZ = RO * cos(CK+2.23);
object { HexaCone ()
rotate y*CK*3.222 translate <PosX, PosY, PosZ>
rotate y*CK*5.222 translate <PosX, PosY, PosZ>
}
object { Planete rotate (-clock*0.21)*y }
light_source { <19, 6, 15>, rgb <0.77, 0.79, 0.80> }
camera {
location <3, 1.50, 7.59>
location <3, 1.50, 10.59>
look_at <0.0, 0.0, 0>
focal_point <0.07, 0.0, 0>
aperture 0.046

View File

@@ -19,8 +19,8 @@
object { Le_Decor }
#declare PosX = 0.333;
#declare PosY = 1.10 + (NormClock*0.24);
#declare PosX = 1.55;
#declare PosY = 1.90 + (NormClock*0.28);
#declare PosZ = (NormClock-0.5) * 53.27;
object { HexaBenz () translate <PosX, PosY, PosZ> }

39
remote.pov Normal file
View File

@@ -0,0 +1,39 @@
/*
* H E X A C O N E - R E M O T E
* nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024
*/
#version 3.7;
#include "globals.inc"
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
#include "contexte.inc"
#include "elements.inc"
#include "hexabenz.inc"
object { Le_Decor }
// object { HexaCone () rotate z*9.1 translate <5, 3, -8> }
object { HexaBenz () translate <-4, 2, -5> }
// light_source { <-16, 17, -24>, rgb <0.51, 0.65, 0.40> }
// object { Repere scale 2 }
#local DistCam = 239;
#local CK = 0.70 * NormClock;
#declare CamX = DistCam * sin(CK);
#declare CamY = 28;
#declare CamZ = DistCam * cos(CK);
camera {
location <CamX, CamY, CamZ>
look_at <0, 0.3, 0>
// focal_point <2, 1, 12>
// aperture 0.046
// blur_samples 30
angle 10
}

View File

@@ -34,9 +34,9 @@ object { HexaBenz ()
camera {
location <CamX, 1.23, CamZ>
look_at Lat
focal_point Lat
aperture 0.046
blur_samples 30
// focal_point Lat
// aperture 0.046
// blur_samples 30
angle 70
}

9
tools/config.sh Normal file
View File

@@ -0,0 +1,9 @@
Img_Width=1024
Img_Height=768
TEXTCOL="orange"
STROKOL="darkblue"
NBFRAMES=360

View File

@@ -2,13 +2,13 @@
set -e ; set -u
source tools/config.sh
IDX=0
SPOOL="frames/Spool"
SEQNAME="none"
TMP="WS/tmp.png"
FONTE="Helvetica-Bold"
TEXTCOL="yellow"
STROKOL="darkblue"
source tools/fonctions.sh
@@ -32,13 +32,24 @@ linkfarm ()
{
SRC="frames/$1"
echo "linkfarm $SRC" | tee -a WS/log
local INTER="/dev/shm/tmp-intertitre.png"
tools/plot-timing.sh $1
local NBRE=60
local NBRE=90
convert "WS/negatif.png" \
-gravity north \
-font $FONTE \
-pointsize 96 \
-kerning 6 \
-fill $TEXTCOL \
-strokewidth 2 -stroke $STROKOL \
-annotate +0+490 "$1" \
${INTER}
for foo in $(seq 0 $NBRE)
do
copy_a_file "WS/negatif.png"
copy_a_file $INTER
done
for foo in $(seq 0 $NBRE)
@@ -61,8 +72,8 @@ faire_le_titre ()
{
echo "faire le titre"
local NBRE=180
local SRC="frames/passage/00059.png"
local NBRE=280
local SRC="frames/passage/00099.png"
local GRAY="/dev/shm/tmp-titre.png"
convert -colorspace gray -colors 27 $SRC $GRAY
@@ -73,11 +84,11 @@ do
convert ${GRAY} \
-gravity north \
-font $FONTE \
-pointsize 172 \
-pointsize 146 \
-kerning 6 \
-fill $TEXTCOL \
-strokewidth 3 -stroke $STROKOL \
-annotate +0+${Ypos} "HexaCone" \
-annotate +0+${Ypos} "HexaCones" \
${TMP}
# identify ${TMP}
copy_a_file ${TMP}
@@ -92,10 +103,14 @@ local NBRE=180
datetime=$(LANG=fr date -u +"%Y/%m/%d")
echo $datetime | tee -a WS/log
local SRC="frames/escadrille/00299.png"
local GRAY="/dev/shm/tmp-titre.png"
convert -colorspace gray -colors 27 $SRC $GRAY
for foo in $(seq 0 $NBRE)
do
Ypos=$(( foo + 20 ))
convert "WS/negatif.png" \
convert ${GRAY} \
-gravity north \
-font $FONTE \
-pointsize 86 \
@@ -107,7 +122,7 @@ do
-pointsize 48 \
-strokewidth 1 \
-gravity south \
-annotate +0+170 "${datetime}" \
-annotate +0+140 "${datetime}" \
${TMP}
# identify ${TMP}
copy_a_file ${TMP}
@@ -121,7 +136,6 @@ figlet "Link farmer"
rm -f frames/Spool/*.png
# tools/plot-timing.sh
faire_le_titre
linkfarm hexabenz
@@ -131,7 +145,7 @@ linkfarm topview
linkfarm passage
linkfarm scene
linkfarm orbite
linkfarm remote
linkfarm essai
tools/plot-timing.sh

View File

@@ -1,16 +1,16 @@
#!/bin/bash
set -e ; set -u
source tools/config.sh
source tools/fonctions.sh
SEQNAME="$1"
NBFRAMES=360
echo "Running $0 $SEQNAME" >> WS/log
DIMS="-W1024 -H768"
POVOPT="+q9 -a -d ${DIMS} -WT6"
DIMS="-W$Img_Width -H$Img_Height"
POVOPT="+q9 +A -d ${DIMS} -WT6"
echo $POVOPT ; echo ; sleep 2
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
@@ -25,17 +25,17 @@ do
err=$?
if [ $err != 0 ] ; then
echo "$SEQNAME fail $frame" >> WS/log
mogrify -colorspace gray $img
mogrify -colorspace gray -blur 5x5 $img
visual_sleep 12
continue
fi
set -e
txt=$(printf "%s %03d" ${SEQNAME} $frame | tr '0' 'o')
txt=$(printf "%s %03d" ${SEQNAME} $frame | tr '01' 'ol')
# echo $frame $img $txt
convert ${TMPIMG} \
-font Courier-Bold \
-pointsize 18 \
-fill Gray80 \
-pointsize 16 \
-fill ${TEXTCOL} \
-gravity south \
-annotate +0+5 "$txt" \
${img}

View File

@@ -2,6 +2,8 @@
set -ue
source tools/config.sh
TMPFILE="/dev/shm/plot-timing.tmp"
IMAGE="timing.png"
@@ -12,13 +14,14 @@ else
sequence="escadrille"
fi
echo "plot timing $sequence" | tee -a WS/log
# wc WS/mp4.timing | tee -a WS/log
# echo "plot timing $sequence" >> WS/log
grep $sequence WS/mp4.timing | tail -3600 | awk ' \
grep $sequence WS/mp4.timing | tail -3600 | awk \
-v nbframes=$NBFRAMES \
' \
BEGIN { \
nbrames=360; \
for (foo=0; foo<nbrames; foo++) { \
# print "nb frames = ", nbframes; \
for (foo=0; foo<nbframes; foo++) { \
mini[foo] = 666; \
maxi[foo] = -42; \
count[foo] = 0; \
@@ -33,7 +36,7 @@ BEGIN { \
} \
\
END { \
for (foo=0; foo<nbrames; foo++) { \
for (foo=0; foo<nbframes; foo++) { \
if (count[foo] > 0) { \
mean = accu[foo] / count[foo]; \
printf "%4d %4f %4d %4d\n", foo, mean, \
@@ -43,10 +46,10 @@ END { \
} \
' > $TMPFILE
# cat -n $TMPFILE | tail # ; exit
# head $TMPFILE ; exit
gnuplot << __EOC__
set term png size 1024,768
set term png size $Img_Width,$Img_Height
set output "timing.png"
set grid
set xrange [:360]
@@ -59,5 +62,5 @@ gnuplot << __EOC__
"/dev/shm/plot-timing.tmp" u 1:2 w l lc "#000000" t "moyenne",
__EOC__
convert -negate -colorspace gray -level -33% $IMAGE WS/negatif.png
convert -negate -level -33% $IMAGE WS/negatif.png

View File

@@ -7,10 +7,6 @@
#include "globals.inc"
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
#include "contexte.inc"
#include "elements.inc"
#include "hexabenz.inc"
@@ -32,14 +28,14 @@ object { HexaBenz () translate <-4, 2, -6> }
light_source { <-16, 17, -24>, rgb <0.51, 0.65, 0.40> }
// object { Repere scale 2 }
#declare CamY = 19 - (4.5*NormClock);
#declare CamY = 31 + (9.999*NormClock);
#declare LatY = -3 + NormClock;
camera {
location <-3.60, CamY, 21.09>
look_at <0, LatY, 0>
focal_point <2, 1, 12>
aperture 0.046
blur_samples 30
// focal_point <2, 1, 12>
// aperture 0.046
// blur_samples 30
angle 45 + (5*NormClock)
}