commit du soir, espoir

This commit is contained in:
Tonton Th
2025-02-04 01:06:18 +01:00
parent aed3fa6cf7
commit 3117141b52
18 changed files with 125 additions and 81 deletions

View File

@@ -4,11 +4,40 @@
/* voir aussi le fichier 'globals.inc' */
/* ------------------------------------------------------------ */
/* ======================================================= */
#declare GroudBase_coin = object
{
merge {
cylinder { 0, y*0.7, 0.09 }
sphere { 0, 0.09 scale <1, 0.3, 1> translate y*0.7 }
}
}
#declare GroundBase = object
{
#local Sz = SzBase - 0.02;
union {
box { <-SzBase, 0, -SzBase>, <SzBase, 0.2, SzBase> }
object { GroudBase_coin translate <-Sz, 0, -Sz> }
object { GroudBase_coin translate < Sz, 0, -Sz> }
object { GroudBase_coin translate <-Sz, 0, Sz> }
object { GroudBase_coin translate < Sz, 0, Sz> }
}
texture { T_Stone6 scale 0.6 }
#undef Sz
}
/* ======================================================= */
#macro GyroPhare_mat ()
cylinder {
0, y*H_gyro, R_gyro
union {
cylinder { 0, y*H_gyro, R_gyro }
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)
}
#if (rand(Rng1) < 0.5)
texture { T_Stone25 scale 1+rand(Rng1) }
#else
@@ -64,7 +93,7 @@ union {
#undef E
}
#end
/* ------------------------------------------------------------ */
/* ======================================================= */
#declare Rhxba = 0.30;
#declare R2hxba = Rhxba * 0.48;
@@ -121,7 +150,7 @@ blob {
}
}
// =======================================================
/* ======================================================= */
#declare Le_Sol = object
{
@@ -133,25 +162,28 @@ height_field {
texture {
pigment {
// color DarkGreen
image_map { png "datas/cmap.png" }
// translate <-.5, 0, -.5>
image_map { png "datas/noise.png" }
rotate x*90
translate <-.5, 0, -.5>
scale <SzSol, 0.98, SzSol>
}
// normal { bumps 0.035 scale 0.186 }
finish { phong 0.125 }
finish { phong 0.105 }
}
}
}
#declare Underground = object
{
plane { y, -0.80 }
plane { y, -1.75 }
texture {
pigment { color Gray20 }
normal { bumps 0.25 scale 6 }
normal { bumps 0.38 scale 4 }
finish { phong 0.125 }
}
}
// =======================================================
/* ======================================================= */
#declare Repere = object
{
@@ -163,6 +195,8 @@ union {
}
}
/* ======================================================= */
#declare OpenBox = object
{
union {
@@ -189,32 +223,23 @@ union {
}
}
// =======================================================
/* ======================================================= */
#declare Les_Lumieres = object
{
union {
#if (1)
light_source {
<0.3, 3.50, 2.8> color Gray90
<2.3, 5.50, 2.8> color Gray70
spotlight
radius 14 falloff 10 tightness 10
point_at <0, 0.95, 0.22222222>
}
#end
#if ( (clock>166) & (clock<213) )
light_source {
<2, 10.30, -2> color Yellow
spotlight
radius 12 falloff 20 tightness 10
point_at <-0.08, 0.80, 0.17>
}
#end
#if (1)
light_source {
<-5, 5.60, 8>
<-5, 5.60, 18>
#if ( (clock > 290) & (clock<344) )
#local Couleur = rgb <0.20, 0.20, 0.90>;
#else
@@ -229,7 +254,7 @@ union {
light_source {
<-4, 54, -7>
colour Yellow*0.76
colour Gray50
parallel
point_at 0
}
@@ -237,6 +262,8 @@ union {
}
}
/* ======================================================= */
// #declare Le_Ciel = object
// {
sky_sphere {
@@ -258,7 +285,7 @@ sky_sphere {
}
// }
/* ------------------------------------------------------------ */
/* ======================================================= */
/*
* Et on rassemble tous les éléments...
*/
@@ -267,6 +294,7 @@ sky_sphere {
union {
object { Le_Sol }
object { Underground }
object { GroundBase }
object { Les_Bibelots }
object { Les_Lumieres }
object { Les_GyroPhares () }