commit big mess before refactoring

This commit is contained in:
Tonton Th
2025-03-07 10:51:57 +01:00
parent f417711da3
commit c65090e4a2
18 changed files with 233 additions and 100 deletions

View File

@@ -11,35 +11,48 @@
#include "contexte.inc"
#include "elements.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// =======================================================
#for (idX, 0, 5)
#for (idZ, 0, 5)
#include "dynamic.inc"
#local posX = (idX * 4.72) - 11.6 + (rand(Rng1)-0.5);
#for (idX, -3, 3)
#for (idZ, -3, 3)
#local posX = (idX * 4.72) + (rand(Rng1)-0.5);
#local posY = 3.1 + (1.2*(rand(Rng1)-0.5));
#local posZ = (idZ * 4.37) - 7.9;
#local posZ = (idZ * 4.37) ;
#local Rx = (rand(Rng1) - 0.5) * 8;
#local Ry = (rand(Rng1) - 0.5) * 14;
#local Rz = (rand(Rng1) - 0.5) * 11;
#if (rand(Rng1) < 0.515)
object { HexaCone ()
rotate <Rx, Ry, Rz>
// #debug concat("X ", str(posX,7,3), " Z ", str(posZ,7,3), "\n")
// #debug concat("position Z ", str(posZ,7,3),"\n")
#if ( (abs(posX)>1) & (abs(posZ)>0.5) )
#if (rand(Rng1) < 0.555)
object { HexaCone () rotate <Rx, Ry, Rz>
translate <posX, posY, posZ> }
#else
object { HexaBenz ()
rotate <Rx, Ry, Rz>
object { HexaBenz () rotate <Rx, Ry, Rz>
translate <posX, posY, posZ> }
#end
#end
#end
// #debug "\n"
#end // if pos...
#end // loop IDX
#end //loop idZ
// =======================================================
object { Le_Decor }
// object { Repere scale 5 translate y }
// object { Repere scale 5 translate y }
#local CamX = -8.7 + (6.6*Cos_01(NormClock));
#local CamY = 2.95 + (18.64*Cos_01(NormClock));
@@ -48,5 +61,5 @@ object { Le_Decor }
camera {
location <CamX, CamY, CamZ>
look_at <0.0, -NormClock, 0>
angle 60 - (3.97 * NormClock)
angle 64 - (3.97 * NormClock)
}