big revamping, part 1

This commit is contained in:
Tonton Th 2026-01-02 21:15:55 +01:00
parent f5b2e1c227
commit a575e428b2
26 changed files with 148 additions and 189 deletions

24
all.inc
View File

@ -0,0 +1,24 @@
/*
* Tous les includes dans le bon ordre
*/
#debug "+++++++++++++++++++++++++++ DEBUT ALL\n"
// tous les petits elements
#include "gadgets.inc"
// les hexatrucs qui sont OK
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// les machins avec des bugs
// #include "hexastar.inc"
// les constructions en chantier
#include "xperiment.inc"
#include "contexte.inc"
#debug "+++++++++++++++++++++++++++ FIN ALL\n"

View File

@ -8,12 +8,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
object { Le_Decor } object { Le_Decor }

View File

@ -7,13 +7,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
// ======================================================= // =======================================================

View File

@ -9,14 +9,9 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "xperiment.inc"
#include "dynamic.inc"
// ---------------------------------------------------------
// --------------------------------------------------------- // ---------------------------------------------------------
// dessiner une grille // dessiner une grille

View File

@ -7,15 +7,9 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "gadgets.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// ======================================================= // =======================================================
#include "dynamic.inc"
object { Le_Decor } object { Le_Decor }

View File

@ -6,9 +6,7 @@
/* ======================================================= */ /* ======================================================= */
#include "groundbase.inc" #debug "+++++++++++++++++++++ debut contexte\n"
#include "xperiment.inc"
#include "gadgets.inc"
/* ======================================================= */ /* ======================================================= */
/* /*
@ -210,11 +208,11 @@ blob {
/* ======================================================= */ /* ======================================================= */
/*
* on déclare et rempli le tableau avec la place des trous
*/
#declare UnderHoles = array[6] #declare UnderHoles = array[6]
/*
* on rempli le tableau avec la place des trous
*/
#for (Idx, 0, 5) #for (Idx, 0, 5)
#local Angle = (Idx + 0.19) * 1.090; #local Angle = (Idx + 0.19) * 1.090;
#local Px = sin(Angle) * (SzSol * 0.97); #local Px = sin(Angle) * (SzSol * 0.97);
@ -336,7 +334,7 @@ sky_sphere {
color_map { color_map {
[ 0.2 color Gray20 ] [ 0.2 color Gray20 ]
[ 0.4 color rgb <.5, .45, .4> ] [ 0.4 color rgb <.5, .45, .4> ]
[ 0.7 color Gray40 ] [ 0.7 color Gray50 ]
[ 0.9 color rgb <.5, .5, .45> ] [ 0.9 color rgb <.5, .5, .45> ]
[ 1.0 color Gray20 ] [ 1.0 color Gray20 ]
} }
@ -356,7 +354,10 @@ sky_sphere {
{ {
union { union {
object { Underground } object { Underground }
#include "groundbase.inc"
object { La_GroundBase } object { La_GroundBase }
object { RoundBase_0 (T_Beton_1) object { RoundBase_0 (T_Beton_1)
translate <RedB_0_X, 0, RedB_0_Z> } translate <RedB_0_X, 0, RedB_0_Z> }
object { RoundBase_0 (T_Beton_2) object { RoundBase_0 (T_Beton_2)
@ -379,9 +380,10 @@ union {
object { OpenBox(1.5, 0.06) translate <-19, 1.49, -88> } object { OpenBox(1.5, 0.06) translate <-19, 1.49, -88> }
object { OpenBox(1.5, 0.06) translate <-18, 1.52, -104> } object { OpenBox(1.5, 0.06) translate <-18, 1.52, -104> }
object { OpenBox(1.5, 0.06) translate <-19, 1.52, -134> } object { OpenBox(1.5, 0.06) translate <-19, 1.52, -134> }
object { Les_Cahutes () translate <29, 0, -79> }
object { Les_Cahutes () translate <31, 0, -91> } #for (Foo, 0, 5)
object { Les_Cahutes () translate <20, 0, -104> } object { Les_Cahutes () translate <29, 0, -(77+Foo*9)> }
#end // for
} }
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */

View File

@ -7,13 +7,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
// ======================================================= // =======================================================

View File

@ -1,12 +1,38 @@
/* /*
*/ */
// =======================================================
// rajout d'une patrouille en vol
// 2 janvier 2026
#local CK = clock / 150; // en radians
#local RD = 63; // rayon deplacement
#local Xp = RD * sin(CK);
#local Zp = RD * cos(CK);
object {
#local L2 = 10;
#if (0)
union {
cylinder { <-L2, 0, 0>, <L2, 0, 0>, 0.4 }
cylinder { -y*3, y*3, 0.4 }
texture { Y_Texture }
}
#else object { Patrouille rotate 90*y }
#end
rotate y*degrees(CK)
translate <Xp, 36, Zp>
translate <-30, 0, 0>
}
// ======================================================= // =======================================================
// on va tenter de placer quelques trucs // on va tenter de placer quelques trucs
// qui bougent sur le rail circulaire // qui bougent sur le rail circulaire
#for (foo, 0, 5) #for (foo, 0, 5)
#local CK = (NormClock+(foo*0.0197)) * 4.02; // radians #local CK = (NormClock+(foo*0.0204)) * 4.02; // radians
#declare Xpos = R_circular * sin(CK); #declare Xpos = R_circular * sin(CK);
#declare Zpos = R_circular * cos(CK); #declare Zpos = R_circular * cos(CK);
#declare AR = degrees(CK); #declare AR = degrees(CK);
@ -58,7 +84,7 @@ union {
} }
} }
object { BiTrident object { BiTrident
rotate y*(570*Cos_01(NormClock)) rotate y*(670*Cos_01(NormClock))
translate Pos_RedB_2 + (y*2) translate Pos_RedB_2 + (y*2)
} }
@ -119,6 +145,8 @@ object { HexaBenz ()
#local R = 16.64 * cos(K); #local R = 16.64 * cos(K);
#local H = 0.52 * pow(sin(K), 3); #local H = 0.52 * pow(sin(K), 3);
#declare P_hexawood = P + <0, 0.26+H, 0>; #declare P_hexawood = P + <0, 0.26+H, 0>;
#debug "+++++++++++++ P_hexawood defined\n"
object { HexaWood rotate z*R translate P_hexawood } object { HexaWood rotate z*R translate P_hexawood }
/* /*

View File

@ -8,12 +8,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "xperiment.inc"
// ======================================================= // =======================================================

View File

@ -7,18 +7,13 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "gadgets.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// XXX // XXX
#include "xperiment.inc"
// XXX // XXX
// ======================================================= // =======================================================
// nouveau du dernier jour 2025 // nouveau du dernier jour 2025
#include "hexastar.inc" #include "hexastar.inc"
#declare Une_HexaStar = object #declare Une_HexaStar = object
@ -27,26 +22,6 @@ object { HexaStar translate y*3 }
} }
// ======================================================= // =======================================================
/*
* new Tue Dec 30 07:39:09 AM UTC 2025
*/
#declare Patrouille = object
{
union {
#local EX = 2.3;
#local EZ = 2.7;
object { Trident_A () rotate x*87 }
object { HexaBenz () translate <-EX, 0, -EZ> }
object { HexaCone () translate < EX, -0.2, -EZ> }
object { HexaBenz () translate <-EX*2, 0, -EZ*2> }
object { HexaCone () translate < EX*2, -0.2, -EZ*2> }
object { Repere scale 2 translate y*3.4 }
}
}
// ======================================================= // =======================================================
/* /*
* new Thu Dec 18 01:14:19 AM UTC 2025 * new Thu Dec 18 01:14:19 AM UTC 2025
@ -268,7 +243,7 @@ object { Gyros }
light_source { light_source {
<-18, 54, -7> <-18, 54, -7>
colour Gray40 colour Gray50
parallel parallel
point_at 0 point_at 0
} }
@ -282,7 +257,7 @@ object { Gyros }
#switch (Selector) #switch (Selector)
#case (0) #case (0)
object { BasicTextures rotate -y*3*clock) } object { Des_Choses }
#break #break
#case (1) #case (1)
object { Patrouille rotate -y*(clock*0.666) object { Patrouille rotate -y*(clock*0.666)
@ -293,12 +268,12 @@ object { Gyros }
object { Le_ConeStack () translate y*0.20 } object { Le_ConeStack () translate y*0.20 }
#break #break
#case (3) #case (3)
object { Des_Choses } object { BasicTextures rotate -y*(3*clock) }
#break #break
#case (4) #case (4)
object { Trident_A() object { Trident_A()
scale 2 scale 1.8
rotate <20, 0, 10> translate 2.1*y rotate <20, 0, 10> translate 2.2*y
rotate -y*clock } rotate -y*clock }
#break #break
#case (5) #case (5)
@ -333,6 +308,8 @@ plane {
#local CamY = CamY * K * 0.61; #local CamY = CamY * K * 0.61;
#local CamZ = CamZ * K; #local CamZ = CamZ * K;
camera { camera {
location <CamX, CamY, CamZ> location <CamX, CamY, CamZ>
look_at <0, 1.6, 0> look_at <0, 1.6, 0>

View File

@ -148,14 +148,15 @@ finish {
} }
} }
/* new: 28 octobre 2025 */ /* ------------------------------------------------------------ */
/* new: 28 octobre 2025 */
#declare Ground_Texture = texture #declare Ground_Texture = texture
{ {
pigment { rgb <0.31, 0.33, 0.24> } pigment { rgb <0.31, 0.33, 0.24> }
normal { dents 0.22 scale 1.666} normal { dents 0.22 scale 1.666}
finish { finish {
ambient 0 specular 0.3 metallic roughness 0.18 ambient 0 specular 0.3 metallic roughness 0.33
reflection { 0.4 metallic } reflection { 0.23 metallic }
} }
} }

View File

@ -112,8 +112,8 @@ texture { T_Grnt7 rotate 49 scale 0.333 }
#declare GroudBase_coin = object #declare GroudBase_coin = object
{ {
merge { merge {
cylinder { 0, y*0.5, 0.12 } cylinder { 0, y*0.5, 0.14 }
sphere { 0, 0.12 scale <1, 0.25, 1> translate y*0.5 } sphere { 0, 0.14 scale <1, 0.25, 1> translate y*0.5 }
} }
} }

View File

@ -6,14 +6,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
// ======================================================= // =======================================================

View File

@ -6,12 +6,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
object { Le_Decor } object { Le_Decor }

View File

@ -8,11 +8,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc" #include "dynamic.inc"

View File

@ -6,9 +6,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
// ======================================================= // =======================================================
#declare R_planete = 1.45; #declare R_planete = 1.45;

View File

@ -7,18 +7,11 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "gadgets.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "xperiment.inc"
// ======================================================= // =======================================================
object { Le_Decor }
#include "dynamic.inc" object { Le_Decor }
// ======================================================= // =======================================================

View File

@ -7,15 +7,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// ---------------------------------------
#include "dynamic.inc"
#declare PosX = 3.95; #declare PosX = 3.95;
#declare PosY = 3.80 + (NormClock*0.299); #declare PosY = 3.80 + (NormClock*0.299);

View File

@ -7,28 +7,24 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#declare A = <-SzSol, 16, -8>; #declare A = <-SzSol, 16, -8>;
#declare B = <SzSol+4, 18, -11>; #declare B = <SzSol+4, 18, -11>;
#declare P = Interpolate(A, B, NormClock); #declare P = Interpolate(A, B, NormClock);
object { HexaCone () rotate y*((6*NormClock)+80) translate P } object { HexaCone () rotate y*((6*NormClock)+80) translate P }
#include "dynamic.inc"
object { HexaBenz () rotate y*(clock/9) translate <-9, 3, 7> } object { HexaBenz () rotate y*(clock/9) translate <-9, 3, 7> }
// --------------------------------------------------------- // ---------------------------------------------------------
// WTF is that ??? XXX // WTF is that ??? XXX
#if (0)
#declare A = <-15, -1.9, SzSol>; #declare A = <-15, -1.9, SzSol>;
#declare B = < 23, -0.7, SzSol>; #declare B = < 23, -0.7, SzSol>;
#declare P = Interpolate(A, B, NormClock); #declare P = Interpolate(A, B, NormClock);
object { HexaWood scale 10 translate P } object { HexaWood scale 10 translate P }
#end
// --------------------------------------------------------- // ---------------------------------------------------------

View File

@ -7,13 +7,7 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
// --------------------------------------------------------- // ---------------------------------------------------------

View File

@ -9,39 +9,34 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
object { Le_Decor } object { Le_Decor }
// ======================================================= // =======================================================
#declare Spline_1 = #declare Spline_1 =
spline { spline {
cubic_spline cubic_spline
-0.2, <-2, 1.0, -2>, // control point -0.2, <-2, 1.0, -3>, // control point
0.0, < 0, 1.3, -2>, // start point 0.0, <-0.5, 1.3, -2.7>, // start point
0.2, < 2, 1.0, -1>, 0.2, < 2.0, 1.0, -1.0>,
0.4, < 1, 1.5, 0>, 0.4, < 1.0, 1.5, 0.0>,
0.6, < 0, 2.2, 0>, 0.6, < 0.0, 2.2, 0.1>,
0.8, <-1, 0.9, 1>, 0.8, <-1.1, 1.6, 1.1>,
1.0, < 2, 1.0, 2>, // end point 1.0, < 2.0, 1.0, 2.0>, // end point
1.2, < 4, 1.0, 2> // control point 1.2, < 4, 1.0, 2> // control point
} }
#local Scaler = <2, 1, 3>; #local Scaler = <2, 1, 3>; // XXX please explain
#declare ViewSpline = object #declare ViewSpline = object
{ {
union { union {
#for (CK, 0.00, 1.00, 0.0017) #for (CK, 0.00, 1.00, 0.0021)
sphere { <0,0,0>, 0.022 sphere { <0,0,0>, 0.023
texture{ texture{
pigment {color rgb <0.20, 0.14, 0.14> } pigment {color rgb <0.20, 0.24, 0.14> }
finish {ambient 0.15 diffuse 0.85 phong 0.6 } finish {ambient 0.15 diffuse 0.85 phong 0.6 }
} }
translate (Scaler * Spline_1(CK)) translate (Scaler * Spline_1(CK))
@ -60,7 +55,7 @@ union {
union { union {
object { ViewSpline } object { ViewSpline }
#declare P1 = Scaler * Spline_1(V1); #declare P1 = Scaler * Spline_1(V1);
#declare P2 = <1, -1.3, 0.1> + (0.95 * Scaler * Spline_1(V2)); #declare P2 = <1, -1.3, 0.2> + (0.95 * Scaler * Spline_1(V2));
sphere { sphere {
0, 0.06 0, 0.06
texture { B_Texture } texture { B_Texture }

View File

@ -7,19 +7,10 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// =======================================================
#include "dynamic.inc"
object { Le_Decor } object { Le_Decor }
object { Repere scale 2 translate y*2 }
// ======================================================= // =======================================================
@ -29,12 +20,15 @@ object { Repere scale 2 translate y*2 }
#declare PosCam = Interpolate(Debut, Fin, Pos); #declare PosCam = Interpolate(Debut, Fin, Pos);
#declare LatX = 0.414 * sin(NormClock*6.1); #declare LatX = 0.414 * sin(NormClock*6.1);
#declare LatCam = PosCam + <LatX, -20, -(4+(NormClock+11))>; #declare LatZ = -9 + (NormClock+11);
#declare LatCam = PosCam + <LatX, 1, LatZ>;
//
object { Repere scale 2 translate LatCam }
camera { camera {
location PosCam location PosCam
look_at LatCam look_at 0
right <image_width/image_height, 0, 0> right <image_width/image_height, 0, 0>
angle 50 angle 80
} }

View File

@ -7,11 +7,8 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
/* XXX /* XXX
#declare TrX = 1.84 * sqrt(NormClock); #declare TrX = 1.84 * sqrt(NormClock);
@ -24,7 +21,7 @@ object { HexaCone () rotate y*RrY translate TrH }
#include "dynamic.inc" #include "dynamic.inc"
object { HexaCone () rotate z*9.1 translate <7, 3, -8> } object { HexaCone () rotate z*9.1 translate <7, 3+NormClock, -8> }
object { HexaBenz () translate <-9+NormClock, 2, -6> } object { HexaBenz () translate <-9+NormClock, 2, -6> }
/* /*

View File

@ -1,3 +1,6 @@
/*
* H E X A C O N E T R I D E N T
*/
#declare Trid_length = 2; #declare Trid_length = 2;
@ -87,6 +90,8 @@ union {
} }
#end #end
// ------------------------------------------------------ // ------------------------------------------------------
#debug "+++++++++++++++++++++ trident loaded\n"
// ------------------------------------------------------

View File

@ -6,15 +6,10 @@
#include "globals.inc" #include "globals.inc"
#include "contexte.inc" #include "all.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc" #include "dynamic.inc"
// ======================================================= // =======================================================
object { Le_Decor } object { Le_Decor }

View File

@ -4,6 +4,23 @@
* A cosy place for experimental things (2025/10/27) * A cosy place for experimental things (2025/10/27)
* *
*/ */
/* =============================================================== */
/*
* new Tue Dec 30 07:39:09 AM UTC 2025
*/
#declare Patrouille = object
{
union {
#local EX = 2.4;
#local EZ = 2.3;
object { Trident_A () rotate x*87 }
object { HexaBenz () translate <-EX, 0, -EZ> }
object { HexaCone () translate < EX, -0.2, -EZ> }
object { HexaBenz () translate <-EX*2, 0, -EZ*2> }
object { HexaCone () translate < EX*2, -0.2, -EZ*2> }
}
}
/* =============================================================== */ /* =============================================================== */
#macro Pointe_Wagonnet_0 () #macro Pointe_Wagonnet_0 ()
merge { merge {
@ -11,13 +28,13 @@ merge {
sphere { 0, 0.06 } sphere { 0, 0.06 }
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.25) #if (R < 0.25)
texture { T_Chrome_1A } texture { T_Chrome_3A }
#elseif (R < 0.50) #elseif (R < 0.50)
texture { T_Chrome_2B } texture { T_Chrome_2B }
#elseif (R < 0.75) #elseif (R < 0.75)
texture { T_Chrome_3C } texture { T_Chrome_3C }
#else #else
texture { T_Chrome_4D } texture { T_Chrome_3D }
#end // IF #end // IF
} }
#end // Macro #end // Macro