thi is a really big commit

This commit is contained in:
Tonton Th
2025-10-10 12:52:49 +02:00
parent a5f2e41502
commit 8c60007b71
20 changed files with 136 additions and 78 deletions

View File

@@ -14,17 +14,45 @@
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
// =======================================================
// #include "dynamic.inc"
// =======================================================
#include "trident.inc"
// =======================================================
/* nouveau du 7 octobre 2025 */
#macro Une_Boule ()
sphere {
0, 0.25
#local R = rand(Rng1);
#if (R < 0.333)
pigment { color Red }
#elseif (R < 0.666)
pigment { color Green }
#else
pigment { color Blue }
#end
}
#end // macro
#declare Les_Boules = object
{
union {
#for (A, 0, 12, 1)
object { Une_Boule ()
#local TX = 1.2 * (0.5 - NormClock);
#local TY = 2 * Cos_010(abs(sin(clock)));
#local TZ = 3.31 * cos(NormClock*888);
translate <TX, TY, TZ>
}
#end // for
}
finish { ambient 0 phong 1 }
//translate <-0.5, -0.5, -0.5> // recalage de l'objet fini
scale 1.3333333
}
// =======================================================
#debug " ACTION !!!\n"
// ------------------------------------------------------ ##
// ------------------------------------------------------ ##
#declare Tridents = object
@@ -33,9 +61,9 @@
#local RZ = 96 - (54*Cos_010(NormClock));
union {
object { Trident_A () rotate <RX, 0, RZ>
translate < -1.4, 3, 0> }
translate < -1.4, 1.2, 0> }
object { Trident_A () rotate <0, clock, 0>
translate < 1.4, 2, 0> }
translate < 1.4, 2.0, 0> }
}
}
@@ -44,7 +72,7 @@ union {
#declare Gyros = object
{
union {
#for (I, 0, 359, 60)
#for (I, 0, 359, 30)
#declare E = 9;
#declare Dx = E * sin(radians(I));
#declare Dz = E * cos(radians(I));
@@ -55,42 +83,42 @@ union {
}
// ------------------------------------------------------ ##
object { Gyros }
// object { Gyros }
#declare Selector = mod(int(clock/17), 6);
#declare Selector = mod(int(clock/32), 6);
#debug concat("Selector = ", str(Selector, 6, 0), "\n")
#switch (Selector)
#case (0)
object { Cabane_Compteur scale 2 rotate y*clock }
#debug " Cabane+Compteur !!!\n"
object { Tridents scale 1.2 rotate -y*(clock*0.666) }
#debug " Tridents\n"
#break
#case (1)
object { HexaPole () }
#debug " Hexapole !!!\n"
#debug " Hexapole\n"
#break
#case (2)
object { HexaWood translate y*2 }
#debug " HexaWood !!!\n"
object { HexaWood translate y }
#debug " Hexawood !!!\n"
#break
#case (3)
object { Chose rotate y*clock }
#debug " Chose\n"
#break
#case (4)
object { Chose rotate -y*clock }
#debug " Chose\n"
object { HexaBenz () scale 2 translate 2.7*y rotate -y*clock }
#debug " HexaBenz\n"
#break
#case (5)
object { Horloge }
#debug " Horloge !!!\n"
object { Les_Boules translate y*1.33 }
#debug " boules\n"
#break
#end // switch selector
plane {
y, 0
texture { T_Planete_B scale 0.3333 }
texture { T_Planete_B scale 0.666 }
}
object { Repere translate y*0.8 }
@@ -98,17 +126,17 @@ object { Repere translate y*0.8 }
// =======================================================
#local CamX = -2.7 + (1.8*Cos_010(NormClock));
#local CamY = 0.91 + (1.3*exp(NormClock));
#local CamZ = -5.777 + (0.8*Cos_01(NormClock));
#local CamY = 0.41 + (1.2*exp(NormClock));
#local CamZ = -5.777 + (1.2*Cos_01(NormClock));
#local K = 8.6;
#local CamX = CamX * K;
#local CamY = CamY * K * 0.5;
#local CamY = CamY * K * 0.65;
#local CamZ = CamZ * K;
camera {
orthographic
// orthographic
location <CamX, CamY, CamZ>
look_at <0, 1.4, 0>
angle 26 - 3*Cos_01(NormClock)
angle 12 - 3*Cos_01(NormClock)
}