HexaCone/escadrille.pov
2025-03-31 03:55:29 +02:00

66 lines
1.4 KiB
POVRay

/*
* H E X A C O N E
*
* nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024
*/
#version 3.7;
#include "globals.inc"
#include "contexte.inc"
#include "hexacone.inc"
#include "hexabenz.inc"
#include "hexawood.inc"
#include "trident.inc"
// =======================================================
#include "dynamic.inc"
#for (idX, -3, 3)
#for (idZ, -3, 3)
#local posX = (idX * 4.72) + (rand(Rng1)-0.5);
#local posY = 3.1 + (1.2*(rand(Rng1)-0.5));
#local posZ = (idZ * 4.37) ;
#local Rx = (rand(Rng1) - 0.5) * 8;
#local Ry = (rand(Rng1) - 0.5) * 14;
#local Rz = (rand(Rng1) - 0.5) * 11;
// #debug concat("X ", str(posX,7,3), " Z ", str(posZ,7,3), "\n")
// #debug concat("position Z ", str(posZ,7,3),"\n")
#if ( (abs(posX)>1.2) & (abs(posZ)>1.2) )
#if (rand(Rng1) < 0.505)
object { HexaCone () rotate <Rx, Ry, Rz>
translate <posX, posY, posZ> }
#else
object { HexaBenz () rotate <Rx, Ry, Rz>
translate <posX, posY, posZ> }
#end
// #debug "\n"
#end // if pos...
#end // loop IDX
#end // loop idZ
// =======================================================
object { Le_Decor }
// object { Repere scale 5 translate y }
#local CamX = -8.7 + (6.6*Cos_01(NormClock));
#local CamY = 2.95 + (18.64*Cos_01(NormClock));
#local CamZ = 16.86 + (12.9*Cos_01(NormClock));
camera {
location <CamX, CamY, CamZ>
look_at <0.0, -NormClock, 0>
angle 64 - (3.97 * NormClock)
}