Easter Egg commit (big!)

This commit is contained in:
Tonton Th
2026-04-05 00:27:54 +02:00
parent c9dba8d6aa
commit 43f58d9ce9
30 changed files with 241 additions and 186 deletions

View File

@@ -12,17 +12,17 @@ union {
#local R2 = R * 2.33;
#local LC = 1.15;
merge {
cylinder { 0, <1, 0, 0>, R }
cylinder { -0.1*x, <1, 0, 0>, R }
cone { <1, 0, 0>, R2, <LC, 0, 0>, 0 }
texture { R_Texture }
}
merge {
cylinder { 0, <0, 1, 0>, R }
cylinder { -0.1*y, <0, 1, 0>, R }
cone { <0, 1, 0>, R2, <0, LC, 0>, 0 }
texture { G_Texture }
}
merge {
cylinder { 0, <0, 0, 1>, R }
cylinder { -0.1*z, <0, 0, 1>, R }
cone { <0, 0, 1>, R2, <0, 0, LC>, 0 }
texture { B_Texture }
}
@@ -143,17 +143,16 @@ texture { T_WIP_bluewave scale 0.21 rotate <clock, clock/2, clock/3> }
#declare Horloge = object
{
#local Texte = str(NormClock, 6, 3);
#local Texte = str(NormClock, 5, 2);
#debug concat("Texte horloge ", Texte, "\n\n")
text {
// ttf "datas/DSEG7Classic-Regular.ttf" Texte 0.1, 0
ttf "datas/ComicMono-Bold.ttf" Texte 0.1, 0
texture { tPlasticBlue }
ttf "datas/dotmatrx.ttf" Texte 0.15, 0
texture { tPlasticGreen }
}
scale 1.96
scale <1.76, 1.70, 1.76>
rotate 90*x
translate <-4.5, 0.046, 0>
translate <-4.3, 0.046, 0>
}
// ----------------------------------------------------------
// nouveau du 3 janvier 2026
@@ -198,12 +197,57 @@ prism {
*/
}
#end // macro
// ------------------------------------------------------ ##
/* nouveau du 31 mars 2026, aux Bourtoulots
*
*/
#macro HexaPole_abatjour (Quux)
union {
#local Raj = 0.333;
torus { Raj, 0.018 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.013 translate <DX, 0, DZ> }
#end // for
torus { Raj, 0.02 translate y*Quux }
rotate y*(clock*0.40*(rand(Rng1)-0.59))
}
#end // macro
#macro HexaPole_mat_lampe (Height)
union {
union {
cylinder { 0, y*Height, 0.061 }
#local Val = 0.09+(0.09*rand(Rng1));
object { HexaPole_abatjour (Val)
translate y*(Height+0.073) }
texture { LeGris }
}
#local P = y*(Height+0.097);
#if (rand(Rng1) < 0.30)
#local Val = 0.25 + 0.5*rand(Rng1);
light_source {
P rgb <0.80, 0.25+(0.5*rand(Rng1)), 0.99>
fade_distance 3.80
fade_power 1.55
}
#else
sphere {
P, 0.080
texture { C_Texture }
}
#end // if
}
#end // macro
// ------------------------------------------------------ ##
#macro HexaPole_tubes ()
#local R = 0.033;
#local E = 0.49;
#local H = H_cone*0.666;
#local E = 0.51;
#local H = H_cone*0.50;
union {
#for (A, 0, 359, 60)
#local Xp = E * cos(radians(A));
@@ -223,7 +267,6 @@ union {
}
#end
}
#undef E
#undef H
#undef R
@@ -238,7 +281,8 @@ union {
union {
object { Base_hexapole () scale <0.24, 0.2, 0.24> }
object { HexaPole_tubes () translate y*0.15 }
rotate y*(53*rand(Rng1))
HexaPole_mat_lampe (2.42 + rand(Rng1))
rotate y*(73*rand(Rng1))
}
#end // macro