Fortraneries/BloubWorld/scene.pov

131 lines
2.8 KiB
POVRay
Raw Normal View History

2022-02-07 09:45:08 +11:00
/*
* BLOUBSWORLD
* new Sun 06 Feb 2022 01:33:39 PM CET, rue Ernest Renan
*/
#version 3.7;
global_settings {
2022-03-16 23:44:29 +11:00
ambient_light rgb <0.14, 0.08, 0.08>
2022-02-07 09:45:08 +11:00
assumed_gamma 1.0
}
#include "colors.inc"
2022-03-18 22:21:40 +11:00
2022-02-19 05:30:10 +11:00
#include "WS/nbimg.inc"
2022-02-09 04:56:51 +11:00
#declare NormClock = clock / NbImg;
// ----------------------------------------------------------
2022-02-19 05:30:10 +11:00
#include "WS/bloubs.inc"
2022-03-16 23:44:29 +11:00
#fopen LC "WS/log.nb_bloubs" append
#write (LC, " ", Nb_Bloubs, "\n")
2022-02-19 05:30:10 +11:00
#fclose LC
2022-02-07 09:45:08 +11:00
object {
Bloubs
2022-03-11 15:47:38 +11:00
finish { phong 0.55 specular 0.55 }
2022-02-07 09:45:08 +11:00
}
2022-03-16 23:44:29 +11:00
object {
union {
2022-03-18 22:21:40 +11:00
plane { <1, 0, 0>, -32 }
plane { <1, 0, 0>, 32 }
2022-03-16 23:44:29 +11:00
plane { <0, 1, 0>, -23 }
plane { <0, 1, 0>, 23 }
plane { <0, 0, 1>, 50 }
texture {
2022-03-18 22:21:40 +11:00
pigment { color srgb <0.125, 0.144, 0.111> }
finish { phong 0.18 metallic 0.25 reflection 0.35 }
2022-03-16 23:44:29 +11:00
}
2022-02-07 09:45:08 +11:00
}
}
2022-02-07 11:50:49 +11:00
// ----------------------------------------------------------
2022-02-17 00:25:43 +11:00
#declare BH = 5; // H = taille en horizontal
#declare BV = 5; // V = taille en vertical
2022-03-16 23:44:29 +11:00
#declare BR = 0.028;
2022-02-08 12:53:49 +11:00
#declare Une_Borne = object
{
2022-02-17 00:25:43 +11:00
merge {
2022-03-16 23:44:29 +11:00
cylinder { <0, BV, 0>, <0, -BV, 0>, BR }
2022-03-18 22:21:40 +11:00
cylinder { <0, 0.012, 0>, <0, -0.012, 0>, BR*4 }
2022-02-17 00:25:43 +11:00
}
}
2022-02-17 09:39:11 +11:00
#declare Un_Cadre = object
2022-02-17 00:25:43 +11:00
{
merge {
2022-03-16 23:44:29 +11:00
#local Ruc = BR * 0.90;
cylinder { <-BH, 0, -BH>, <-BH, 0, BH>, Ruc }
cylinder { < BH, 0, -BH>, < BH, 0, BH>, Ruc }
cylinder { < BH, 0, -BH>, <-BH, 0, -BH>, Ruc }
cylinder { < BH, 0, BH>, <-BH, 0, BH>, Ruc }
2022-02-08 12:53:49 +11:00
}
2022-02-17 09:39:11 +11:00
pigment { color Gray40 }
2022-02-08 12:53:49 +11:00
}
#declare Les_Bornes = object
{
2022-02-07 11:50:49 +11:00
union {
2022-03-16 23:44:29 +11:00
#local E = 0.002;
object { Un_Cadre translate y*(BV-E) }
object { Un_Cadre translate -y*(BV-E) }
2022-02-17 00:25:43 +11:00
2022-02-08 12:53:49 +11:00
object { Une_Borne translate <-BH, 0, -BH> pigment { color Blue } }
object { Une_Borne translate < BH, 0, -BH> pigment { color Green } }
object { Une_Borne translate <-BH, 0, BH> pigment { color Green } }
object { Une_Borne translate < BH, 0, BH> pigment { color Red } }
2022-02-07 11:50:49 +11:00
}
}
object { Les_Bornes }
// ----------------------------------------------------------
2022-02-17 09:39:11 +11:00
#local D = 0.016;
#declare Fleche = object
{
merge {
sphere { <-0.05, 0, 0>, D }
cylinder { <1, 0, 0>, <-0.05, 0, 0>, D }
cone { <1, 0, 0>, D*3.1, <1.10, 0, 0>, 0.0001 }
}
}
#declare Repere = object
{
union {
object { Fleche pigment { color Red }}
object { Fleche rotate z*90 pigment { color Green }}
object { Fleche rotate y*270 pigment { color Blue }}
}
}
// ----------------------------------------------------------
2022-03-16 23:44:29 +11:00
light_source { <19, -12, -17> color Gray80 }
light_source { <11, 14, 9> color Gray60 }
2022-02-07 11:50:49 +11:00
2022-03-16 23:44:29 +11:00
#declare XCAM = 8 - ( 15 * NormClock);
#declare YCAM = 1 + (0.75 * NormClock);
#declare ZCAM = -17.5;
2022-02-09 04:56:51 +11:00
2022-03-16 23:44:29 +11:00
#declare XLAT = Bary_X;
#declare YLAT = Bary_Y;
#declare ZLAT = Bary_Z;
2022-02-11 20:23:13 +11:00
2022-03-16 23:44:29 +11:00
// object { Repere scale 2.5 translate <XLAT, YLAT, ZLAT> }
2022-02-07 09:45:08 +11:00
camera {
2022-02-19 05:30:10 +11:00
location <XCAM, YCAM, ZCAM>
2022-03-16 23:44:29 +11:00
look_at <XLAT, YLAT, ZLAT>
2022-02-07 09:45:08 +11:00
right x*image_width/image_height
2022-03-16 23:44:29 +11:00
angle 66
2022-02-07 09:45:08 +11:00
}