a lot of cosmetic changes

This commit is contained in:
Tonton Th 2025-10-31 14:14:07 +01:00
parent 5706911bde
commit 048148967b
9 changed files with 39 additions and 29 deletions

View File

@ -20,6 +20,10 @@ union {
} }
object { BiBenz rotate -y*(clock*0.21) translate Pos_RedB_0 } object { BiBenz rotate -y*(clock*0.21) translate Pos_RedB_0 }
/*
* deux hexacones se tournent autour
* XXX peut-être les faire bouger un peu plus ?
*/
#declare BiCone = object #declare BiCone = object
{ {
#local K = 1.27; #local K = 1.27;
@ -38,6 +42,11 @@ object { BiCone rotate -y*(Cos_010(NormClock)*55.38) translate Pos_RedB_1 }
#declare P = Interpolate(A, B, NormClock); #declare P = Interpolate(A, B, NormClock);
object { HexaCone () rotate y*((12*NormClock)+80) translate P } object { HexaCone () rotate y*((12*NormClock)+80) translate P }
/* XXX
* un "machin" se déplace sur le rail circulaire
* XXX */
/* /*
* le vaisseau "trident" passe a travers les * le vaisseau "trident" passe a travers les
@ -92,16 +101,17 @@ object { HexaWood rotate z*R translate P_hexawood }
/* /*
* survol par un trident * survol par un trident
*/ */
#declare A = < 2, 49, -20>; #declare A = < 2, 47, -20>;
#declare B = <-3, 37, 22>; #declare B = <-3, 35, 22>;
#declare P = Interpolate(A, B, NormClock); #declare P = Interpolate(A, B, NormClock);
object { Trident_A () rotate y*(clock*2.7) object { Trident_A () rotate y*(clock*2.7)
rotate z*80 rotate z*80
rotate <2, 94, 0> rotate <2, 94, 0>
translate P } translate P }
/* ----------------------------------- */
#debug "dynamic is loaded\n" #debug "dynamic is loaded\n"
/* ----------------------------------- */

View File

@ -31,8 +31,8 @@
// #debug concat("X ", str(posX,7,3), " Z ", str(posZ,7,3), "\n") // #debug concat("X ", str(posX,7,3), " Z ", str(posZ,7,3), "\n")
// #debug concat("position Z ", str(posZ,7,3),"\n") // #debug concat("position Z ", str(posZ,7,3),"\n")
#if ( (abs(posX)>1.3) & (abs(posZ)>1.3) ) #declare Limit = 1.450;
#if ( (abs(posX)>Limit) & (abs(posZ)>Limit) ) // position
#if (rand(Rng1) < 0.555) #if (rand(Rng1) < 0.555)
object { HexaCone () rotate <Rx, Ry, Rz> object { HexaCone () rotate <Rx, Ry, Rz>
translate <posX, posY, posZ> } translate <posX, posY, posZ> }
@ -43,9 +43,8 @@
// #debug "\n" // #debug "\n"
#end // if position...
#end // if pos... #end // loop idX
#end // loop IDX
#end // loop idZ #end // loop idZ
// ======================================================= // =======================================================
@ -55,8 +54,8 @@ object { Le_Decor }
// object { Repere scale 5 translate y } // object { Repere scale 5 translate y }
#local CamX = -8.7 + ( 6.9 * Cos_01(NormClock)); #local CamX = -8.7 + ( 6.9 * Cos_01(NormClock));
#local CamY = 0.42 + (27.89 * Cos_01(NormClock)); #local CamY = 0.42 + (29.06 * Cos_01(NormClock));
#local CamZ = 16.86 + (14.9 * Cos_01(NormClock)); #local CamZ = 122 - (18.9 * Cos_01(NormClock));
camera { camera {
location <CamX, CamY, CamZ> location <CamX, CamY, CamZ>

View File

@ -19,7 +19,7 @@ merge {
#if ( R < 0.52) #if ( R < 0.52)
texture { T_WIP_alert } texture { T_WIP_alert }
#else #else
texture { WIP_color } texture { M_Texture }
#end #end
} }
#end // macro #end // macro
@ -150,7 +150,7 @@ union {
#declare OpenBox = object #declare OpenBox = object
{ {
union { union {
#local R = 0.010; #local R = 0.021;
/* les verticales */ /* les verticales */
cylinder { <-1, -1, -1>, <-1, 1, -1>, R } cylinder { <-1, -1, -1>, <-1, 1, -1>, R }
cylinder { < 1, -1, -1>, < 1, 1, -1>, R } cylinder { < 1, -1, -1>, < 1, 1, -1>, R }

View File

@ -137,7 +137,7 @@ finish {
pigment { rgb <0.0, 0.0, 1.0> } finish { ambient 0.33 } } pigment { rgb <0.0, 0.0, 1.0> } finish { ambient 0.33 } }
#declare Y_Texture = texture { #declare Y_Texture = texture {
pigment { rgb <0.8, 0.8, 0> } finish { ambient 0.33 } } pigment { rgb <0.8, 0.8, 0.0> } finish { ambient 0.33 } }
#declare M_Texture = texture { #declare M_Texture = texture {
pigment { rgb <0.8, 0.0, 0.8> } finish { ambient 0.33 } } pigment { rgb <0.8, 0.0, 0.8> } finish { ambient 0.33 } }
#declare C_Texture = texture { #declare C_Texture = texture {

View File

@ -112,7 +112,7 @@ texture { T_Grnt7 rotate 49 scale 0.333 }
{ {
merge { merge {
cylinder { 0, y*0.5, 0.10 } cylinder { 0, y*0.5, 0.10 }
sphere { 0, 0.10 scale <1, 0.23, 1> translate y*0.5 } sphere { 0, 0.10 scale <1, 0.25, 1> translate y*0.5 }
} }
} }

View File

@ -56,7 +56,7 @@ union {
translate <Tx, Ty, 0> translate <Tx, Ty, 0>
} }
#end // end for #end // end for
#local SBAC = 0.290; #local SBAC = 0.300;
object { Benz_attache_cones (SBAC) translate -z*0.175 } object { Benz_attache_cones (SBAC) translate -z*0.175 }
object { Benz_attache_cones (SBAC) translate z*0.202 } object { Benz_attache_cones (SBAC) translate z*0.202 }
} }

View File

@ -86,7 +86,7 @@ merge {
#elseif ( R < 0.8 ) #elseif ( R < 0.8 )
texture { New_Penny } texture { New_Penny }
#else #else
texture { tPlasticGreen } texture { T_Brass_2C }
#end // if #end // if
#end // macro #end // macro

View File

@ -17,13 +17,13 @@
// ======================================================= // =======================================================
object { Le_Decor } object { Le_Decor }
#debug "ACTION !!!\n"
#include "dynamic.inc" #include "dynamic.inc"
// ======================================================= // =======================================================
#declare CK = 2.79 * Cos_01(NormClock); #declare CK = 2.79 * Cos_01(NormClock);
#declare CamX = 1.22;
#declare CamY = 7 + (4*Cos_01(NormClock)); #declare CamY = 7 + (4*Cos_01(NormClock));
#declare LatX = 20 * cos(CK*1.08); #declare LatX = 20 * cos(CK*1.08);
@ -33,7 +33,7 @@ object { Le_Decor }
camera { camera {
// orthographic // orthographic
location <0, CamY, 0> location <CamX, CamY, 0>
look_at <LatX, LatY, LatZ> look_at <LatX, LatY, LatZ>
angle 75 angle 71 + (NormClock * 10)
} }

View File

@ -39,8 +39,8 @@ object { Le_Decor }
#declare ViewSpline = object #declare ViewSpline = object
{ {
union { union {
#for (CK, 0.00, 1.00, 0.0025) #for (CK, 0.00, 1.00, 0.0024)
sphere { <0,0,0>, 0.030 sphere { <0,0,0>, 0.028
texture{ texture{
pigment {color rgb <0.20, 0.14, 0.14> } pigment {color rgb <0.20, 0.14, 0.14> }
finish {ambient 0.15 diffuse 0.85 phong 0.6 } finish {ambient 0.15 diffuse 0.85 phong 0.6 }
@ -64,17 +64,17 @@ union {
#declare P2 = <1, -1.3, 0.1> + (0.95 * Scaler * Spline_1(V2)); #declare P2 = <1, -1.3, 0.1> + (0.95 * Scaler * Spline_1(V2));
sphere { sphere {
0, 0.06 0, 0.06
pigment { color Blue } texture { B_Texture }
translate P1 translate P1
} }
sphere { sphere {
0, 0.06 0, 0.06
pigment { color Red } texture { R_Texture }
translate P2 translate P2
} }
cylinder { cylinder {
P1, P2, 0.017 P1, P2, 0.017
pigment { color Green } texture { G_Texture }
} }
finish { ambient 0.15 diffuse 0.65 phong 0.4 } finish { ambient 0.15 diffuse 0.65 phong 0.4 }
} }
@ -87,7 +87,7 @@ union {
// ======================================================= // =======================================================
#declare Flag = (mod(clock,90) < 45); #declare Flag = (mod(clock+33,120) < 40);
#if ( Flag ) #if ( Flag )
object { AllTheSpline scale 10 translate y*2 } object { AllTheSpline scale 10 translate y*2 }
@ -96,6 +96,7 @@ union {
#debug " FLAG IS NO\n" #debug " FLAG IS NO\n"
#end #end
/* P1 and P2 are computed in AllTheSpline object */
#local P1B = (P1 * 10) + <0, 2, 0>; #local P1B = (P1 * 10) + <0, 2, 0>;
#local P2B = (P2 * 10) + <0, 2, 0>; #local P2B = (P2 * 10) + <0, 2, 0>;
#if ( Flag ) #if ( Flag )
@ -105,7 +106,7 @@ union {
#declare Ang_cam = 105; #declare Ang_cam = 105;
#else #else
#declare Loc_cam = P1B; #declare Loc_cam = P1B;
#declare Lat_cam = P2B; #declare Lat_cam = P2B * 0.85;
#declare Ang_cam = 52; #declare Ang_cam = 52;
#end #end