HexaCone/essai.pov

65 lines
1.3 KiB
POVRay
Raw Normal View History

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-16 03:53:42 +11:00
#include "contexte.inc"
2025-02-10 14:16:53 +11:00
#include "gadgets.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-02-10 05:02:32 +11:00
// =======================================================
2025-02-10 14:16:53 +11:00
#macro GGG_Un_Cone ()
merge {
#local RA = R_basecone;
cone { 0, RA, y*0.89, 0.000001 }
sphere { 0, RA }
2025-01-08 10:13:37 +11:00
}
#end
2024-12-21 00:24:45 +11:00
2025-02-10 14:16:53 +11:00
#macro GGG_Cones ()
2025-01-08 10:13:37 +11:00
union {
2025-02-10 14:16:53 +11:00
#for (foo, 0, 360, 60)
#local E = 0.50;
#local Tx = 1.333 * E * sin(radians(foo));
#local Tz = E * cos(radians(foo));
object {
GGG_Un_Cone ()
#if ( rand(Rng1) < 0.5001 )
texture { T_Wood32 rotate 17 scale 1.50 }
#else
texture { T_Wood23 scale 2.50 }
#end
// rotate -z*foo
translate <Tx, 0, Tz>
}
#end // end for
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-02-10 14:16:53 +11:00
object { GGG_Cones () translate y*0.5 }
2024-12-31 22:51:12 +11:00
2025-01-27 13:34:51 +11:00
// =======================================================
2025-02-10 14:16:53 +11:00
object { OpenBox translate y*1.2 }
2025-01-27 13:34:51 +11:00
object { Le_Decor }
2024-12-31 22:51:12 +11:00
2025-02-10 14:16:53 +11:00
// object { Repere translate y*2 }
2024-12-29 14:56:10 +11:00
// =======================================================
2024-12-16 03:53:42 +11:00
2025-02-10 14:16:53 +11:00
#local CamX = -2.7 + (3.8*Cos_010(NormClock));
2025-01-27 13:34:51 +11:00
#local CamY = 1.81 + (4*sqrt(NormClock));
2025-02-10 14:16:53 +11:00
#local CamZ = 1.7 + (3.8*Cos_010(NormClock));
2024-12-16 03:53:42 +11:00
camera {
2025-02-10 05:02:32 +11:00
// fisheye
2025-01-14 10:38:40 +11:00
location <CamX, CamY, 9.99>
2025-01-27 13:34:51 +11:00
look_at <0, 0.5, 0>
2025-02-10 05:02:32 +11:00
angle 32 + 4*Cos_01(NormClock)
2024-12-16 03:53:42 +11:00
}