diff --git a/essai.pov b/essai.pov index be0a39a..16553ec 100644 --- a/essai.pov +++ b/essai.pov @@ -11,6 +11,66 @@ #include "elements.inc" #include "hexabenz.inc" +// ======================================================= +/* + * nouveau debut fevrier 2025 - we love raytracing + */ + +/* + * deux textures + */ +#declare T_Beton_1 = texture +{ +pigment { color <0.9, 0.8, 0.8> } +normal { dents 0.75 scale 0.3 } +} + +#declare T_Beton_2 = texture +{ +pigment { color <0.9, 0.8, 0.8> } +normal { dents 0.25 scale 2 } +} + +/* + * une seule forme de cabane pour le moment + */ +#declare Base_cabane_forme = object +{ +difference { + box { <-0.90, 0, 0>, <0.90, 1.00, 0.80> } + box { <-0.89, -1, -1> <0.89, 0.99, 0.79> } + cylinder { <-1, 0.75, -0.23>, <1, 0.75, 0.23>, 0.09 } + } +} + +/* + * comparaison des deux textures par le rendu + * de la meme forme de cabane. + */ +#declare Cabane_Base_1 = object +{ +object { Base_cabane_forme } +texture { T_Beton_1 } +} + +#declare Cabane_Base_2 = object +{ +object { Base_cabane_forme } +texture { T_Beton_2 } +} + +/* + * assemblage des deux versions face a face + */ +#declare Les_Cabanes = object +{ +union { + #local E = 1.10; + object { Cabane_Base_1 rotate 270*y translate -x*E } + object { Cabane_Base_2 rotate 90*y translate x*E } + #undef E + } +} // ======================================================= #declare QuadriPole = object @@ -55,12 +115,12 @@ union { #declare Les_Machins = object { union { - #local Rk = 2.95 + NormClock; + #local Rk = 3.95 + NormClock; #for (foo, 0, 359, 45) #local Xpos = Rk * sin(radians(foo)); #local Zpos = Rk * cos(radians(foo)); #local RND = rand(Rng1); - object { GyroPhare () translate } + object { Un_Machin () translate } #end #undef RND #undef Rk @@ -69,12 +129,15 @@ union { // ======================================================= + object { GroundBase } +object { Les_Cabanes rotate -y*(clock*0.75) translate y*H_base } + // object { OpenBox translate y*1.2 } -object { Les_Machins } +object { Les_Machins translate y*1.5 } object { Le_Decor } -object { Repere } +object { Repere translate y*2 } // ======================================================= @@ -85,8 +148,8 @@ object { Repere } #local CamY = 1.81 + (4*sqrt(NormClock)); #local CamZ = 1.7 + (3.8*Cos_01(NormClock)); camera { - fisheye + // fisheye location look_at <0, 0.5, 0> - // angle 32 - 4*Cos_01(NormClock) + angle 32 + 4*Cos_01(NormClock) }