commit for rabbit
This commit is contained in:
parent
77ebfd9018
commit
a51a963ba0
@ -17,7 +17,7 @@ object { Le_Decor }
|
|||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
#declare R_circ = R_circular + 0.07;
|
#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 CamX = R_circ * cos(CK);
|
||||||
#declare CamY = 3.08 + abs(sin(CK/4.00));
|
#declare CamY = 3.08 + abs(sin(CK/4.00));
|
||||||
|
|||||||
14
contexte.inc
14
contexte.inc
@ -217,11 +217,25 @@ blob {
|
|||||||
*/
|
*/
|
||||||
#declare UnderHoles = array[6]
|
#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)
|
#for (Idx, 0, 5)
|
||||||
#local Angle = (Idx + 0.19) * 1.09; // magic numbers ?
|
#local Angle = (Idx + 0.19) * 1.09; // magic numbers ?
|
||||||
#local Px = sin(Angle) * (SzSol * 0.98);
|
#local Px = sin(Angle) * (SzSol * 0.98);
|
||||||
#local Pz = cos(Angle) * (SzSol * 1.02);
|
#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] = <Px, 0, Pz>;
|
#declare UnderHoles[Idx] = <Px, 0, Pz>;
|
||||||
|
#end // for loop
|
||||||
|
|
||||||
|
#ifdef (DEBUG_LEVEL)
|
||||||
|
#fclose Trid
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#declare Underground = object
|
#declare Underground = object
|
||||||
|
|||||||
24
dynamic.inc
24
dynamic.inc
@ -100,18 +100,26 @@ object { HexaCone () rotate y*((12*NormClock)+80) translate P }
|
|||||||
* * les coordonnées de ces trous sont définies
|
* * les coordonnées de ces trous sont définies
|
||||||
* dans le fichier 'contexte.inc'.
|
* 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)
|
#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 Tr = UnderHoles[Foo] + <0, Dy, 0>;
|
||||||
#declare Ry = (( 0.5+rand(Rng1)-NormClock ) * 97);
|
#declare Ry = (( 0.5+rand(Rng1)-NormClock ) * 133);
|
||||||
// #write (Trid, Foo, " ", NormClock, " ", Dy, " ",
|
#ifdef (DEBUG_LEVEL)
|
||||||
// Ry, " ", Tr, "\n")
|
#write (Trid, "Trid ", Foo, " ", NormClock, " ", Dy, " ",
|
||||||
|
Ry, " ", Tr, "\n")
|
||||||
|
#end
|
||||||
object { Trident_A () rotate y*Ry
|
object { Trident_A () rotate y*Ry
|
||||||
translate y+( (10*rand(Rng1)) - 5)
|
// translate y+( (10*rand(Rng1)) - 5)
|
||||||
translate Tr }
|
translate Tr }
|
||||||
#end
|
#end
|
||||||
// #fclose Trid
|
|
||||||
|
#ifdef (DEBUG_LEVEL)
|
||||||
|
#fclose Trid
|
||||||
|
#end
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ----------------------------
|
* ----------------------------
|
||||||
@ -146,7 +154,7 @@ 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"
|
// #debug "+++++++++++++ P_hexawood defined\n"
|
||||||
|
|
||||||
object { HexaWood rotate z*R translate P_hexawood }
|
object { HexaWood rotate z*R translate P_hexawood }
|
||||||
|
|
||||||
|
|||||||
@ -65,5 +65,5 @@ camera {
|
|||||||
location <CamX, CamY, CamZ>
|
location <CamX, CamY, CamZ>
|
||||||
look_at <0.0, LatY, 0>
|
look_at <0.0, LatY, 0>
|
||||||
right <image_width/image_height, 0, 0>
|
right <image_width/image_height, 0, 0>
|
||||||
angle 56 - (21 * NormClock)
|
angle 56 - (24 * NormClock)
|
||||||
}
|
}
|
||||||
|
|||||||
32
essai.pov
32
essai.pov
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
#version 3.7;
|
#version 3.7;
|
||||||
|
|
||||||
|
#declare DEBUG_LEVEL = 1; // un nouveau test ?
|
||||||
|
|
||||||
#include "globals.inc"
|
#include "globals.inc"
|
||||||
#declare NO_DYNAMIC = 1;
|
#declare NO_DYNAMIC = 1;
|
||||||
#include "all.inc"
|
#include "all.inc"
|
||||||
@ -39,8 +41,16 @@ translate y*2.35
|
|||||||
// =======================================================
|
// =======================================================
|
||||||
/*
|
/*
|
||||||
* new Thu Dec 18 01:14:19 AM UTC 2025
|
* 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 ()
|
#macro Le_ConeStack ()
|
||||||
|
|
||||||
|
#ifdef (DEBUG_LEVEL)
|
||||||
|
#debug "Cone Stack : DEBUG_LEVEL activated\n"
|
||||||
|
#fopen Log "WS/log.essai" write
|
||||||
|
#end // debug level
|
||||||
|
|
||||||
union {
|
union {
|
||||||
#local Hcs = 0.550;
|
#local Hcs = 0.550;
|
||||||
#local Rco = R_basecone * 3.333;
|
#local Rco = R_basecone * 3.333;
|
||||||
@ -48,6 +58,12 @@ union {
|
|||||||
#local Dx = 0.385 * sin(Foo+NormClock);
|
#local Dx = 0.385 * sin(Foo+NormClock);
|
||||||
#local Dy = Foo * (Hcs + 0.0333);
|
#local Dy = Foo * (Hcs + 0.0333);
|
||||||
#local Dz = 0.385 * cos(Foo+NormClock);
|
#local Dz = 0.385 * cos(Foo+NormClock);
|
||||||
|
#local DV = <Dx, Dy, Dz>;
|
||||||
|
|
||||||
|
#ifdef (DEBUG_LEVEL)
|
||||||
|
#write (Log, Foo, " ", DV, "\n")
|
||||||
|
#end
|
||||||
|
|
||||||
union {
|
union {
|
||||||
cone { 0, Rco, <0, Hcs, 0>, 0.001
|
cone { 0, Rco, <0, Hcs, 0>, 0.001
|
||||||
#if (rand(Rng1) < 0.50) texture { Y_Texture }
|
#if (rand(Rng1) < 0.50) texture { Y_Texture }
|
||||||
@ -59,12 +75,18 @@ union {
|
|||||||
#else texture { G_Texture }
|
#else texture { G_Texture }
|
||||||
#end // if rand
|
#end // if rand
|
||||||
}
|
}
|
||||||
translate <Dx, Dy, Dz>
|
translate DV
|
||||||
}
|
}
|
||||||
#end // for Foo
|
#end // for Foo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef (DEBUG_LEVEL)
|
||||||
|
#fclose Log
|
||||||
|
#end // debug level
|
||||||
|
|
||||||
#end // macro
|
#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
|
||||||
@ -92,7 +114,7 @@ sphere {
|
|||||||
#elseif (R < 0.666) texture { M_Texture }
|
#elseif (R < 0.666) texture { M_Texture }
|
||||||
#else texture { Y_Texture }
|
#else texture { Y_Texture }
|
||||||
#end
|
#end
|
||||||
finish { specular 0.6 }
|
finish { phong 0.7 specular 0.3 }
|
||||||
}
|
}
|
||||||
#end // macro
|
#end // macro
|
||||||
|
|
||||||
@ -308,10 +330,10 @@ union {
|
|||||||
// object { Repere translate y*1 }
|
// object { Repere translate y*1 }
|
||||||
#break
|
#break
|
||||||
#case (4)
|
#case (4)
|
||||||
object { Trident_A()
|
object { Trident_A ()
|
||||||
scale 1.8
|
scale 1.8
|
||||||
rotate <28, 0, 12> translate 2.2*y
|
rotate <35, 0, 12> translate 2.2*y
|
||||||
rotate -y*clock }
|
rotate -y*(clock*2) }
|
||||||
#break
|
#break
|
||||||
#case (5)
|
#case (5)
|
||||||
object { Les_Boules translate y*0.8 }
|
object { Les_Boules translate y*0.8 }
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include "globals.inc"
|
#include "globals.inc"
|
||||||
|
|
||||||
|
#declare DEBUG_LEVEL = 1;
|
||||||
#declare NO_DYNAMIC = 0;
|
#declare NO_DYNAMIC = 0;
|
||||||
#include "all.inc"
|
#include "all.inc"
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ object { Le_Decor }
|
|||||||
|
|
||||||
// object { Repere scale 2 }
|
// 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 {
|
camera {
|
||||||
location Loc_cam
|
location Loc_cam
|
||||||
@ -25,6 +26,6 @@ camera {
|
|||||||
// focal_point <0.37, 0.90, 0>
|
// focal_point <0.37, 0.90, 0>
|
||||||
// aperture 0.046
|
// aperture 0.046
|
||||||
// blur_samples 30
|
// blur_samples 30
|
||||||
angle 55 - 25 * Cos_01(NormClock)
|
angle 59 - 25 * Cos_01(NormClock)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ merge {
|
|||||||
#macro Trid_A_cone ()
|
#macro Trid_A_cone ()
|
||||||
difference {
|
difference {
|
||||||
object { Trid_cone }
|
object { Trid_cone }
|
||||||
object { Trid_cone translate -y*0.04 }
|
object { Trid_cone translate -y*0.06 }
|
||||||
#local Foo = rand(Rng1);
|
#local Foo = rand(Rng1);
|
||||||
#if (Foo < 0.25) texture { T_Brass_2C }
|
#if (Foo < 0.25) texture { T_Brass_2C }
|
||||||
#elseif (Foo < 0.50) texture { tPlasticOrange }
|
#elseif (Foo < 0.50) texture { tPlasticOrange }
|
||||||
@ -79,7 +79,8 @@ union {
|
|||||||
#macro Trid_A_tail ()
|
#macro Trid_A_tail ()
|
||||||
union {
|
union {
|
||||||
#for (A, 0, 360, 120)
|
#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 // for
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
@ -94,7 +95,6 @@ union {
|
|||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
#debug "+++++++++++++++++++++ trident loaded\n"
|
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user