big commit, a lot of small adjustemnst
This commit is contained in:
79
contexte.inc
79
contexte.inc
@@ -46,17 +46,14 @@ texture { T }
|
||||
union {
|
||||
cylinder { 0, y*H_gyro, R_gyro }
|
||||
intersection {
|
||||
sphere { 0, R_gyro scale <1, 1.414, 1> }
|
||||
sphere { 0, R_gyro scale <1, 1.717, 1> }
|
||||
box { <-1, 0, -1>, <1, 1.94, 1> }
|
||||
translate y*(H_gyro+H_gylampe+0.04)
|
||||
}
|
||||
#local R = rand(Rng1);
|
||||
#if (R < 0.33333)
|
||||
texture { T_Stone25 scale 1+rand(Rng1) }
|
||||
#elseif (R < 0.66666)
|
||||
texture { T_Stone15 scale 1+rand(Rng1) }
|
||||
#else
|
||||
texture { T_Stone6 }
|
||||
#if (R < 0.33333) texture { T_Stone25 scale 1+rand(Rng1) }
|
||||
#elseif (R < 0.66666) texture { T_Stone15 scale 1+rand(Rng1) }
|
||||
#else texture { T_Stone6 }
|
||||
#end
|
||||
#undef R
|
||||
}
|
||||
@@ -93,7 +90,6 @@ union {
|
||||
union {
|
||||
object { GyroPhare_mat () }
|
||||
object { GyroPhare_lampe ()
|
||||
// rotate y*rand(Rng1)*clock
|
||||
translate y*(H_gyro+0.02) }
|
||||
}
|
||||
#end // macro
|
||||
@@ -168,19 +164,19 @@ merge {
|
||||
}
|
||||
}
|
||||
|
||||
#declare Les_Bibelots = object
|
||||
#declare Les_HexaBalls = object
|
||||
{
|
||||
union {
|
||||
object { HexaBalls
|
||||
texture { Lightning1 scale 0.44 }
|
||||
rotate <clock/3, clock/4, clock/9>
|
||||
translate <2, 1.21*Cos_010(NormClock), 4>
|
||||
translate <2, 1.71+Cos_010(NormClock), 4>
|
||||
}
|
||||
|
||||
object { HexaBalls
|
||||
texture { Lightning2 scale 0.56 }
|
||||
rotate <-clock, clock*0.33333, clock*3>
|
||||
translate <4, 1.41*Cos_010(NormClock), -3>
|
||||
translate <4, 1.51+Cos_010(NormClock), -3>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,42 +203,33 @@ blob {
|
||||
|
||||
/* ======================================================= */
|
||||
|
||||
/* ======================================================= */
|
||||
|
||||
#declare UnderHoles = array[6]
|
||||
|
||||
/*
|
||||
* on rempli le tableau avec la place des trous
|
||||
*/
|
||||
#fopen Holes "WS/holes.log" write
|
||||
// XXX #fopen Holes "WS/holes.log" write
|
||||
#for (Idx, 0, 5)
|
||||
#local Angle = (Idx + 0.19) * 1.090;
|
||||
#local Px = sin(Angle) * (SzSol * 0.97);
|
||||
#local Pz = cos(Angle) * (SzSol * 1.04);
|
||||
#declare UnderHoles[Idx] = <Px, 0, Pz>;
|
||||
#write (Holes, Idx, " ", Angle, " ", UnderHoles[Idx], "\n")
|
||||
// XXX #write (Holes, Idx, " ", Angle, " ", UnderHoles[Idx], "\n")
|
||||
#end
|
||||
#fclose Holes
|
||||
// XXX #fclose Holes
|
||||
|
||||
#declare Underground = object
|
||||
{
|
||||
difference {
|
||||
// plane { y, 0 }
|
||||
#local Big = 300;
|
||||
box { <-Big, -0.15, -Big>, < Big, 0.0000, Big> }
|
||||
box { <-Big, -0.19, -Big>, < Big, 0.0000, Big> }
|
||||
#undef Big
|
||||
#for (Foo, 0, 5)
|
||||
cylinder { -y*5, y*5, 3.2 translate UnderHoles[Foo] }
|
||||
#end
|
||||
texture { Ground_Texture }
|
||||
}
|
||||
texture { T_Planete_B scale 0.42 }
|
||||
/*
|
||||
texture {
|
||||
pigment { color Gray20 }
|
||||
normal { bumps 0.38 scale 2.6 }
|
||||
finish { phong 0.125 }
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/* ======================================================= */
|
||||
@@ -267,7 +254,7 @@ light_source {
|
||||
0
|
||||
color White
|
||||
fade_distance SzSol * 0.40
|
||||
fade_power 1.22
|
||||
fade_power 1.25
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,16 +286,15 @@ union {
|
||||
#local DX = 66 * sin(CK);
|
||||
#local DZ = 64 * cos(CK);
|
||||
|
||||
// #local Texte = str(CK, 5, 3);
|
||||
// #debug concat ("Les Choses, CK = ", Texte, "\n")
|
||||
|
||||
object { Chose () translate < DX, 0, DZ> } // XXX
|
||||
#end
|
||||
}
|
||||
}
|
||||
|
||||
/* ======================================================= */
|
||||
|
||||
/*
|
||||
* cette partie demande des explications
|
||||
*/
|
||||
#declare Les_Lumieres = object
|
||||
{
|
||||
union {
|
||||
@@ -335,30 +321,21 @@ union {
|
||||
point_at <0, 0.95, -0.22>
|
||||
}
|
||||
#end
|
||||
|
||||
#if (0)
|
||||
light_source {
|
||||
<-4, 54, -7>
|
||||
colour Gray50
|
||||
parallel
|
||||
point_at 0
|
||||
}
|
||||
#end
|
||||
}
|
||||
}
|
||||
|
||||
/* ======================================================= */
|
||||
|
||||
// #declare Le_Ciel = object
|
||||
// {
|
||||
/*
|
||||
* why a skysphere can't be an object ?
|
||||
*/
|
||||
sky_sphere {
|
||||
pigment {
|
||||
gradient y
|
||||
color_map {
|
||||
[ 0.2 color Gray20 ]
|
||||
[ 0.4 color rgb <.5, .3, .5> ]
|
||||
[ 0.7 color Gray30 ]
|
||||
[ 0.9 color rgb <.5, .6, .5> ]
|
||||
[ 0.4 color rgb <.5, .3, .4> ]
|
||||
[ 0.7 color Gray40 ]
|
||||
[ 0.9 color rgb <.5, .5, .4> ]
|
||||
[ 1.0 color Gray20 ]
|
||||
}
|
||||
turbulence 3.14159 + 0.84 * Cos_010(NormClock)
|
||||
@@ -368,9 +345,7 @@ sky_sphere {
|
||||
#local Kem = 0.09;
|
||||
emission rgb <Kem, Kem, Kem>
|
||||
}
|
||||
// }
|
||||
|
||||
/* ======================================================= */
|
||||
/* ======================================================= */
|
||||
/*
|
||||
* Et on rassemble tous les éléments...
|
||||
@@ -396,10 +371,12 @@ union {
|
||||
object { Les_Cahutes () translate <22, 0, -9> }
|
||||
|
||||
/* les trucs dans le Y négatif */
|
||||
object { OpenBox(2, 0.08) rotate <5, 7, -12+(24*NormClock)>
|
||||
translate <-22, 4, -79> }
|
||||
object { Les_Cahutes () rotate y*7 translate <35, 0, -84> }
|
||||
object { Les_Cahutes () rotate y*7 translate <34, 0, -76> }
|
||||
object { OpenBox(2, 0.08) rotate <0, -12+(24*NormClock), 0>
|
||||
translate <-19, 4, -86> }
|
||||
object { OpenBox(2, 0.08) rotate <0, -120+(4*NormClock), 0>
|
||||
translate <-17, 4, -104> }
|
||||
object { Les_Cahutes () rotate y*7 translate <35, 0, -91> }
|
||||
object { Les_Cahutes () rotate y*2 translate <31, 0, -79> }
|
||||
}
|
||||
}
|
||||
/* ------------------------------------------------------------ */
|
||||
|
||||
Reference in New Issue
Block a user