a lot of change, stay tuned

This commit is contained in:
Tonton Th
2025-02-19 02:49:16 +01:00
parent 532560518c
commit db5eedffe1
17 changed files with 285 additions and 205 deletions

View File

@@ -11,22 +11,6 @@
* une cabane pour faire riche.
*/
/*
* deux textures
*/
#declare T_Beton_1 = texture
{
pigment { color <0.9, 0.8, 0.8> }
normal { dents 0.75 scale 0.3 }
finish { roughness 1.00 }
}
#declare T_Beton_2 = texture
{
pigment { color <0.7, 0.6, 0.6> }
normal { dents 0.25 scale 2 }
finish { roughness 1.00 }
}
/*
* une seule forme de cabane pour le moment
@@ -38,7 +22,7 @@ difference {
box { <-0.90, 0, 0>, <0.90, Hc, 0.80> }
box { <-0.89, 0.01, -1> <0.89, Hc-0.01, 0.79> }
#local Hc = Hc * 0.75;
cylinder { <-1, Hc, -0.23>, <1, Hc, 0.23>, 0.09 }
cylinder { <-1, Hc, -0.29>, <1, Hc, 0.29>, 0.09 }
#undef Hc
}
}
@@ -85,7 +69,7 @@ union {
#undef Dx
#undef Dz
}
texture { T_Stone2 rotate 49 scale 0.22 }
texture { T_Grnt7 rotate 49 scale 0.22 }
}
#declare GroundBase_b = object
@@ -98,7 +82,7 @@ union {
object { GroudBase_coin translate <-Sz, 0, Sz> }
object { GroudBase_coin translate < Sz, 0, Sz> }
}
texture { T_Stone6 rotate 9 scale 0.32 }
texture { T_Grnt27 rotate 9 scale 0.32 }
#undef Sz
}
@@ -124,7 +108,7 @@ union {
intersection {
sphere { 0, R_gyro scale <1, 1.414, 1> }
box { <-1, 0, -1>, <1, 1, 1> }
translate y*(H_gyro+H_gylampe+0.01)
translate y*(H_gyro+H_gylampe+0.02)
}
#if (rand(Rng1) < 0.5)
texture { T_Stone25 scale 1+rand(Rng1) }
@@ -137,17 +121,18 @@ union {
#macro GyroPhare_lampe ()
union {
difference {
cylinder { 0, y*0.20, R_gyro }
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
cylinder { 0, y*H_gylampe, R_gyro }
cylinder { y*0.01, y*(H_gylampe-0.01), R_gyro*0.97 }
#local WB = 0.015;
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
box { <-1, 0.03, -WB>, <1, (H_gylampe-0.03), WB> }
box { <-WB, 0.03, -1>, <WB, (H_gylampe-0.03), 1> }
#undef WB
pigment { color Gray90 }
#local Ro = 0.5-rand(Rng1);
#if (abs(Ro) < 0.01)
#local Ro = 5.89*(0.5-rand(Rng1));
#if (abs(Ro) < 0.06)
#local Ro = Ro * 10;
#end
#undef Ro
rotate y*(0.5-rand(Rng1)) * clock
}
light_source { y*0.10
@@ -169,7 +154,7 @@ union {
#macro Les_GyroPhares ()
union {
#local E = SzSol * 0.485;
#local E = SzSol * 0.488;
object { GyroPhare () translate <-E, 0, -E> }
object { GyroPhare () translate < E, 0, -E> }
object { GyroPhare () translate <-E, 0, E> }
@@ -207,13 +192,13 @@ union {
object { HexaBalls
texture { Lightning1 scale 0.33 }
rotate <clock/3, clock/6, clock/9>
translate <5, -1.1+1.01*Cos_010(NormClock), 7>
translate <2, -1.1+1.01*Cos_010(NormClock), 4>
}
object { HexaBalls
texture { Lightning2 scale 0.56 }
// rotate <-clock, clock*0.33333, clock>
translate <7, -1+0.92*Cos_010(NormClock), -6>
rotate <-clock, clock*0.33333, clock>
translate <5, -1+0.92*Cos_010(NormClock), -3>
}
}
}
@@ -246,14 +231,14 @@ height_field {
png "datas/hf.png"
smooth
translate <-.5, 0, -.5>
scale <SzSol, 0.98, SzSol>
scale <SzSol, 1, SzSol>
texture {
pigment {
// color DarkGreen
image_map { png "datas/noise.png" }
image_map { png "datas/cmap.png" }
rotate x*90
translate <-.5, 0, -.5>
scale <SzSol, 0.98, SzSol>
scale <SzSol, 1, SzSol>
}
// normal { bumps 0.035 scale 0.186 }
finish { phong 0.105 }
@@ -261,14 +246,28 @@ height_field {
}
}
/* ======================================================= */
#declare Underground = object
{
plane { y, -1.75 }
difference {
// plane { y, 0 }
#local Big = 300;
box { <-Big, -0.01, -Big>, < Big, 0.01, Big> }
#undef Big
#local W = SzSol * 1.204;
cylinder { <-W, -1, -W>, <-W, 1, -W>, 5 }
cylinder { <-W, -1, W>, <-W, 1, W>, 7 }
cylinder { < W, -1, W>, < W, 1, W>, 9 }
#undef W
}
texture {
pigment { color Gray20 }
normal { bumps 0.38 scale 4 }
normal { bumps 0.38 scale 3 }
finish { phong 0.125 }
}
rotate y*35
translate -y*2.55
}
/* ======================================================= */
@@ -311,6 +310,34 @@ union {
}
}
/* ======================================================= */
/*
* nouvel éclairage du 10 février 2025
*/
#declare Quad_lampe = object
{
light_source {
0
color White
fade_distance SzSol * 0.40
fade_power 1.20
}
}
#declare QuadriLight = object
{
#local T = E_QuadriLight;
#local H = H_QuadriLight;
// #local H = 5;
union {
object { Quad_lampe translate <-T, H, -T> }
object { Quad_lampe translate < T, H, -T> }
object { Quad_lampe translate <-T, H, T> }
object { Quad_lampe translate < T, H, T> }
}
rotate -12 * y
}
/* ======================================================= */
#declare Les_Lumieres = object
@@ -358,14 +385,14 @@ sky_sphere {
pigment {
gradient y
color_map {
[ 0.2 color Gray10 ]
[ 0.4 color Gray60 ]
[ 0.7 color Black ]
[ 0.8 color White ]
[ 1.0 color Gray10 ]
[ 0.2 color Gray10 ]
[ 0.4 color rgb <.4, .3, .8> ]
[ 0.7 color Gray20 ]
[ 0.8 color rgb <.95, .7, .6> ]
[ 1.0 color Gray10 ]
}
turbulence 3.14159 + 0.74 * Cos_010(NormClock)
scale 1.804
scale 1.620
// translate -1
}
#local Kem = 0.09;
@@ -374,6 +401,15 @@ sky_sphere {
// }
/* ======================================================= */
/* XXX XXX */
light_source {
<-4, 54, -17>
colour Gray40
parallel
point_at 0
}
/*
* Et on rassemble tous les éléments...
*/
@@ -384,7 +420,8 @@ union {
object { Underground }
object { La_GroundBase }
// object { Les_Bibelots }
object { Les_Lumieres }
// object { Les_Lumieres }
object { QuadriLight }
object { Les_GyroPhares () }
}
}