76 lines
1.5 KiB
POVRay
76 lines
1.5 KiB
POVRay
/*
|
|
* 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, <-1, 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.0034)
|
|
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 = <29-(12*NormClock), 39, 43+(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
|
|
}
|
|
|