Fortraneries/BloubWorld/scene.pov

94 lines
1.9 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-02-17 00:25:43 +11:00
ambient_light rgb <0.12, 0.04, 0.04>
2022-02-07 09:45:08 +11:00
assumed_gamma 1.0
}
#include "colors.inc"
2022-02-09 04:56:51 +11:00
#include "nbimg.inc"
#declare NormClock = clock / NbImg;
// ----------------------------------------------------------
2022-02-07 09:45:08 +11:00
#include "bloubs.inc"
object {
Bloubs
texture {
2022-02-09 04:56:51 +11:00
pigment { color Gray60 }
finish { phong 0.58 specular 0.45 }
2022-02-07 09:45:08 +11:00
}
}
plane {
<0, 1, 0>, 0
texture {
2022-02-11 20:23:13 +11:00
pigment { color Gray05 }
2022-02-07 11:50:49 +11:00
finish { phong 0.18 metallic 0.45 }
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
#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-02-08 12:53:49 +11:00
cylinder { <0, 0, 0>, <0, BV, 0>, BR }
2022-02-17 00:25:43 +11:00
cylinder { <0, 0, 0>, <0, 0.04, 0>, BR*6 }
}
}
#declare Cadre_Haut = object
{
merge {
cylinder { <-BH, 0, -BH>, <-BH, 0, BH>, BR }
cylinder { < BH, 0, -BH>, < BH, 0, BH>, BR }
cylinder { < BH, 0, -BH>, <-BH, 0, -BH>, BR }
cylinder { < BH, 0, BH>, <-BH, 0, BH>, BR }
2022-02-08 12:53:49 +11:00
}
2022-02-17 00:25:43 +11:00
pigment { color Gray50 }
2022-02-08 12:53:49 +11:00
}
#declare Les_Bornes = object
{
2022-02-07 11:50:49 +11:00
union {
2022-02-17 00:25:43 +11:00
object { Cadre_Haut translate y*(BV-0.05) }
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-11 20:23:13 +11:00
light_source { <9, 22, -17> color Gray80 }
light_source { <11, 19, 9> color Gray60 }
2022-02-09 04:56:51 +11:00
2022-02-11 20:23:13 +11:00
#declare HCAM = 5 + (11 * NormClock);
#fopen LC "log.camera" append
#write (LC, clock, " ", NormClock, " ", HCAM, "\n")
#fclose LC
2022-02-07 09:45:08 +11:00
camera {
2022-02-11 20:23:13 +11:00
location <7, HCAM, -16>
look_at <0, 1, 0>
2022-02-07 09:45:08 +11:00
right x*image_width/image_height
2022-02-11 20:23:13 +11:00
angle 50
2022-02-07 09:45:08 +11:00
}