Compare commits
4 Commits
606536c3f3
...
ffd3f48b9d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffd3f48b9d | ||
|
|
dfedf5f52c | ||
|
|
dd4fe05229 | ||
|
|
0649930f7e |
30
contexte.inc
30
contexte.inc
@@ -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)
|
||||
#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 Kr = 6 - (rand(Rng1)*3);
|
||||
#local Kr = 5 - (rand(Rng1)*2.5);
|
||||
#local Pz = Kr + cos(Angle) * (SzSol * 1.02);
|
||||
#ifdef (DEBUG_LEVEL)
|
||||
#write (Trid, "Def_", Idx, " ", NormClock, " ", Px, " ", Pz, "\n")
|
||||
@@ -310,8 +290,8 @@ union {
|
||||
/* a l'exterieur du 'circular' */
|
||||
#for (foo, 0, 359, 18)
|
||||
#local CK = radians(foo + (9*rand(Rng1)));
|
||||
#local DX = 66 * sin(CK);
|
||||
#local DZ = 64 * cos(CK);
|
||||
#local DX = 76 * sin(CK);
|
||||
#local DZ = 74 * cos(CK);
|
||||
object { Chose () translate < DX, 0, DZ> } // XXX
|
||||
#end
|
||||
}
|
||||
@@ -399,7 +379,7 @@ union {
|
||||
object { Les_GyroPhares () }
|
||||
object { Les_HexaPoles }
|
||||
object { HorlogeDouble rotate y*(27*NormClock)
|
||||
translate < 3, 0, -30> }
|
||||
translate < 8, 0, -30> }
|
||||
object { Les_Choses }
|
||||
object { Les_Arches (1.9) rotate y*132 translate <-34, 0, -26> }
|
||||
|
||||
|
||||
@@ -244,9 +244,9 @@ union {
|
||||
object { Repere translate y*1 }
|
||||
#break
|
||||
#case (4)
|
||||
object { Trident_A ()
|
||||
scale 1.8
|
||||
rotate <35, 0, 12> translate 2.6*y
|
||||
object { Blob_Boxed
|
||||
scale 4.000
|
||||
rotate <7, 0, 12> translate 3.7*y
|
||||
rotate -y*(clock*2) }
|
||||
#break
|
||||
#case (5)
|
||||
|
||||
55
gadgets.inc
55
gadgets.inc
@@ -111,6 +111,33 @@ union {
|
||||
#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
|
||||
{
|
||||
#local Texte = str(NormClock, 6, 3);
|
||||
@@ -130,19 +157,19 @@ translate <-4.5, 0.046, 0>
|
||||
#local Horloge2 = object
|
||||
{
|
||||
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
|
||||
{
|
||||
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 } }
|
||||
#local EC = 0.19;
|
||||
#local EC = 0.12;
|
||||
object { Horloge2 rotate y*180 translate z*EC }
|
||||
object { Horloge2 translate -z*EC }
|
||||
}
|
||||
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 }
|
||||
|
||||
/* en bas */
|
||||
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 }
|
||||
|
||||
/* 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 }
|
||||
}
|
||||
#end
|
||||
// ------------------------------------------------------ ##
|
||||
#declare Blob_Boxed = object
|
||||
{
|
||||
union {
|
||||
object { OpenBox(0.5, 0.01) }
|
||||
object { HexaBlob }
|
||||
}
|
||||
}
|
||||
// =======================================================
|
||||
/*
|
||||
* first written macro for testing the generation of
|
||||
|
||||
@@ -17,14 +17,14 @@ object { Le_Decor }
|
||||
|
||||
// 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 {
|
||||
location LOC
|
||||
look_at LAT
|
||||
right <image_width/image_height, 0, 0>
|
||||
angle 18 + 2.72*NormClock
|
||||
angle 20 + 2.87*NormClock
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user