HexaCone/contexte.inc

112 lines
2.0 KiB
PHP
Raw Normal View History

2024-12-16 03:53:42 +11:00
/*
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024
*/
2024-12-29 14:56:10 +11:00
#declare Rng2 = seed(now*24*60*60);
#declare foo = rand(Rng2);
2024-12-31 22:51:12 +11:00
#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
2024-12-29 14:56:10 +11:00
/* ------------------------------------------------------------ */
#declare Rhxba = 0.30;
#declare R2hxba = Rhxba * 0.48;
#declare HexaBalls = object
{
merge {
sphere { 0, Rhxba }
#local E = Rhxba * 1.260;
sphere { 0, R2hxba translate <-E, 0, 0> }
sphere { 0, R2hxba translate < E, 0, 0> }
sphere { 0, R2hxba translate < 0, -E, 0> }
sphere { 0, R2hxba translate < 0, E, 0> }
sphere { 0, R2hxba translate < 0, 0, -E> }
sphere { 0, R2hxba translate < 0, 0, E> }
}
}
object { HexaBalls
texture { Lightning1 scale 0.33 }
rotate <clock/3, clock/6, clock/9>
translate <3, 0.72, 5>
}
object { HexaBalls
texture { Lightning2 scale 0.33 }
rotate <-clock, clock*0.62, clock>
translate <5, 0.92, -4>
}
/* ------------------------------------------------------------ */
2024-12-16 03:53:42 +11:00
height_field {
png "datas/hf.png"
smooth
translate <-.5, 0, -.5>
2024-12-29 00:44:26 +11:00
scale <21, 0.88, 21>
2024-12-20 05:26:49 +11:00
texture {
pigment { color DarkGreen }
normal { bumps 0.035 scale 0.186 }
2024-12-29 00:44:26 +11:00
finish { phong 0.125 }
2024-12-20 05:26:49 +11:00
}
2024-12-16 03:53:42 +11:00
}
2024-12-30 05:02:14 +11:00
#declare Repere = object
{
union {
cylinder { 0, <1, 0, 0>, 0.007 pigment { color Red } }
cylinder { 0, <0, 0, 1>, 0.007 pigment { color Blue } }
}
}
2024-12-16 03:53:42 +11:00
2024-12-20 05:26:49 +11:00
#if (1)
2024-12-16 03:53:42 +11:00
light_source {
2024-12-29 00:44:26 +11:00
<0.3, 2.50, 2.8> color Gray90
2024-12-16 03:53:42 +11:00
spotlight
2024-12-29 00:44:26 +11:00
radius 14
2024-12-20 05:26:49 +11:00
falloff 10
2024-12-16 03:53:42 +11:00
tightness 10
point_at <0, 0.95, 0.22222222>
}
2024-12-20 05:26:49 +11:00
#end
2024-12-29 00:44:26 +11:00
#if ( (clock>166) & (clock<213) )
2024-12-20 05:26:49 +11:00
light_source {
2024-12-31 22:51:12 +11:00
<2, 0.30, -2> color Yellow
2024-12-20 05:26:49 +11:00
spotlight
radius 12
falloff 20
tightness 10
2024-12-29 00:44:26 +11:00
point_at <-0.08, 0.80, 0.17>
2024-12-20 05:26:49 +11:00
}
#end
2024-12-16 03:53:42 +11:00
2024-12-20 05:26:49 +11:00
#if (1)
2024-12-18 00:36:26 +11:00
light_source {
2024-12-29 14:56:10 +11:00
<-5, 5.60, 8>
2024-12-29 00:44:26 +11:00
#if ( (clock > 290) & (clock<344) )
2024-12-29 14:56:10 +11:00
#local Couleur = rgb <0.20, 0.20, 0.90>;
2024-12-29 00:44:26 +11:00
#else
#local Couleur = rgb <0.80, 0.80, 0.70>;
#end
color Couleur
2024-12-18 00:36:26 +11:00
spotlight
2024-12-29 14:56:10 +11:00
radius 9
2024-12-20 05:26:49 +11:00
falloff 10
2024-12-18 00:36:26 +11:00
tightness 5
point_at <0, 0.95, -0.22>
}
2024-12-20 05:26:49 +11:00
#end