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 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));
|
||||
|
||||
14
contexte.inc
14
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] = <Px, 0, Pz>;
|
||||
#end // for loop
|
||||
|
||||
#ifdef (DEBUG_LEVEL)
|
||||
#fclose Trid
|
||||
#end
|
||||
|
||||
#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
|
||||
* 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 }
|
||||
|
||||
|
||||
@ -65,5 +65,5 @@ camera {
|
||||
location <CamX, CamY, CamZ>
|
||||
look_at <0.0, LatY, 0>
|
||||
right <image_width/image_height, 0, 0>
|
||||
angle 56 - (21 * NormClock)
|
||||
angle 56 - (24 * NormClock)
|
||||
}
|
||||
|
||||
30
essai.pov
30
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 = <Dx, Dy, Dz>;
|
||||
|
||||
#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,12 +75,18 @@ union {
|
||||
#else texture { G_Texture }
|
||||
#end // if rand
|
||||
}
|
||||
translate <Dx, Dy, Dz>
|
||||
translate DV
|
||||
}
|
||||
#end // for Foo
|
||||
}
|
||||
|
||||
#ifdef (DEBUG_LEVEL)
|
||||
#fclose Log
|
||||
#end // debug level
|
||||
|
||||
#end // macro
|
||||
|
||||
|
||||
// =======================================================
|
||||
/* nouveau du 20 octobre 2025
|
||||
* Un semblant de wagonnet qui va tourner sur le
|
||||
@ -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
|
||||
|
||||
@ -310,8 +332,8 @@ union {
|
||||
#case (4)
|
||||
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 }
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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"
|
||||
// ------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user