2024-12-16 03:53:42 +11:00
|
|
|
/*
|
2024-12-31 22:51:12 +11:00
|
|
|
* H E X A C O N E - E S S A I
|
2025-01-08 10:13:37 +11:00
|
|
|
* nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024
|
2024-12-16 03:53:42 +11:00
|
|
|
*/
|
|
|
|
|
|
|
|
#version 3.7;
|
|
|
|
|
2024-12-29 14:56:10 +11:00
|
|
|
#include "globals.inc"
|
2024-12-24 06:09:00 +11:00
|
|
|
|
2024-12-21 00:24:45 +11:00
|
|
|
|
2024-12-23 01:05:36 +11:00
|
|
|
#declare NormClock = clock / 360.0;
|
2024-12-16 03:53:42 +11:00
|
|
|
#include "contexte.inc"
|
2024-12-23 01:05:36 +11:00
|
|
|
#include "elements.inc"
|
2025-01-08 10:13:37 +11:00
|
|
|
#include "hexabenz.inc"
|
2024-12-23 01:05:36 +11:00
|
|
|
|
|
|
|
// =======================================================
|
|
|
|
|
2025-01-08 10:13:37 +11:00
|
|
|
#macro Bubble ()
|
|
|
|
sphere {
|
|
|
|
0, 0.10
|
2025-01-12 12:33:39 +11:00
|
|
|
#if ( rand(Rng1) < 0.333 )
|
|
|
|
texture { Ruby_Glass }
|
|
|
|
#elseif ( rand(Rng1) < 0.666 )
|
|
|
|
tus texture { Orange_Glass }
|
|
|
|
#else
|
|
|
|
texture { Gold_Nugget scale 0.56 }
|
2025-01-08 10:13:37 +11:00
|
|
|
#end
|
|
|
|
}
|
|
|
|
#end
|
2024-12-21 00:24:45 +11:00
|
|
|
|
2025-01-08 10:13:37 +11:00
|
|
|
#macro Un_Machin ()
|
|
|
|
union {
|
|
|
|
#for (Y, -8, 8, 2)
|
|
|
|
object { Bubble() translate y*Y*0.1 }
|
|
|
|
#end
|
2024-12-31 22:51:12 +11:00
|
|
|
}
|
2025-01-08 10:13:37 +11:00
|
|
|
#end
|
2024-12-31 22:51:12 +11:00
|
|
|
|
2025-01-08 10:13:37 +11:00
|
|
|
#declare Les_Machins = object
|
|
|
|
{
|
|
|
|
union {
|
2025-01-12 12:33:39 +11:00
|
|
|
#for (Xp, -10, 10)
|
|
|
|
#if ( rand(Rng1) < 0.5 )
|
|
|
|
object { HexaCone_radar_A translate x*Xp*0.6 }
|
|
|
|
#else
|
|
|
|
object { Un_Machin () translate x*Xp*0.6 }
|
|
|
|
#end
|
|
|
|
|
2025-01-08 10:13:37 +11:00
|
|
|
#end
|
|
|
|
}
|
|
|
|
}
|
2024-12-31 22:51:12 +11:00
|
|
|
|
2025-01-08 10:13:37 +11:00
|
|
|
object { Les_Machins }
|
2024-12-31 22:51:12 +11:00
|
|
|
|
2025-01-08 10:13:37 +11:00
|
|
|
// object { Repere }
|
2024-12-29 14:56:10 +11:00
|
|
|
|
|
|
|
// =======================================================
|
2024-12-16 03:53:42 +11:00
|
|
|
|
2024-12-31 22:51:12 +11:00
|
|
|
light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> }
|
|
|
|
light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> }
|
2024-12-16 08:24:38 +11:00
|
|
|
|
2024-12-16 03:53:42 +11:00
|
|
|
camera {
|
2025-01-08 10:13:37 +11:00
|
|
|
location <-10.7+4*NormClock, 2.81, 8.09>
|
|
|
|
look_at <0.0, 0.0, 0>
|
|
|
|
angle 44
|
2024-12-16 03:53:42 +11:00
|
|
|
}
|