add and move stuff

This commit is contained in:
Tonton Th 2025-01-01 16:20:23 +01:00
parent 09792791f7
commit e9ae829ab3

View File

@ -3,20 +3,6 @@
*/ */
#declare Rng2 = seed(now*24*60*60);
#declare foo = rand(Rng2);
#declare NormClock = clock / 360.0;
/* ------------------------------------------------------------ */
#macro Cos_01( X )
(0.5-0.5*cos( 3.141592654 * X))
#end
#macro Cos_010( X )
(0.5-0.5*cos( 2 * 3.141592654 * X))
#end
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
#declare Rhxba = 0.30; #declare Rhxba = 0.30;
@ -36,20 +22,26 @@ merge {
} }
} }
#declare Les_Bibelots = object
{
union {
object { HexaBalls object { HexaBalls
texture { Lightning1 scale 0.33 } texture { Lightning1 scale 0.33 }
rotate <clock/3, clock/6, clock/9> rotate <clock/3, clock/6, clock/9>
translate <3, 0.72, 5> translate <3, -1+1.11*Cos_010(NormClock), 5>
} }
object { HexaBalls object { HexaBalls
texture { Lightning2 scale 0.33 } texture { Lightning2 scale 0.56 }
rotate <-clock, clock*0.62, clock> // rotate <-clock, clock*0.62, clock>
translate <5, 0.92, -4> translate <5, -1+0.92*Cos_010(NormClock), -4>
}
}
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
#declare Le_Sol = object
{
height_field { height_field {
png "datas/hf.png" png "datas/hf.png"
smooth smooth
@ -61,7 +53,7 @@ height_field {
finish { phong 0.125 } finish { phong 0.125 }
} }
} }
}
#declare Repere = object #declare Repere = object
{ {
@ -71,13 +63,14 @@ union {
} }
} }
#declare Les_Lumieres = object
{
union {
#if (1) #if (1)
light_source { light_source {
<0.3, 2.50, 2.8> color Gray90 <0.3, 2.50, 2.8> color Gray90
spotlight spotlight
radius 14 radius 14 falloff 10 tightness 10
falloff 10
tightness 10
point_at <0, 0.95, 0.22222222> point_at <0, 0.95, 0.22222222>
} }
#end #end
@ -86,9 +79,7 @@ light_source {
light_source { light_source {
<2, 0.30, -2> color Yellow <2, 0.30, -2> color Yellow
spotlight spotlight
radius 12 radius 12 falloff 20 tightness 10
falloff 20
tightness 10
point_at <-0.08, 0.80, 0.17> point_at <-0.08, 0.80, 0.17>
} }
#end #end
@ -103,9 +94,40 @@ light_source {
#end #end
color Couleur color Couleur
spotlight spotlight
radius 9 radius 9 falloff 10 tightness 5
falloff 10
tightness 5
point_at <0, 0.95, -0.22> point_at <0, 0.95, -0.22>
} }
#end #end
}
}
// #declare Le_Ciel = object
// {
sky_sphere {
pigment {
gradient y
color_map {
[ 0.5 color Orange*0.7 ]
[ 1.0 color Yellow*0.5 ]
}
turbulence 2.87 + Cos_010(NormClock)
scale 0.207
translate -1
}
emission rgb <0.1, 0.1, 0.1>
}
// }
/* ------------------------------------------------------------ */
/*
* Et on rassemble tous les éléments...
*/
#declare Le_Decor = object
{
union {
object { Le_Sol }
object { Les_Bibelots }
object { Les_Lumieres }
}
}
/* ------------------------------------------------------------ */