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
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
// ===========================================================
#declare SzC = 0.3;
#declare SzC = 0.333;
#macro Base_Col_A ()
merge {
box { <-SzC, 0, -SzC>, <SzC, 0.222, SzC> }
@@ -49,7 +49,7 @@ difference {
// -----------------------------------------------------------
#macro Fut_Col_A (H)
object {
cylinder { 0, H*y, 0.15 }
cylinder { 0, H*y, SzC * 0.50 }
#local R = rand(Rng1);
#if (R < 0.43)
texture { T_Stone29 }
@@ -73,7 +73,7 @@ union {
#macro Linteau_A (Lg, Epp)
merge {
#local L = Lg + 0.42;
#local K = 0.28;
#local K = 0.30;
box { <-L, 0, -K>, <L, Epp, K> }
cylinder { <0, Epp, -K*0.9>, <0, Epp, K*0.9>, K }
#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 CamZ = -0.85 + (2.02*NormClock);
#local CamZ = -0.85 + (2.12*NormClock);
camera {
location <CamX, CamY, CamZ>
look_at <0, 1.5, 0> + POS_Cutoff
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
{
union {
#local EC = SzSol + 175;
#local EC = SzSol + 195;
/* les coins */
object { Jalon_0 (0.5, 8, LeGris) translate <-EC, 0, -EC> }
object { Jalon_0 (0.5, 8, LeGris) translate < EC, 0, -EC> }
object { Jalon_0 (0.5, 8, 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, 18, LeGris) translate < EC, 0, -EC> }
object { Jalon_0 (0.5, 18, LeGris) translate <-EC, 0, EC> }
object { Jalon_0 (0.5, 18, LeGris) translate < EC, 0, EC> }
/* les milieux des cotés */
object { Jalon_0 (0.5, 6, LeGris) translate < 0, 0, -EC> }
object { Jalon_0 (0.6, 6, LeGris) translate < 0, 0, EC> }
object { Jalon_0 (0.5, 6, LeGris) translate < EC, 0, 0> }
object { Jalon_0 (0.6, 6, LeGris) translate <-EC, 0, 0> }
object { Jalon_0 (0.5, 6, T_Beton_1) translate < 0, 0, -EC> }
object { Jalon_0 (0.6, 6, T_Beton_1) translate < 0, 0, EC> }
object { Jalon_0 (0.9, 6, T_Beton_2) translate < EC, 0, 0> }
object { Jalon_0 (0.6, 6, T_Beton_1) translate <-EC, 0, 0> }
}
}
/* ======================================================= */

View File

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

View File

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

View File

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

View File

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

View File

@@ -26,7 +26,7 @@ camera {
look_at Loc_Patrouille
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 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 {
location <CamX, 2.10, CamZ>

View File

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

View File

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

View File

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