diff --git a/Makefile b/Makefile index b7c6639..bff5db6 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ PNG: essai.png scene.png topview.png passage.png \ topview.png: topview.pov Makefile $(POVDEP) povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@ +cutoff.png: cutoff.pov Makefile $(POVDEP) + povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@ + essai.png: essai.pov Makefile $(POVDEP) povray $(POVOPT) $(DIMS) -K$(CK) -i$< -o$@ diff --git a/contexte.inc b/contexte.inc index 2c074c2..1ba883a 100644 --- a/contexte.inc +++ b/contexte.inc @@ -156,10 +156,39 @@ texture { #declare Repere = object { union { - cylinder { 0, <1, 0, 0>, 0.008 pigment { color Red } } - cylinder { 0, <0, 0, 1>, 0.008 pigment { color Blue } } + #local R = 0.008; + cylinder { 0, <1, 0, 0>, R pigment { color Red } } + cylinder { 0, <0, 1, 0>, R pigment { color Green } } + cylinder { 0, <0, 0, 1>, R pigment { color Blue } } } } + +#declare OpenBox = object +{ +union { + #local R = 0.010; + /* 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 } + /* en bas */ + 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 } + + /* en haut */ + 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 } + + #undef R + texture { WIP_color } + } +} + // ======================================================= #declare Les_Lumieres = object diff --git a/cutoff.pov b/cutoff.pov new file mode 100644 index 0000000..b2fff69 --- /dev/null +++ b/cutoff.pov @@ -0,0 +1,42 @@ +/* + * H E X A C O N E - C U T O F F + * nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024 + */ + +#version 3.7; + +#include "globals.inc" + +#include "contexte.inc" +#include "elements.inc" +#include "hexabenz.inc" + +// ======================================================= + +#debug concat("------ cutoff clock = ", str(clock,5,0),"\n") + +#declare Kbox = (2*NormClock); + +/* this one is for debugging */ +object { OpenBox translate <0, 1.5, Kbox> } + +difference { + object { HexaCone () rotate y*5 } + box { -1, 1 translate z*Kbox } + translate y*1.5 + } + +// ======================================================= + +object { Le_Decor } +object { Repere } + +// ======================================================= + +#local CamX = -2.7 + (2.1*NormClock); +#local CamY = 2.58 + (0.034*sqrt(NormClock)); +camera { + location + look_at <0, 1.3, 0> + angle 42 - 4*Cos_01(NormClock) + }