nap time ?

This commit is contained in:
Tonton Th
2026-05-27 07:23:01 +02:00
parent addd793fbc
commit f3df71d687
13 changed files with 70 additions and 60 deletions

View File

@@ -1,3 +1,4 @@
# Workspace # Workspace
For intermediates files, and timing log. This space is for intermediate files, fuzzy garbage, timing log,
and a lot of weird datas.

View File

@@ -15,7 +15,7 @@ merge {
} }
#end #end
// =========================================================== // ===========================================================
#declare SzC = 0.3; #declare SzC = 0.333;
#macro Base_Col_A () #macro Base_Col_A ()
merge { merge {
box { <-SzC, 0, -SzC>, <SzC, 0.222, SzC> } box { <-SzC, 0, -SzC>, <SzC, 0.222, SzC> }
@@ -49,7 +49,7 @@ difference {
// ----------------------------------------------------------- // -----------------------------------------------------------
#macro Fut_Col_A (H) #macro Fut_Col_A (H)
object { object {
cylinder { 0, H*y, 0.15 } cylinder { 0, H*y, SzC * 0.50 }
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.43) #if (R < 0.43)
texture { T_Stone29 } texture { T_Stone29 }
@@ -73,7 +73,7 @@ union {
#macro Linteau_A (Lg, Epp) #macro Linteau_A (Lg, Epp)
merge { merge {
#local L = Lg + 0.42; #local L = Lg + 0.42;
#local K = 0.28; #local K = 0.30;
box { <-L, 0, -K>, <L, Epp, K> } box { <-L, 0, -K>, <L, Epp, K> }
cylinder { <0, Epp, -K*0.9>, <0, Epp, K*0.9>, K } cylinder { <0, Epp, -K*0.9>, <0, Epp, K*0.9>, K }
#local R = rand(Rng1); #local R = rand(Rng1);

View File

@@ -48,13 +48,13 @@ object { Le_Decor }
// ======================================================= // =======================================================
#local CamX = -27.4 + (2.29*Cos_01(NormClock)); #local CamX = -27.4 + (2.39*Cos_01(NormClock));
#local CamY = 1.9 - (0.24*sqrt(NormClock)); #local CamY = 1.9 - (0.24*sqrt(NormClock));
#local CamZ = -0.85 + (2.02*NormClock); #local CamZ = -0.85 + (2.12*NormClock);
camera { camera {
location <CamX, CamY, CamZ> location <CamX, CamY, CamZ>
look_at <0, 1.5, 0> + POS_Cutoff look_at <0, 1.5, 0> + POS_Cutoff
right <image_width/image_height, 0, 0> right <image_width/image_height, 0, 0>
angle 35 - 5*Cos_01(NormClock) angle 35 - 5.12*Cos_01(NormClock)
} }

View File

@@ -10,17 +10,17 @@
#declare Les_Jalons = object #declare Les_Jalons = object
{ {
union { union {
#local EC = SzSol + 175; #local EC = SzSol + 195;
/* les coins */ /* les coins */
object { Jalon_0 (0.5, 8, LeGris) translate <-EC, 0, -EC> } object { Jalon_0 (0.5, 18, LeGris) translate <-EC, 0, -EC> }
object { Jalon_0 (0.5, 8, LeGris) translate < EC, 0, -EC> } object { Jalon_0 (0.5, 18, LeGris) translate < EC, 0, -EC> }
object { Jalon_0 (0.5, 8, LeGris) translate <-EC, 0, EC> } object { Jalon_0 (0.5, 18, LeGris) translate <-EC, 0, EC> }
object { Jalon_0 (0.5, 8, LeGris) translate < EC, 0, EC> } object { Jalon_0 (0.5, 18, LeGris) translate < EC, 0, EC> }
/* les milieux des cotés */ /* les milieux des cotés */
object { Jalon_0 (0.5, 6, LeGris) translate < 0, 0, -EC> } object { Jalon_0 (0.5, 6, T_Beton_1) translate < 0, 0, -EC> }
object { Jalon_0 (0.6, 6, LeGris) translate < 0, 0, EC> } object { Jalon_0 (0.6, 6, T_Beton_1) translate < 0, 0, EC> }
object { Jalon_0 (0.5, 6, LeGris) translate < EC, 0, 0> } object { Jalon_0 (0.9, 6, T_Beton_2) translate < EC, 0, 0> }
object { Jalon_0 (0.6, 6, LeGris) translate <-EC, 0, 0> } object { Jalon_0 (0.6, 6, T_Beton_1) translate <-EC, 0, 0> }
} }
} }
/* ======================================================= */ /* ======================================================= */

View File

@@ -7,7 +7,7 @@
object { object {
#local CK = (clock / 230) - 0.75; // en radians #local CK = (clock / 210) - 0.75; // en radians
#local RD = 63; // rayon deplacement #local RD = 63; // rayon deplacement
#local Xp = RD * sin(CK); #local Xp = RD * sin(CK);
#local Zp = RD * cos(CK); #local Zp = RD * cos(CK);
@@ -36,9 +36,10 @@ object {
/// ======================================================= /// =======================================================
/* des trucs autour des trous du sol. */ /* des trucs autour des trous du sol. */
// Les_Machins --> 'gadgets.inc' // Les_Machins dans 'gadgets.inc'
object { Les_Machins rotate -y*clock translate UnderHoles[2] }
object { Les_Machins rotate y*clock translate UnderHoles[5] } // object { Les_Machins rotate -y*clock translate UnderHoles[2] }
// object { Les_Machins rotate y*clock translate UnderHoles[5] }
// object { Les_HexaBalls rotate y*(clock*2.9) translate UnderHoles[4] } // object { Les_HexaBalls rotate y*(clock*2.9) translate UnderHoles[4] }

View File

@@ -41,8 +41,9 @@ union {
#local DZ = (E+rand(Rng1)) * cos(A); #local DZ = (E+rand(Rng1)) * cos(A);
cone { cone {
#local RC = 0.15 + (rand(Rng1) * 0.50); #local RC = 0.15 + (rand(Rng1) * 0.50);
#local H2 = H + rand(Rng1); #local H1 = H * 0.25;
y*(H*(0.01)), 0.15, <DX, H2, DZ>, 0.001 #local H2 = H + 1.0 + rand(Rng1);
<0, H1, 0>, 0.15, <DX, H2, DZ>, 0.001
#local Rv = 0.7 + (0.2*rand(Rng1)); #local Rv = 0.7 + (0.2*rand(Rng1));
#local Gv = 0.4 + (0.5*rand(Rng1)); #local Gv = 0.4 + (0.5*rand(Rng1));
#local Bv = 0.6 + (0.4*rand(Rng1)); #local Bv = 0.6 + (0.4*rand(Rng1));
@@ -52,8 +53,14 @@ union {
finish { phong 0.51 reflection 0.08 } finish { phong 0.51 reflection 0.08 }
} }
} }
sphere { 0, 0.45 scale <1, 0.717, 1> texture { T_WIP_color } }
#end // for #end // for
union {
#local Rb = 0.42;
sphere { 0, Rb scale <1, 0.717, 1> translate H1*y }
cylinder { 0, (0.01+H1)*y, Rb }
texture { T_WIP_color }
}
} }
#end // macro #end // macro
@@ -66,7 +73,7 @@ union {
translate <-4, 0, 0> } translate <-4, 0, 0> }
object { Anemone_A (1.40+NormClock, 1.50*NormClock) object { Anemone_A (1.40+NormClock, 1.50*NormClock)
translate < 0, 0, -4> } translate < 0, 0, -4> }
object { Anemone_A (1.40+NormClock, 1.50-NormClock) object { Anemone_A (1.40+NormClock, 1.80-NormClock)
translate < 0, 0, 4> } translate < 0, 0, 4> }
} }
} }
@@ -203,13 +210,13 @@ finish { phong 0.25 }
#local TZ = 2.95; #local TZ = 2.95;
#local Kro = 32 + (NormClock * 666); #local Kro = 32 + (NormClock * 666);
union { union {
object { Obj_BasicTexture texture { R_Texture } object { Obj_BasicTexture texture { LeGris }
rotate y * (rand(Rng1)*Kro) rotate y * (rand(Rng1)*Kro)
translate <TX, 0, -TZ> } translate <TX, 0, -TZ> }
object { Obj_BasicTexture texture { Texture_du_Vase } object { Obj_BasicTexture texture { Texture_du_Vase }
rotate y * (rand(Rng1)*Kro) rotate y * (rand(Rng1)*Kro)
translate <TX, 0, 0> } translate <TX, 0, 0> }
object { Obj_BasicTexture texture { B_Texture } object { Obj_BasicTexture texture { T_GlowGreen }
rotate y * (rand(Rng1)*Kro) rotate y * (rand(Rng1)*Kro)
translate <TX, 0, TZ> } translate <TX, 0, TZ> }
@@ -223,7 +230,7 @@ union {
rotate y * (rand(Rng1)*Kro) rotate y * (rand(Rng1)*Kro)
translate <-TX, 0, -TZ> } translate <-TX, 0, -TZ> }
object { Repere scale 1.5 translate y*0.5 } object { Repere scale 1.5 translate y*0.75 }
} }
} }
@@ -234,8 +241,6 @@ union {
Mieux, on garde la chose mais on en dérive le vase Mieux, on garde la chose mais on en dérive le vase
*/ */
// ------------------------------------
#macro Vase_le_corps_a () #macro Vase_le_corps_a ()
intersection { intersection {
box { <-5, -5, -5>, <5, 0, 5> } box { <-5, -5, -5>, <5, 0, 5> }
@@ -245,10 +250,10 @@ intersection {
scale <1, 1.60, 1> scale <1, 1.60, 1>
} }
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.75) #if (R < 0.65)
texture { Texture_du_Vase rotate y*(clock*3) } texture { Texture_du_Vase rotate y*(clock*3) }
#else #else
texture { T_WIP_redwave scale 0.15 + 0.333*rand(Rng1) texture { T_WIP_redwave scale 0.15 + 0.07*rand(Rng1)
rotate <75*rand(Rng1), 75*rand(Rng1), 75*rand(Rng1)> rotate <75*rand(Rng1), 75*rand(Rng1), 75*rand(Rng1)>
} }
#end #end
@@ -345,7 +350,7 @@ union {
object { Vase () scale 1.4 translate <-2.9, 0, 3.91> } object { Vase () scale 1.4 translate <-2.9, 0, 3.91> }
object { Chose () scale 2 translate < 2.9, 0, -4.07> } object { Chose () scale 2 translate < 2.9, 0, -4.07> }
object { Vase () translate <-4.5, 0, -4> } object { Vase () translate <-4.5, 0, -4> }
object { Repere translate 0.15*y } object { Repere scale 1.7 translate 0.25*y }
} }
} }
// ======================================================= // =======================================================
@@ -358,9 +363,9 @@ union {
#declare Dx = E * sin(radians(I)); #declare Dx = E * sin(radians(I));
#declare Dz = E * cos(radians(I)); #declare Dz = E * cos(radians(I));
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R > 0.76) #if (R > 0.66)
object { GyroPhare () translate <Dx, 0, Dz> } object { GyroPhare () translate <Dx, 0, Dz> }
#elseif (R > 0.45) #elseif (R > 0.33)
object { HexaPole () translate <Dx, 0, Dz> } object { HexaPole () translate <Dx, 0, Dz> }
#else #else
object { HexoFlash (0.14, 1.85 + (0.444*rand(Rng1)) ) object { HexoFlash (0.14, 1.85 + (0.444*rand(Rng1)) )
@@ -421,13 +426,13 @@ union {
object { ProtoTextures } object { ProtoTextures }
#break #break
#case (3) #case (3)
object { Blob_Boxed scale 3.159 translate < 0, 2, 0> } object { Les_Boules scale 1.727 translate <0, 1, 0> }
object { Blob_Boxed scale 1.414 translate <-3, 3, 0> } object { Blob_Boxed scale 1.414 translate <0, 4, 0> }
// object { Repere translate y*1 } // object { Repere translate y*1 }
#break #break
#case (4) #case (4)
object { Un_Autre_Cube (0.7) rotate x*clock translate <3, 1.8, 1> } object { Un_Autre_Cube (0.7) rotate x*clock translate <3, 1.8, 2> }
object { HorlogeDouble scale 2.8 object { HorlogeDouble scale 2.12
rotate y*(214*NormClock) translate <-3, 0, -2> } rotate y*(214*NormClock) translate <-3, 0, -2> }
#break #break
@@ -440,9 +445,9 @@ plane {
// ======================================================= // =======================================================
#local CamX = -2.9 + (1.8*Cos_010(NormClock)); #local CamX = -2.9 + (1.9*Cos_010(NormClock));
#local CamY = 0.61 + (0.9*exp(NormClock)); #local CamY = 0.61 + (1.1*exp(NormClock));
#local CamZ = -5.777 + (1.3*Cos_01(NormClock)); #local CamZ = -5.777 + (1.3*Cos_010(NormClock));
#local K = 8.6; #local K = 8.6;
#local CamX = CamX * K; #local CamX = CamX * K;
@@ -450,7 +455,6 @@ plane {
#local CamZ = CamZ * K; #local CamZ = CamZ * K;
camera { camera {
// orthographic
location <CamX, CamY, CamZ> location <CamX, CamY, CamZ>
look_at <0, 1.5, 0> look_at <0, 1.5, 0>

View File

@@ -203,19 +203,20 @@ prism {
#end // macro #end // macro
// ------------------------------------------------------ ## // ------------------------------------------------------ ##
/* nouveau du 31 mars 2026, aux Bourtoulots /* nouveau du 31 mars 2026, aux Bourtoulots
* * XXX need more fine tuning !
*/ */
#macro HexaPole_abatjour (Quux) #macro HexaPole_abatjour (Quux)
union { union {
#local Raj = 0.333; #local Raj = 0.333;
torus { Raj, 0.013 translate -y*Quux } torus { Raj, 0.011 translate -y*Quux }
#for (Foo, 0, 359, 18) #for (Foo, 0, 359, 18)
#local DX = Raj * sin(radians(Foo)); #local DX = Raj * sin(radians(Foo));
#local DZ = Raj * cos(radians(Foo)); #local DZ = Raj * cos(radians(Foo));
cylinder { -y*Quux, y*Quux, 0.009 translate <DX, 0, DZ> } cylinder { -y*Quux, y*Quux, 0.009 translate <DX, 0, DZ> }
#end // for #end // for
torus { Raj, 0.02 translate y*Quux } torus { Raj, 0.02 translate y*Quux }
rotate y*(clock*0.90*(rand(Rng1)-0.59)) rotate y*(clock*1.86*(rand(Rng1)-0.52))
texture { Aluminum }
} }
#end // macro #end // macro
@@ -224,7 +225,7 @@ sphere {
0, 0.080 0, 0.080
texture { texture {
pigment { color rgb <1, 1, 1> } pigment { color rgb <1, 1, 1> }
finish { emission 0.8 diffuse 0.6 } finish { emission 0.9 diffuse 0.6 }
} }
} }
#end // macro #end // macro
@@ -232,18 +233,19 @@ sphere {
#macro HexaPole_mat_lampe (Height) #macro HexaPole_mat_lampe (Height)
union { union {
union { union {
cylinder { 0, y*Height, 0.061 } cylinder { 0, y*Height, 0.061
texture { LeGris }}
#local Val = 0.09+(0.09*rand(Rng1)); #local Val = 0.09+(0.09*rand(Rng1));
object { HexaPole_abatjour (Val) object { HexaPole_abatjour (Val)
translate y*(Height+0.073) } translate y*(Height+0.073) }
texture { LeGris }
} }
#local Pos = y*(Height+0.097); #local Pos = y*(Height+0.097);
#if (rand(Rng1) < 0.333) #if (rand(Rng1) < 0.36)
#local Val = 0.25 + 0.5*rand(Rng1); #local Val = 0.25 + 0.5*rand(Rng1);
light_source { light_source {
Pos rgb <0.86, 0.25+(0.5*rand(Rng1)), 0.99> Pos rgb <0.86, 0.29+(0.5*rand(Rng1)), 0.99>
fade_distance 3.30 fade_distance 3.30
fade_power 1.55 fade_power 1.55
looks_like { HexaPole_ampoule (0) } looks_like { HexaPole_ampoule (0) }
@@ -251,7 +253,7 @@ union {
#else #else
sphere { sphere {
Pos, 0.080 Pos, 0.080
texture { Y_Texture } texture { LeGris }
} }
#end // if #end // if
} }

View File

@@ -11,7 +11,7 @@ global_settings {
#include "stones.inc" #include "stones.inc"
#include "woods.inc" #include "woods.inc"
#declare Rng1 = seed(8.6); #declare Rng1 = seed(3615);
#declare foo = rand(Rng1); #declare foo = rand(Rng1);
#declare Rng2 = seed(now*24*60*60); #declare Rng2 = seed(now*24*60*60);
#declare bar = rand(Rng2); #declare bar = rand(Rng2);

View File

@@ -26,7 +26,7 @@ camera {
look_at Loc_Patrouille look_at Loc_Patrouille
right <image_width/image_height, 0, 0> right <image_width/image_height, 0, 0>
angle 13.3333333 angle 11.11111
} }
/* =============================================================== */ /* =============================================================== */

View File

@@ -21,7 +21,7 @@ object { Le_Decor }
#declare CamX = Dcam * cos(radians(CK+0.9)); #declare CamX = Dcam * cos(radians(CK+0.9));
#declare CamZ = Dcam * 1.20 * sin(radians(CK)); #declare CamZ = Dcam * 1.20 * sin(radians(CK));
#declare LatY = 2.25 + (1.51 * Cos_010(NormClock)); #declare LatY = 2.20 + (1.21 * Cos_010(NormClock));
camera { camera {
location <CamX, 2.10, CamZ> location <CamX, 2.10, CamZ>

View File

@@ -36,7 +36,7 @@ SRC="frames/$1"
local INTER="/dev/shm/tmp-intertitre.png" local INTER="/dev/shm/tmp-intertitre.png"
tools/plot-timing.sh $1 tools/plot-timing.sh $1
local NBRE=78 local NBRE=51
convert "WS/negatif.png" \ convert "WS/negatif.png" \
-gravity center \ -gravity center \

View File

@@ -57,7 +57,7 @@ merge {
#local R = rand(Rng1); #local R = rand(Rng1);
#if ( R < 0.333) texture { T_Chrome_1C } #if ( R < 0.333) texture { T_Chrome_1C }
#elseif ( R < 0.666) texture { T_Silver_1C } #elseif ( R < 0.666) texture { T_Silver_1C }
#else texture { T_WIP_rasta scale 3 } #else texture { Flashy scale 3 }
#end #end
} }
#undef L #undef L

View File

@@ -140,13 +140,14 @@ union {
/* nouveau du 7 octobre 2025 */ /* nouveau du 7 octobre 2025 */
#macro Une_Boule () #macro Une_Boule ()
sphere { sphere {
0, 0.18 + (rand(Rng1) * 0.06) 0, 0.15 + (rand(Rng1) * 0.05)
scale <1, 1+(rand(Rng1) * 0.15), 1>
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.333) texture { C_Texture } #if (R < 0.333) texture { C_Texture }
#elseif (R < 0.666) texture { M_Texture } #elseif (R < 0.666) texture { M_Texture }
#else texture { Y_Texture } #else texture { Y_Texture }
#end #end
finish { phong 0.7 specular 0.3 } finish { phong 0.7 specular 0.5 }
} }
#end // macro #end // macro
@@ -157,6 +158,7 @@ sphere {
{ {
union { union {
#for (A, 0, 64, 1) #for (A, 0, 64, 1)
// please explain this formula !
#local CK = (NormClock*55.00) + (A*0.28); #local CK = (NormClock*55.00) + (A*0.28);
object { Une_Boule () object { Une_Boule ()
#local TX = 3.2 * sin(CK); #local TX = 3.2 * sin(CK);
@@ -164,7 +166,7 @@ union {
#local TZ = 3.0 * cos(1-CK); #local TZ = 3.0 * cos(1-CK);
translate <TX, TY, TZ> translate <TX, TY, TZ>
} }
object { Repere scale 2 } // object { Repere scale 2 }
#end // for #end // for
} }
} }