From a51a963ba0b4ac0a824f5c25e6a926a9f0947279 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Fri, 16 Jan 2026 18:29:15 +0100 Subject: [PATCH] commit for rabbit --- circular.pov | 2 +- contexte.inc | 14 ++++++++++++++ dynamic.inc | 24 ++++++++++++++++-------- escadrille.pov | 2 +- essai.pov | 32 +++++++++++++++++++++++++++----- hexacone.pov | 5 +++-- trident.inc | 6 +++--- 7 files changed, 65 insertions(+), 20 deletions(-) diff --git a/circular.pov b/circular.pov index 227dac3..07137b5 100644 --- a/circular.pov +++ b/circular.pov @@ -17,7 +17,7 @@ object { Le_Decor } // ======================================================= #declare R_circ = R_circular + 0.07; -#declare CK = 1.9 + (1.23 * Cos_01(NormClock)); +#declare CK = 1.9 + (1.43 * Cos_01(NormClock)); #declare CamX = R_circ * cos(CK); #declare CamY = 3.08 + abs(sin(CK/4.00)); diff --git a/contexte.inc b/contexte.inc index 19ec588..d9fdaa9 100644 --- a/contexte.inc +++ b/contexte.inc @@ -217,11 +217,25 @@ blob { */ #declare UnderHoles = array[6] +#ifdef (DEBUG_LEVEL) +#debug "Underholes : DEBUG_LEVEL activated\n" +#fopen Trid "WS/underholes.log" write +#end // if debulevel + #for (Idx, 0, 5) #local Angle = (Idx + 0.19) * 1.09; // magic numbers ? #local Px = sin(Angle) * (SzSol * 0.98); #local Pz = cos(Angle) * (SzSol * 1.02); + +#ifdef (DEBUG_LEVEL) + #write (Trid, "Def ", Idx, " ", NormClock, " ", Px, " ", Pz, "\n") +#end + // put the coords in the array. #declare UnderHoles[Idx] = ; +#end // for loop + +#ifdef (DEBUG_LEVEL) +#fclose Trid #end #declare Underground = object diff --git a/dynamic.inc b/dynamic.inc index e8aafa7..1c1ae44 100644 --- a/dynamic.inc +++ b/dynamic.inc @@ -100,18 +100,26 @@ object { HexaCone () rotate y*((12*NormClock)+80) translate P } * * les coordonnées de ces trous sont définies * dans le fichier 'contexte.inc'. */ -// #fopen Trid "WS/tridents.log" write +#ifdef (DEBUG_LEVEL) +#fopen Trid "WS/underholes.log" append +#end + #for (Foo, 0, 5) - #declare Dy = rand(Rng1)-4+(11*NormClock); + #declare Dy = rand(Rng1)-8+(12*NormClock); #declare Tr = UnderHoles[Foo] + <0, Dy, 0>; - #declare Ry = (( 0.5+rand(Rng1)-NormClock ) * 97); -// #write (Trid, Foo, " ", NormClock, " ", Dy, " ", -// Ry, " ", Tr, "\n") + #declare Ry = (( 0.5+rand(Rng1)-NormClock ) * 133); + #ifdef (DEBUG_LEVEL) + #write (Trid, "Trid ", Foo, " ", NormClock, " ", Dy, " ", + Ry, " ", Tr, "\n") + #end object { Trident_A () rotate y*Ry - translate y+( (10*rand(Rng1)) - 5) + // translate y+( (10*rand(Rng1)) - 5) translate Tr } #end -// #fclose Trid + +#ifdef (DEBUG_LEVEL) +#fclose Trid +#end /* * ---------------------------- @@ -146,7 +154,7 @@ object { HexaBenz () #local R = 16.64 * cos(K); #local H = 0.52 * pow(sin(K), 3); #declare P_hexawood = P + <0, 0.26+H, 0>; -#debug "+++++++++++++ P_hexawood defined\n" +// #debug "+++++++++++++ P_hexawood defined\n" object { HexaWood rotate z*R translate P_hexawood } diff --git a/escadrille.pov b/escadrille.pov index 04fa506..57939a3 100644 --- a/escadrille.pov +++ b/escadrille.pov @@ -65,5 +65,5 @@ camera { location look_at <0.0, LatY, 0> right - angle 56 - (21 * NormClock) + angle 56 - (24 * NormClock) } diff --git a/essai.pov b/essai.pov index c41b756..32ff1f2 100644 --- a/essai.pov +++ b/essai.pov @@ -5,6 +5,8 @@ #version 3.7; +#declare DEBUG_LEVEL = 1; // un nouveau test ? + #include "globals.inc" #declare NO_DYNAMIC = 1; #include "all.inc" @@ -39,8 +41,16 @@ translate y*2.35 // ======================================================= /* * new Thu Dec 18 01:14:19 AM UTC 2025 + * 14 janvier 2026, j'ajoute un truc pour {enfin} gérer + * un DEBUG_LEVEL correct. */ #macro Le_ConeStack () + +#ifdef (DEBUG_LEVEL) +#debug "Cone Stack : DEBUG_LEVEL activated\n" +#fopen Log "WS/log.essai" write +#end // debug level + union { #local Hcs = 0.550; #local Rco = R_basecone * 3.333; @@ -48,6 +58,12 @@ union { #local Dx = 0.385 * sin(Foo+NormClock); #local Dy = Foo * (Hcs + 0.0333); #local Dz = 0.385 * cos(Foo+NormClock); + #local DV = ; + +#ifdef (DEBUG_LEVEL) +#write (Log, Foo, " ", DV, "\n") +#end + union { cone { 0, Rco, <0, Hcs, 0>, 0.001 #if (rand(Rng1) < 0.50) texture { Y_Texture } @@ -59,11 +75,17 @@ union { #else texture { G_Texture } #end // if rand } - translate + translate DV } #end // for Foo } + +#ifdef (DEBUG_LEVEL) +#fclose Log +#end // debug level + #end // macro + // ======================================================= /* nouveau du 20 octobre 2025 @@ -92,7 +114,7 @@ sphere { #elseif (R < 0.666) texture { M_Texture } #else texture { Y_Texture } #end - finish { specular 0.6 } + finish { phong 0.7 specular 0.3 } } #end // macro @@ -308,10 +330,10 @@ union { // object { Repere translate y*1 } #break #case (4) - object { Trident_A() + object { Trident_A () scale 1.8 - rotate <28, 0, 12> translate 2.2*y - rotate -y*clock } + rotate <35, 0, 12> translate 2.2*y + rotate -y*(clock*2) } #break #case (5) object { Les_Boules translate y*0.8 } diff --git a/hexacone.pov b/hexacone.pov index e811c33..9f699ea 100644 --- a/hexacone.pov +++ b/hexacone.pov @@ -6,6 +6,7 @@ #include "globals.inc" +#declare DEBUG_LEVEL = 1; #declare NO_DYNAMIC = 0; #include "all.inc" @@ -15,7 +16,7 @@ object { Le_Decor } // object { Repere scale 2 } -#declare Loc_cam = <2, 2.7-NormClock, 1> + (Pos_RedB_1 * 1.383); +#declare Loc_cam = <2, 2.7-NormClock, 1> + (Pos_RedB_1 * 1.303); camera { location Loc_cam @@ -25,6 +26,6 @@ camera { // focal_point <0.37, 0.90, 0> // aperture 0.046 // blur_samples 30 - angle 55 - 25 * Cos_01(NormClock) + angle 59 - 25 * Cos_01(NormClock) } diff --git a/trident.inc b/trident.inc index d5260b6..94887bf 100644 --- a/trident.inc +++ b/trident.inc @@ -20,7 +20,7 @@ merge { #macro Trid_A_cone () difference { object { Trid_cone } - object { Trid_cone translate -y*0.04 } + object { Trid_cone translate -y*0.06 } #local Foo = rand(Rng1); #if (Foo < 0.25) texture { T_Brass_2C } #elseif (Foo < 0.50) texture { tPlasticOrange } @@ -79,7 +79,8 @@ union { #macro Trid_A_tail () union { #for (A, 0, 360, 120) - object { Trid_A_ailette () rotate (A+270)*y } + #local RY = A + 270*rand(Rng1); + object { Trid_A_ailette () rotate RY*y } #end // for } #end @@ -94,7 +95,6 @@ union { } #end // ------------------------------------------------------ -#debug "+++++++++++++++++++++ trident loaded\n" // ------------------------------------------------------