Compare commits

...

5 Commits

Author SHA1 Message Date
Tonton Th
8a3e889145 better random seed 2024-12-26 17:21:02 +01:00
Tonton Th
d299ad13a1 add random numbers generator 2024-12-23 20:09:00 +01:00
Tonton Th
89c78425ce fix critical bug 2024-12-23 20:08:25 +01:00
Tonton Th
00790763b1 add rotor to the reactors 2024-12-23 19:36:38 +01:00
Tonton Th
1fc0810d40 small encoder script 2024-12-23 19:35:42 +01:00
4 changed files with 65 additions and 36 deletions

View File

@ -21,7 +21,7 @@ union {
union { union {
difference { difference {
object { HexaCone_shape } object { HexaCone_shape }
object { HexaCone_shape scale 0.99 } object { HexaCone_shape scale 0.98 }
sphere {0, 0.24 } sphere {0, 0.24 }
cylinder { <-1, 0, 0.55>, <1, 0, 0.55>, cylinder { <-1, 0, 0.55>, <1, 0, 0.55>,
RA*0.40 } RA*0.40 }
@ -33,7 +33,10 @@ union {
cylinder {-y, y, 0.10 } cylinder {-y, y, 0.10 }
cylinder {-z, z, 0.10 } cylinder {-z, z, 0.10 }
} }
light_source { 0, rgb <0.99, 0.05, 0.05> // clignotement de la lumiere \o/
// #local Red = abs(sin(NormClock * 47.88));
#local Red = rand(R2);
light_source { 0, rgb <Red, 0.03, 0.03>
fade_distance 0.99 fade_distance 0.99
fade_power 1.58 fade_power 1.58
} }
@ -119,6 +122,36 @@ merge {
texture { Orange_Glass } texture { Orange_Glass }
} }
/* ------------------------------------------
* new Sat Dec 21 11:17:36 PM UTC 2024
*/
#declare DXail = 0.001;
#declare DYail = 0.0025;
#declare DZail = 0.028;
#declare Une_Ailettte = object
{
box { <-DXail, -DYail, -DZail> , <DXail, DYail, DZail/5> }
}
#declare Le_rotor = object
{
union {
cylinder { <-0.1, 0, 0>, <0.1, 0, 0>, 0.003 }
#for (foo, 0, 18)
object { Une_Ailettte
rotate (foo*27)*x
translate ((foo*0.012)-0.05)*x }
#end
}
// texture { T_Chrome_1C }
texture {
pigment { color Orange }
// finish { emission 0.7 }
finish { ambient 0.7 phong 0.5 brilliance 0.9 metallic 0.7 }
}
}
/* ------------------------------------------------------ /* ------------------------------------------------------
* *
*/ */
@ -149,16 +182,27 @@ merge {
texture { T_Brass_1C } texture { T_Brass_1C }
} }
#declare Les_Tuyeres = object #declare Reacteur = object
{
union {
object { Tuyere }
object { Le_rotor rotate x*clock translate -0.05*x }
}
}
#declare Les_Reacteurs = object
{ {
union { union {
#local E = 0.59; #local E = 0.59;
object { Tuyere translate -E*z } object { Reacteur translate -E*z }
object { Tuyere translate E*z } object { Reacteur translate E*z }
} }
rotate -y*90 rotate -y*90
} }
// ###########################################################""
#declare HexaCone = object #declare HexaCone = object
{ {
union { union {
@ -167,7 +211,7 @@ union {
object { HexaCone_head translate <0, 0, T+DTa> } object { HexaCone_head translate <0, 0, T+DTa> }
object { HexaCone_radar translate <0, T+0.18, 0> } object { HexaCone_radar translate <0, T+0.18, 0> }
object { HexaCone_derives translate <0, 0, -0.67> } object { HexaCone_derives translate <0, 0, -0.67> }
object { Les_Tuyeres translate -0.18*y } object { Les_Reacteurs translate -0.18*y }
} }
rotate <-7, 0, -4> rotate <-7, 0, -4>
} }

5
encode.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
source ./fonctions.sh
ff_encodage

View File

@ -10,6 +10,9 @@ global_settings {
max_trace_level 10 max_trace_level 10
} }
#declare R2 = seed(clock);
#declare foo = rand(R2);
#include "colors.inc" #include "colors.inc"
#include "metals.inc" #include "metals.inc"
#include "textures.inc" #include "textures.inc"
@ -20,42 +23,16 @@ global_settings {
// ======================================================= // =======================================================
/* ------------------------------------------
* new Sat Dec 21 11:17:36 PM UTC 2024
*/
#declare DXail = 0.001;
#declare DYail = 0.0025;
#declare DZail = 0.028;
#declare Une_Ailettte = object
{
box { <-DXail, -DYail, -DZail> , <DXail, DYail, DZail/5> }
pigment { color Cyan }
}
#declare Le_rotor = object
{
union {
cylinder { <-0.1, 0, 0>, <0.1, 0, 0>, 0.001
pigment { color Magenta } }
#for (foo, 0, 18)
object { Une_Ailettte
rotate (foo*27)*x
translate ((foo*0.01)-0.05)*x }
#end
}
}
// ======================================================= // =======================================================
object { Tuyere translate <0, 1, 0> } object { Reacteur translate <0, 1, 0> }
object { Le_rotor translate <0, 1, 0> }
light_source { <-6, 7, -4>, rgb <0.81, 0.65, 0.40> } light_source { <-6, 7, -4>, rgb <0.81, 0.65, 0.40> }
light_source { <-6, 7, 4>, rgb <0.31, 0.65, 0.80> } light_source { <-6, 7, 4>, rgb <0.31, 0.65, 0.80> }
camera { camera {
location <-0.99, 1.01, 0.24> location <-0.91, 1.01, 0.20>
look_at <0, 1.0, 0> look_at <0, 1.0, 0>
angle 37 angle 32
} }

View File

@ -6,7 +6,7 @@
global_settings { global_settings {
assumed_gamma 1.0 assumed_gamma 1.0
ambient_light rgb <0.02, 0.02, 0.02> ambient_light rgb <0.04, 0.07, 0.04>
max_trace_level 10 max_trace_level 10
} }
@ -14,6 +14,9 @@ global_settings {
#include "metals.inc" #include "metals.inc"
#include "textures.inc" #include "textures.inc"
#declare R2 = seed(now*24*60*60);
#declare foo = rand(R2);
#declare NormClock = clock / 360.0; #declare NormClock = clock / 360.0;
#include "contexte.inc" #include "contexte.inc"
#include "elements.inc" #include "elements.inc"