diff --git a/Makefile b/Makefile index 44af14a..7ceec0d 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ PNG: essai.png scene.png topview.png passage.png \ echo "make PNG ck=$(CK) done" >> WS/log +splined.png: splined.pov Makefile $(POVDEP) + povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@ + topview.png: topview.pov Makefile $(POVDEP) povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@ diff --git a/splined.pov b/splined.pov new file mode 100644 index 0000000..a24a72c --- /dev/null +++ b/splined.pov @@ -0,0 +1,75 @@ +/* + * H E X A C O N E - S P L I N E D + * + * new: Sun Oct 19 05:20:49 PM UTC 2025 + * https://www.f-lohmueller.de/pov_tut/animate/anim210e.htm + */ + +#version 3.7; + +#include "globals.inc" + +#include "contexte.inc" +#include "hexacone.inc" +#include "hexabenz.inc" +#include "hexawood.inc" +#include "trident.inc" + +object { Le_Decor } + +// #include "dynamic.inc" +// ======================================================= +#declare Spline_1 = + spline { + natural_spline + -0.2, <-2,1.0,-2>, // control point + + 0.0, <-0,1.3,-2>, // start point + 0.2, < 2,1.0,-2>, + 0.4, < 2,1.5, 0>, + 0.6, < 0,2.2, 0>, + 0.8, < 0,1.0, 2>, + 1.0, < 2,1.0, 2>, // end point + + 1.2, < 4,1.0, 2> // control point + } + +#declare ViewSpline = object +{ +#local Scaler = <2, 1, 2>; +union { + #for (CK, 0.00, 1.00, 0.004) + sphere { <0,0,0>, 0.034 + texture{ + pigment {color rgb <0.20, 0.90, 0.20> } + finish {ambient 0.15 diffuse 0.85 phong 1} + } + translate (Scaler * Spline_1(CK)) + } + #end // for loop + + sphere { + 0, 0.09 + texture { WIP_color } + translate (Scaler * Spline_1(NormClock)) + } + } // closing union +} + +object { ViewSpline scale 10 translate y*3 } + +// ======================================================= + +object { Repere scale 8 translate <1, 1, 1> } + +#declare Loc_cam = <16-(12*NormClock), 39, 34+(9*exp(NormClock))>; + +camera { + location Loc_cam + look_at <0, 1.20, 0> + // focal_point <0.37, 0.0, 0> + // aperture 0.046 + // blur_samples 30 + angle 120 + } +