add ConeStack

This commit is contained in:
Tonton Th 2025-12-18 22:26:31 +01:00
parent f2e324e038
commit 38d3863124

View File

@ -17,6 +17,34 @@
// XXX // XXX
#include "xperiment.inc" #include "xperiment.inc"
// XXX // XXX
// =======================================================
/*
* new Thu Dec 18 01:14:19 AM UTC 2025
*/
#macro Le_ConeStack ()
union {
#local Hcs = 0.50;
#local Rco = R_basecone * 1.95;
#for (Foo, 0, 6)
#local Dy = Foo * 0.580;
union {
cone { 0, Rco, <0, Hcs, 0>, 0.0001
#if (rand(Rng1) < 0.50) texture { Y_Texture }
#else texture { M_Texture }
#end // if rand
}
cylinder { 0, -0.08*y, Rco
#if (rand(Rng1) < 0.50) texture { R_Texture }
#else texture { G_Texture }
#end // if rand
}
translate y * Dy
}
#end // for Foo
}
#end // macro
// ======================================================= // =======================================================
/* nouveau du 20 octobre 2025 /* nouveau du 20 octobre 2025
* Un semblant de wagonnet qui va tourner sur le * Un semblant de wagonnet qui va tourner sur le
@ -29,8 +57,8 @@
union { union {
object { Wagonnet_0(L) translate <0, 1, 1.6> } object { Wagonnet_0(L) translate <0, 1, 1.6> }
object { Wagonnet_0(L+1) translate <0, 1+NormClock, 0> } object { Wagonnet_0(L+1) translate <0, 2+NormClock, 0> }
object { Wagonnet_0(L) translate <0, 1, -1.6> } object { Wagonnet_0(L) translate <0, 1, -1.8> }
} }
} }
@ -145,33 +173,28 @@ object { Gyros }
// ------------------------------------------------------ ## // ------------------------------------------------------ ##
#declare Selector = mod(int(clock/60)+19, 8); #declare Selector = mod(int(clock/60)+20, 8);
#debug concat("Selector = ", str(Selector, 6, 0), "\n") #debug concat("Selector = ", str(Selector, 6, 0), "\n")
#declare AngleCam = 17 - 3*Cos_01(NormClock); #declare AngleCam = 17 - 3*Cos_01(NormClock);
#switch (Selector) #switch (Selector)
#case (0) #case (0)
union { object { Une_Arche (0.333) scale 2 }
object { OpenBox(1, 0.03) }
object { OpenBox(0.55, 0.03)
translate
<0.4*rand(Rng1), NormClock*1.2, 2*cos(NormClock*9)> }
translate y*2.1
}
#break #break
#case (1) #case (1)
object { Les_Arches (1.57) rotate -y*(clock*0.666) } object { Les_Arches (1.57) rotate -y*(clock*0.666) }
#declare AngleCam = 22; #declare AngleCam = 22;
#break #break
#case (2) #case (2)
object { HexaPole () translate y } object { Le_ConeStack () translate y*0.20 }
#break #break
#case (3) #case (3)
object { Des_Choses } object { Des_Choses }
#break #break
#case (4) #case (4)
object { HexaWood scale 2 translate 0.7*y rotate -y*clock } object { Trident rotate <30, 0, 30> translate 0.7*y
rotate -y*clock }
#break #break
#case (5) #case (5)
object { Les_Boules translate y*0.8 } object { Les_Boules translate y*0.8 }
@ -180,7 +203,7 @@ object { Gyros }
object { Les_Wagonnets rotate y*(clock) } object { Les_Wagonnets rotate y*(clock) }
#break #break
#case (7) #case (7)
#local Pos = <0, 0, 0>; #local Pos = <0.5-NormClock, 0, 0>;
object { BasicTextures rotate -y*clock translate Pos } object { BasicTextures rotate -y*clock translate Pos }
#break #break