Compare commits

...

4 Commits

Author SHA1 Message Date
Tonton Th
ffd3f48b9d moving Blob_Boxed to the right file 2026-02-16 18:22:43 +01:00
Tonton Th
dfedf5f52c fine tuning 2026-02-16 18:10:58 +01:00
Tonton Th
dd4fe05229 radical change of the camera position 2026-02-16 12:44:06 +01:00
Tonton Th
0649930f7e hexablob + openbox -> boxed_blob 2026-02-15 16:12:53 +01:00
4 changed files with 62 additions and 35 deletions

View File

@@ -193,26 +193,6 @@ union {
} }
} }
} }
/* ------------------------------------------------------------ */
#declare RHBlo = 0.24;
#declare RHBlo2 = RHBlo * 0.666;
#declare HexaBlob = object
{
blob {
// threshold 0.01 + NormClock
threshold 0.01
sphere { <0, 0, 0>, RHBlo, 1 }
#local E = RHBlo * 1.210;
#local W = 0.15;
sphere { <-E, 0, 0>, RHBlo2, W }
sphere { < E, 0, 0>, RHBlo2, W }
sphere { < 0, -E, 0>, RHBlo2, W }
sphere { < 0, E, 0>, RHBlo2, W }
sphere { < 0, 0, -E>, RHBlo2, W }
sphere { < 0, 0, E>, RHBlo2, W }
}
}
/* ======================================================= */ /* ======================================================= */
@@ -228,9 +208,9 @@ blob {
#for (Idx, 0, 5) #for (Idx, 0, 5)
#local Angle = (Idx + 0.19) * 1.09; // magic numbers ? #local Angle = (Idx + 0.19) * 1.09; // magic numbers ?
#local Kr = 6 - (rand(Rng1)*3); #local Kr = 5 - (rand(Rng1)*2.5);
#local Px = Kr + sin(Angle) * (SzSol * 0.98); #local Px = Kr + sin(Angle) * (SzSol * 0.98);
#local Kr = 6 - (rand(Rng1)*3); #local Kr = 5 - (rand(Rng1)*2.5);
#local Pz = Kr + cos(Angle) * (SzSol * 1.02); #local Pz = Kr + cos(Angle) * (SzSol * 1.02);
#ifdef (DEBUG_LEVEL) #ifdef (DEBUG_LEVEL)
#write (Trid, "Def_", Idx, " ", NormClock, " ", Px, " ", Pz, "\n") #write (Trid, "Def_", Idx, " ", NormClock, " ", Px, " ", Pz, "\n")
@@ -310,8 +290,8 @@ union {
/* a l'exterieur du 'circular' */ /* a l'exterieur du 'circular' */
#for (foo, 0, 359, 18) #for (foo, 0, 359, 18)
#local CK = radians(foo + (9*rand(Rng1))); #local CK = radians(foo + (9*rand(Rng1)));
#local DX = 66 * sin(CK); #local DX = 76 * sin(CK);
#local DZ = 64 * cos(CK); #local DZ = 74 * cos(CK);
object { Chose () translate < DX, 0, DZ> } // XXX object { Chose () translate < DX, 0, DZ> } // XXX
#end #end
} }
@@ -399,7 +379,7 @@ union {
object { Les_GyroPhares () } object { Les_GyroPhares () }
object { Les_HexaPoles } object { Les_HexaPoles }
object { HorlogeDouble rotate y*(27*NormClock) object { HorlogeDouble rotate y*(27*NormClock)
translate < 3, 0, -30> } translate < 8, 0, -30> }
object { Les_Choses } object { Les_Choses }
object { Les_Arches (1.9) rotate y*132 translate <-34, 0, -26> } object { Les_Arches (1.9) rotate y*132 translate <-34, 0, -26> }

View File

@@ -244,9 +244,9 @@ union {
object { Repere translate y*1 } object { Repere translate y*1 }
#break #break
#case (4) #case (4)
object { Trident_A () object { Blob_Boxed
scale 1.8 scale 4.000
rotate <35, 0, 12> translate 2.6*y rotate <7, 0, 12> translate 3.7*y
rotate -y*(clock*2) } rotate -y*(clock*2) }
#break #break
#case (5) #case (5)

View File

@@ -111,6 +111,33 @@ union {
#end // macro #end // macro
/* ======================================================= */ /* ======================================================= */
/* ------------------------------------------------------------ */
#declare HexaBlob = object
{
#declare RHBlo = 0.24;
#declare RHBlo2 = RHBlo * 0.777;
blob {
// threshold 0.01 + NormClock
threshold 0.07
sphere { <0, 0, 0>, RHBlo, 1 }
#local E = RHBlo * 1.210; // XXX
#local W = 0.15;
sphere { <-E, 0, 0>, RHBlo2, W }
sphere { < E, 0, 0>, RHBlo2, W }
sphere { < 0, -E, 0>, RHBlo2, W }
sphere { < 0, E, 0>, RHBlo2, W }
sphere { < 0, 0, -E>, RHBlo2, W }
sphere { < 0, 0, E>, RHBlo2, W }
}
texture { T_WIP_bluewave scale 0.21 rotate <clock, clock/2, clock/3> }
}
/* ======================================================= */
#declare Horloge = object #declare Horloge = object
{ {
#local Texte = str(NormClock, 6, 3); #local Texte = str(NormClock, 6, 3);
@@ -130,19 +157,19 @@ translate <-4.5, 0.046, 0>
#local Horloge2 = object #local Horloge2 = object
{ {
object { Horloge scale <1, 0.28, 1> rotate -x*90 object { Horloge scale <1, 0.28, 1> rotate -x*90
translate <0.442, 0.14, 0> } translate <0.802, 0.18, 0> }
} }
#declare HorlogeDouble = object #declare HorlogeDouble = object
{ {
union { union {
box { <-3.20, 0.0, -0.07>, <3.20, 1.64, 0.07> box { <-3.20, 0.0, -0.07>, <3.20, 1.68, 0.07>
texture { LeGris } } texture { LeGris } }
#local EC = 0.19; #local EC = 0.12;
object { Horloge2 rotate y*180 translate z*EC } object { Horloge2 rotate y*180 translate z*EC }
object { Horloge2 translate -z*EC } object { Horloge2 translate -z*EC }
} }
scale 0.51 scale 0.51
translate y*1.35 translate y*0.999
} }
// ======================================================= // =======================================================
/* /*
@@ -220,6 +247,7 @@ union {
cylinder { < D, -D, -D>, < D, D, -D>, R } cylinder { < D, -D, -D>, < D, D, -D>, R }
cylinder { <-D, -D, D>, <-D, D, D>, R } cylinder { <-D, -D, D>, <-D, D, D>, R }
cylinder { < D, -D, D>, < D, D, D>, R } cylinder { < D, -D, D>, < D, D, D>, R }
/* en bas */ /* en bas */
cylinder { < D, -D, D>, <-D, -D, D>, R } cylinder { < D, -D, D>, <-D, -D, D>, R }
cylinder { < D, -D, -D>, <-D, -D, -D>, R } cylinder { < D, -D, -D>, <-D, -D, -D>, R }
@@ -232,9 +260,28 @@ union {
cylinder { <-D, D, D>, <-D, D, -D>, R } cylinder { <-D, D, D>, <-D, D, -D>, R }
cylinder { < D, D, D>, < D, D, -D>, R } cylinder { < D, D, D>, < D, D, -D>, R }
/* les 8 coins */
#local R2 = R * 1.38;
sphere { <-D, -D, -D>, R2 }
sphere { < D, -D, -D>, R2 }
sphere { <-D, -D, D>, R2 }
sphere { < D, -D, D>, R2 }
sphere { <-D, D, -D>, R2 }
sphere { < D, D, -D>, R2 }
sphere { <-D, D, D>, R2 }
sphere { < D, D, D>, R2 }
texture { Soft_Silver scale 6.50 } texture { Soft_Silver scale 6.50 }
} }
#end #end
// ------------------------------------------------------ ##
#declare Blob_Boxed = object
{
union {
object { OpenBox(0.5, 0.01) }
object { HexaBlob }
}
}
// ======================================================= // =======================================================
/* /*
* first written macro for testing the generation of * first written macro for testing the generation of

View File

@@ -17,14 +17,14 @@ object { Le_Decor }
// object { Repere translate <10, 1, 10> } // object { Repere translate <10, 1, 10> }
#declare LOC = <19-NormClock, 1.60, 15.5-NormClock>; #declare LOC = <-3.4 - NormClock, 1.60, 31.9-NormClock>;
#declare LAT = <P_hexawood.x, 0.95+(NormClock*0.1), P_hexawood.z>; #declare LAT = <P_hexawood.x, 0.95+(NormClock*0.11), P_hexawood.z>;
camera { camera {
location LOC location LOC
look_at LAT look_at LAT
right <image_width/image_height, 0, 0> right <image_width/image_height, 0, 0>
angle 18 + 2.72*NormClock angle 20 + 2.87*NormClock
} }