diff --git a/elements.inc b/elements.inc index e794183..7f46e29 100644 --- a/elements.inc +++ b/elements.inc @@ -168,11 +168,10 @@ merge { box { <-DXail, -DYail, -DZail> , } } -#declare Le_rotor = object -{ -#local Rrot = 0.0034; -#local Lrot = 0.13; +#macro Le_rotor () union { + #local Rrot = 0.0034; + #local Lrot = 0.13; sphere { -x*Lrot, Rrot } cylinder { <-Lrot, 0, 0>, , Rrot } sphere { x*Lrot, Rrot } @@ -183,14 +182,17 @@ union { rotate (foo*35)*x translate (foo*0.013)*x } #end - } -// texture { T_Chrome_1C } -texture { - pigment { color Orange } + texture { + #if ( rand(Rng1) < 0.333 ) + pigment { color Orange } + #else + pigment { color Magenta } + #end // finish { emission 0.7 } - finish { ambient 0.7 phong 0.5 brilliance 0.9 metallic 0.7 } + finish { ambient 0.7 phong 0.5 brilliance 0.9 } + } } -} +#end /* ------------------------------------------------------ * @@ -228,7 +230,7 @@ texture { T_Brass_1C } { union { object { Tuyere } - object { Le_rotor rotate x*(clock*5.8) translate -0.06*x } + object { Le_rotor () rotate x*(clock*5.8) translate -0.06*x } } } diff --git a/escadrille.pov b/escadrille.pov index 4f906ad..59d25d8 100644 --- a/escadrille.pov +++ b/escadrille.pov @@ -17,36 +17,40 @@ #for (idX, 0, 4) #for (idZ, 0, 4) - #local posX = (idX * 4.56) - 6.5; - #local posY = 1.3 * (rand(Rng1)-0.5); - #local posZ = (idZ * 4.24) - 8.9; - #local Ry = (rand(Rng1) - 0.5) * 16; + #local posX = (idX * 4.56) - 7.5 + (rand(Rng1)-0.5); + #local posY = 2.3 + (1.2*(rand(Rng1)-0.5)); + #local posZ = (idZ * 4.24) - 7.9; + #local Rx = (rand(Rng1) - 0.5) * 8; + #local Ry = (rand(Rng1) - 0.5) * 14; + #local Rz = (rand(Rng1) - 0.5) * 11; #if (rand(Rng1) < 0.515) object { HexaCone () - rotate y*Ry translate } + rotate <0, Ry, Rz> + translate } #else object { HexaBenz () - rotate y*Ry translate } + rotate <0, Ry, Rz> + translate } #end #end #end // ======================================================= -#if (NormClock < 0.08) +#if (NormClock < 0.09) light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> } #end -light_source { < 11, 7, 4>, rgb } +object { Le_Decor } // object { Repere scale 5 } #local CamX = -8.7+(6.6*NormClock); -#local CamY = -5+(11.9*Cos_01(NormClock)); -#local CamZ = 15.06+(2.9*Cos_010(NormClock)); +#local CamY = 1.9+(13.37*Cos_01(NormClock)); +#local CamZ = 15.86+(12.9*Cos_01(NormClock)); camera { location - look_at <0.0, 0.0, 0> - angle 53 - (3.57 * NormClock) + look_at <0.0, -0.3, 0> + angle 60 - (3.97 * NormClock) } diff --git a/essai.pov b/essai.pov index 083fb98..2229cc2 100644 --- a/essai.pov +++ b/essai.pov @@ -12,11 +12,28 @@ #include "hexabenz.inc" // ======================================================= + +#declare QuadriPole = object +{ +#local R = 0.02; +#local E = 0.25; +#local H = H_cone*2; +union { + cylinder { 0, y*H, R translate -x*E } + cylinder { 0, y*H, R translate x*E } + cylinder { 0, y*H, R translate -z*E } + cylinder { 0, y*H, R translate z*E } + } +texture { WIP_color } +#undef E +#undef H +#undef R +} // ======================================================= #macro Bubble () sphere { - 0, 0.06 + 0, 0.065 #if ( rand(Rng1) < 0.333 ) texture { Ruby_Glass } #elseif ( rand(Rng1) < 0.666 ) @@ -38,36 +55,38 @@ union { #declare Les_Machins = object { union { - #local Rk = 4.95; - #for (foo, 0, 360, 15) + #local Rk = 2.55; + #for (foo, 0, 359, 45) #local Xpos = Rk * sin(radians(foo)); #local Zpos = Rk * cos(radians(foo)); - #if ( rand(Rng1) < 0.40 ) - object { GyroPhare () translate } - #else - object { Un_Machin () translate } - #end - + #local RND = rand(Rng1); + object { GyroPhare () translate } #end - + #undef RND #undef Rk } } -object { Les_Machins translate y*0.01} +// ======================================================= -object { Le_Sol } -// object { Repere } + +// ======================================================= + +object { OpenBox translate y*1.2 } +object { Les_Machins } +object { Le_Decor } + +object { Repere } // ======================================================= // light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> } // light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> } -#local CamX = -12.7 + (5.8*NormClock); -#local CamY = 8.81 + (14*sqrt(NormClock)); +#local CamX = -2.7 + (3.8*NormClock); +#local CamY = 1.81 + (4*sqrt(NormClock)); camera { location - look_at <0, 0, 0> - angle 42 + 8*Cos_01(NormClock) + look_at <0, 0.5, 0> + angle 42 - 4*Cos_01(NormClock) } diff --git a/globals.inc b/globals.inc index 76ac1ab..b1ea4e0 100644 --- a/globals.inc +++ b/globals.inc @@ -1,7 +1,7 @@ global_settings { assumed_gamma 1.0 - ambient_light rgb <0.18, 0.18, 0.21> + ambient_light rgb <0.17, 0.17, 0.21> max_trace_level 15 } @@ -22,14 +22,24 @@ global_settings { * Some constants... */ -#declare SzSol = 30; +#declare SzSol = 34; #declare R_basecone = 0.117; #declare H_cone = 0.97; -#declare R_gyro = 0.10; +#declare R_gyro = 0.08; #declare H_gyro = 1.20; +/* ------------------------------------------------------------ */ +/* + * Some textures... + */ + +#declare WIP_color = texture +{ +pigment { color Cyan*0.60 } +finish { phong 0.01 } +} /* ------------------------------------------------------------ */ /* * Usefull macros diff --git a/hexabenz.inc b/hexabenz.inc index 5e0f92a..392489f 100644 --- a/hexabenz.inc +++ b/hexabenz.inc @@ -18,7 +18,7 @@ union { // { union { #for (foo, 0, 360, 60) - #local E = 0.38; + #local E = 0.35; #local Tx = E * sin(radians(foo)); #local Ty = E * cos(radians(foo)); object { @@ -38,11 +38,10 @@ union { // ------------------------------------------------------ -#local R_Tube = 0.20; +#declare R_Tube = 0.20; #local L_Tube = 0.54; -#declare Benz_Tubules = object -{ +#macro Benz_Tubules () merge { #local E = R_Tube * 0.75; #local R = 0.01; @@ -55,13 +54,13 @@ merge { sphere { -Dza, R*1.8 translate } sphere { Dzb, R*1.8 translate } #end + #if ( rand(Rng1) < 0.333) + texture { Orange_Glass } + #else + texture { Yellow_Glass } + #end } -#if ( rand(Rng1) < 0.333) - texture { Orange_Glass } -#else - texture { Yellow_Glass } #end -} #declare Benz_Fuseau = object { @@ -109,7 +108,7 @@ texture { Soft_Silver scale 6.0 } // #declare Benz_Tube = object // { union { - object { Benz_Tubules } + object { Benz_Tubules () } object { Benz_Fuseau_Flash translate z*0.40 } object { Benz_Cylindre } } diff --git a/hexabenz.pov b/hexabenz.pov index 3481664..2e32df5 100644 --- a/hexabenz.pov +++ b/hexabenz.pov @@ -17,22 +17,24 @@ #local K = 1.48; -object { HexaBenz () rotate y*90 translate -x*K } -object { HexaBenz () translate x*K } +object { HexaBenz () rotate y*90 translate <-K, 1.2, 0> } +object { HexaBenz () translate < K, 1.2, 0> } // ======================================================= -light_source { <19, 7, 14>, rgb <0.77, 0.79, 0.80> } -light_source { <19, 9, -14>, rgb <0.87, 0.79, 0.70> } +object { Le_Decor } + +// light_source { <19, 7, 14>, rgb <0.77, 0.79, 0.80> } +// light_source { <19, 9, -14>, rgb <0.87, 0.79, 0.70> } // object { Repere scale 2 } camera { location <-1.9+(8*NormClock), 0.70, 7.59-NormClock> - look_at <0.37, 0.0, 0> - focal_point <0.37, 0.0, 0> - aperture 0.046 - blur_samples 30 + look_at <0.37, 0.9, 0> + // focal_point <0.37, 0.0, 0> + // aperture 0.046 + // blur_samples 30 angle 60 - 28 * Cos_01(NormClock) } diff --git a/hexacone.pov b/hexacone.pov index 6b0a6c5..bd0e680 100644 --- a/hexacone.pov +++ b/hexacone.pov @@ -6,27 +6,23 @@ #include "globals.inc" -#include "colors.inc" -#include "metals.inc" -#include "textures.inc" -#include "stones.inc" - #include "contexte.inc" #include "elements.inc" #include "hexabenz.inc" - #declare Cone_Repere = object { union { object { HexaCone () } - object { Repere translate <-0.4, -0.2, -0.5> } + // object { Repere translate <-0.4, -0.2, -0.5> } } } #local K = 1.48; -object { Cone_Repere rotate y*90 translate -x*K } -object { Cone_Repere translate x*K } +object { Cone_Repere rotate y*90 translate <-K, 1.2, 0> } +object { Cone_Repere translate < K, 1.1, 0> } + +object { Le_Decor } // ======================================================= @@ -37,10 +33,10 @@ light_source { <19, 9, -14>, rgb <0.87, 0.79, 0.70> } camera { location <-1.9+(8*NormClock), 0.70, 7.59-NormClock> - look_at <0.37, 0.0, 0> - focal_point <0.37, 0.0, 0> - aperture 0.046 - blur_samples 30 + look_at <0.37, 0.70, 0> + // focal_point <0.37, 0.90, 0> + // aperture 0.046 + // blur_samples 30 angle 55 - 28 * Cos_01(NormClock) } diff --git a/orbite.pov b/orbite.pov index 65e9195..45a735a 100644 --- a/orbite.pov +++ b/orbite.pov @@ -11,7 +11,7 @@ #include "hexabenz.inc" // ======================================================= -#declare R_planete = 1.42; +#declare R_planete = 1.22; #declare Croute = object { @@ -29,7 +29,7 @@ difference { } texture { pigment { color rgb <0.20, 0.40, 0.10> } - finish { reflection 0.25 } + finish { reflection 0.15 } } } @@ -38,7 +38,7 @@ texture { sphere { 0, R_planete } texture { pigment { rgb <0.70, 0.50, 0.70> } - finish { reflection 0.25 } + finish { reflection 0.15 } } } @@ -52,26 +52,26 @@ union { // ======================================================= #local RO = 4.15; -#local CK = NormClock * 7.87; +#local CK = NormClock * 22.64; #declare PosX = RO * sin(CK); #declare PosY = 0; #declare PosZ = RO * cos(CK); object { HexaBenz () - rotate -y*CK*2.333 translate + rotate -y*CK*6.333 translate } #declare PosX = RO * sin(CK+2.12); #declare PosY = 0; #declare PosZ = RO * cos(CK+2.23); object { HexaCone () - rotate y*CK*3.222 translate + rotate y*CK*5.222 translate } object { Planete rotate (-clock*0.21)*y } light_source { <19, 6, 15>, rgb <0.77, 0.79, 0.80> } camera { - location <3, 1.50, 7.59> + location <3, 1.50, 10.59> look_at <0.0, 0.0, 0> focal_point <0.07, 0.0, 0> aperture 0.046 diff --git a/passage.pov b/passage.pov index 1ab2eda..c5e1fb8 100644 --- a/passage.pov +++ b/passage.pov @@ -19,8 +19,8 @@ object { Le_Decor } -#declare PosX = 0.333; -#declare PosY = 1.10 + (NormClock*0.24); +#declare PosX = 1.55; +#declare PosY = 1.90 + (NormClock*0.28); #declare PosZ = (NormClock-0.5) * 53.27; object { HexaBenz () translate } diff --git a/remote.pov b/remote.pov index 8122459..606196e 100644 --- a/remote.pov +++ b/remote.pov @@ -23,15 +23,15 @@ object { HexaBenz () translate <-4, 2, -5> } // light_source { <-16, 17, -24>, rgb <0.51, 0.65, 0.40> } // object { Repere scale 2 } -#local DistCam = 147; -#local CK = 0.78 * NormClock; +#local DistCam = 239; +#local CK = 0.70 * NormClock; #declare CamX = DistCam * sin(CK); -#declare CamY = 23; +#declare CamY = 28; #declare CamZ = DistCam * cos(CK); camera { location - look_at <0, 0, 0> + look_at <0, 0.3, 0> // focal_point <2, 1, 12> // aperture 0.046 // blur_samples 30 diff --git a/scene.pov b/scene.pov index 9f11e59..ee1ff27 100644 --- a/scene.pov +++ b/scene.pov @@ -34,9 +34,9 @@ object { HexaBenz () camera { location look_at Lat - focal_point Lat - aperture 0.046 - blur_samples 30 + // focal_point Lat + // aperture 0.046 + // blur_samples 30 angle 70 } diff --git a/topview.pov b/topview.pov index 064b4de..ca7563c 100644 --- a/topview.pov +++ b/topview.pov @@ -7,10 +7,6 @@ #include "globals.inc" -#include "colors.inc" -#include "metals.inc" -#include "textures.inc" - #include "contexte.inc" #include "elements.inc" #include "hexabenz.inc" @@ -32,14 +28,14 @@ object { HexaBenz () translate <-4, 2, -6> } light_source { <-16, 17, -24>, rgb <0.51, 0.65, 0.40> } // object { Repere scale 2 } -#declare CamY = 19 - (4.5*NormClock); +#declare CamY = 31 + (9.999*NormClock); #declare LatY = -3 + NormClock; camera { location <-3.60, CamY, 21.09> look_at <0, LatY, 0> - focal_point <2, 1, 12> - aperture 0.046 - blur_samples 30 + // focal_point <2, 1, 12> + // aperture 0.046 + // blur_samples 30 angle 45 + (5*NormClock) }