big revamping, part 1

This commit is contained in:
Tonton Th
2026-01-02 21:15:55 +01:00
parent f5b2e1c227
commit a575e428b2
26 changed files with 148 additions and 189 deletions

View File

@@ -9,39 +9,34 @@
#include "globals.inc"
#include "contexte.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
#include "dynamic.inc"
#include "all.inc"
object { Le_Decor }
// =======================================================
#declare Spline_1 =
spline {
cubic_spline
-0.2, <-2, 1.0, -2>, // control point
-0.2, <-2, 1.0, -3>, // control point
0.0, < 0, 1.3, -2>, // start point
0.2, < 2, 1.0, -1>,
0.4, < 1, 1.5, 0>,
0.6, < 0, 2.2, 0>,
0.8, <-1, 0.9, 1>,
1.0, < 2, 1.0, 2>, // end point
0.0, <-0.5, 1.3, -2.7>, // start point
0.2, < 2.0, 1.0, -1.0>,
0.4, < 1.0, 1.5, 0.0>,
0.6, < 0.0, 2.2, 0.1>,
0.8, <-1.1, 1.6, 1.1>,
1.0, < 2.0, 1.0, 2.0>, // end point
1.2, < 4, 1.0, 2> // control point
}
#local Scaler = <2, 1, 3>;
#local Scaler = <2, 1, 3>; // XXX please explain
#declare ViewSpline = object
{
union {
#for (CK, 0.00, 1.00, 0.0017)
sphere { <0,0,0>, 0.022
texture{
pigment {color rgb <0.20, 0.14, 0.14> }
#for (CK, 0.00, 1.00, 0.0021)
sphere { <0,0,0>, 0.023
texture{
pigment {color rgb <0.20, 0.24, 0.14> }
finish {ambient 0.15 diffuse 0.85 phong 0.6 }
}
translate (Scaler * Spline_1(CK))
@@ -60,7 +55,7 @@ union {
union {
object { ViewSpline }
#declare P1 = Scaler * Spline_1(V1);
#declare P2 = <1, -1.3, 0.1> + (0.95 * Scaler * Spline_1(V2));
#declare P2 = <1, -1.3, 0.2> + (0.95 * Scaler * Spline_1(V2));
sphere {
0, 0.06
texture { B_Texture }