Compare commits
4 Commits
877b5aaef6
...
1c2a4f9be2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c2a4f9be2 | ||
|
|
fd7c2fe707 | ||
|
|
3eae9b7308 | ||
|
|
b324d4a5df |
24
gadgets.inc
24
gadgets.inc
@ -9,8 +9,8 @@
|
|||||||
* une idée à creuser davantage...
|
* une idée à creuser davantage...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#declare Chose = object
|
#macro Chose () // = object
|
||||||
{
|
|
||||||
merge {
|
merge {
|
||||||
difference {
|
difference {
|
||||||
cone { -1.2*y, 0.81, 0.2*y, 1.12 }
|
cone { -1.2*y, 0.81, 0.2*y, 1.12 }
|
||||||
@ -25,17 +25,17 @@ merge {
|
|||||||
cylinder { 0, <C2X, H, C2Z>, R }
|
cylinder { 0, <C2X, H, C2Z>, R }
|
||||||
sphere { <C2X, H, C2Z>, R }
|
sphere { <C2X, H, C2Z>, R }
|
||||||
#end
|
#end
|
||||||
}
|
#if (rand(Rng1) < 0.42)
|
||||||
#if (rand(Rng1) < 0.225)
|
texture { tPlasticOrange }
|
||||||
texture { tPlasticOrange }
|
#else
|
||||||
#else
|
texture { Ruby_Glass }
|
||||||
texture { Ruby_Glass }
|
#end // if
|
||||||
#end
|
|
||||||
|
|
||||||
scale <0.62, 0.5, 0.61>
|
scale <0.62, 0.5, 0.61>
|
||||||
rotate -y*clock
|
rotate -y*clock
|
||||||
translate y*1.20
|
translate y*1.10
|
||||||
}
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
/* ======================================================= */
|
/* ======================================================= */
|
||||||
#declare Horloge = object
|
#declare Horloge = object
|
||||||
|
|||||||
15
globals.inc
15
globals.inc
@ -11,7 +11,7 @@ global_settings {
|
|||||||
#include "stones.inc"
|
#include "stones.inc"
|
||||||
#include "woods.inc"
|
#include "woods.inc"
|
||||||
|
|
||||||
#declare Rng1 = seed(1337);
|
#declare Rng1 = seed(1234);
|
||||||
#declare foo = rand(Rng1);
|
#declare foo = rand(Rng1);
|
||||||
#declare Rng2 = seed(now*24*60*60);
|
#declare Rng2 = seed(now*24*60*60);
|
||||||
#declare bar = rand(Rng2);
|
#declare bar = rand(Rng2);
|
||||||
@ -48,8 +48,8 @@ global_settings {
|
|||||||
|
|
||||||
#declare WIP_color = texture
|
#declare WIP_color = texture
|
||||||
{
|
{
|
||||||
pigment { color Cyan*0.55 }
|
pigment { color Cyan*NormClock }
|
||||||
finish { phong 0.23 }
|
finish { phong 0.23 ambient 0.50 }
|
||||||
}
|
}
|
||||||
|
|
||||||
#declare T_WIP_alert = texture
|
#declare T_WIP_alert = texture
|
||||||
@ -61,15 +61,16 @@ finish { ambient 1 specular 0.80 }
|
|||||||
#declare T_Planete_A = texture
|
#declare T_Planete_A = texture
|
||||||
{
|
{
|
||||||
pigment { color rgb <0.20, 0.30, 0.10> }
|
pigment { color rgb <0.20, 0.30, 0.10> }
|
||||||
normal { dents 0.38 scale 0.5}
|
normal { dents 0.28 scale 0.5}
|
||||||
finish { phong 0.70 reflection 0.05 }
|
finish { phong 0.70 reflection 0.05 }
|
||||||
}
|
}
|
||||||
#declare T_Planete_B = texture
|
#declare T_Planete_B = texture
|
||||||
{
|
{
|
||||||
pigment { rgb <0.42, 0.50, 0.70> }
|
pigment { rgb <0.42, 0.50, 0.70> }
|
||||||
|
normal { dents 0.14 scale 0.5}
|
||||||
finish { metallic 0.50 reflection 0.33 }
|
finish { metallic 0.50 reflection 0.33 }
|
||||||
}
|
}
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
/*
|
/*
|
||||||
* deux textures pour faire des batiments
|
* deux textures pour faire des batiments
|
||||||
*/
|
*/
|
||||||
@ -86,7 +87,7 @@ pigment { color <0.7, 0.6, 0.5> }
|
|||||||
normal { dents 0.25 scale 3 }
|
normal { dents 0.25 scale 3 }
|
||||||
finish { roughness 1.00 }
|
finish { roughness 1.00 }
|
||||||
}
|
}
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
#declare tPlasticOrange = texture
|
#declare tPlasticOrange = texture
|
||||||
{
|
{
|
||||||
pigment{rgb <2.000, 0.50, 0.0>}
|
pigment{rgb <2.000, 0.50, 0.0>}
|
||||||
@ -133,7 +134,7 @@ finish {
|
|||||||
}
|
}
|
||||||
} // This is a metal.
|
} // This is a metal.
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ============================================================ */
|
||||||
/*
|
/*
|
||||||
* Usefull macros
|
* Usefull macros
|
||||||
*/
|
*/
|
||||||
|
|||||||
26
tools/build-gif89a.sh
Executable file
26
tools/build-gif89a.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# retour aux vieilles pratiques : la Gif animée.
|
||||||
|
# c'est une nouveauté du 18 octobre 2025
|
||||||
|
|
||||||
|
SEQ="essai"
|
||||||
|
|
||||||
|
if [ $# == 1 ] ; then
|
||||||
|
SEQ=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
GIF="t-$SEQ.gif"
|
||||||
|
|
||||||
|
echo "seq $SEQ -> $GIF" | tee -a WS/log
|
||||||
|
|
||||||
|
convert \
|
||||||
|
-delay 10 -dither none \
|
||||||
|
-resize 40% \
|
||||||
|
-colorspace gray -equalize \
|
||||||
|
-colors 15 \
|
||||||
|
frames/$SEQ/?[012]*[369].png \
|
||||||
|
$GIF
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ do
|
|||||||
# echo $frame $img $txt
|
# echo $frame $img $txt
|
||||||
convert ${TMPIMG} \
|
convert ${TMPIMG} \
|
||||||
-font Courier-Bold \
|
-font Courier-Bold \
|
||||||
-pointsize 11 \
|
-pointsize 14 \
|
||||||
-kerning 4 \
|
-kerning 4 \
|
||||||
-fill ${TEXTCOL} \
|
-fill ${TEXTCOL} \
|
||||||
-gravity north \
|
-gravity north \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user