Compare commits
9 Commits
full-v1
...
8e02e9e466
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e02e9e466 | ||
|
|
45ac640ba6 | ||
|
|
27891b70dc | ||
|
|
05f40fae75 | ||
|
|
070679ec5b | ||
|
|
1eac9d4cfc | ||
|
|
cf899967ce | ||
|
|
af4f9fc282 | ||
|
|
b9299568f4 |
7
Makefile
7
Makefile
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
DIMS = -W1600 -H1200
|
DIMS = -W1600 -H1200
|
||||||
POVOPT = +q9 +a0.02 -d
|
# POVOPT = +q9 +a0.02 -d
|
||||||
|
POVOPT = +q9 +A -d
|
||||||
POVDEP = contexte.inc elements.inc hexabenz.inc \
|
POVDEP = contexte.inc elements.inc hexabenz.inc \
|
||||||
globals.inc datas/hf.png
|
globals.inc datas/hf.png
|
||||||
|
|
||||||
@@ -9,7 +10,7 @@ CK=180
|
|||||||
|
|
||||||
PNG: essai.png scene.png topview.png passage.png \
|
PNG: essai.png scene.png topview.png passage.png \
|
||||||
orbite.png hexabenz.png escadrille.png \
|
orbite.png hexabenz.png escadrille.png \
|
||||||
hexacone.png
|
hexacone.png remote.png
|
||||||
|
|
||||||
|
|
||||||
topview.png: topview.pov Makefile $(POVDEP)
|
topview.png: topview.pov Makefile $(POVDEP)
|
||||||
@@ -36,4 +37,6 @@ scene.png: scene.pov Makefile $(POVDEP)
|
|||||||
escadrille.png: escadrille.pov Makefile $(POVDEP)
|
escadrille.png: escadrille.pov Makefile $(POVDEP)
|
||||||
povray $(POVOPT) $(DIMS) +K$(CK) -i$< -o$@
|
povray $(POVOPT) $(DIMS) +K$(CK) -i$< -o$@
|
||||||
|
|
||||||
|
remote.png: remote.pov Makefile $(POVDEP)
|
||||||
|
povray $(POVOPT) $(DIMS) +K$(CK) -i$< -o$@
|
||||||
|
|
||||||
|
|||||||
90
contexte.inc
90
contexte.inc
@@ -6,6 +6,66 @@
|
|||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
|
||||||
|
#macro GyroPhare_mat ()
|
||||||
|
cylinder {
|
||||||
|
0, y*H_gyro, R_gyro
|
||||||
|
#if (rand(Rng1) < 0.5)
|
||||||
|
texture { T_Stone25 scale 1+rand(Rng1) }
|
||||||
|
#else
|
||||||
|
texture { T_Stone6 }
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
|
#macro GyroPhare_lampe ()
|
||||||
|
union {
|
||||||
|
difference {
|
||||||
|
cylinder { 0, y*0.20, R_gyro }
|
||||||
|
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
|
||||||
|
#local WB = 0.015;
|
||||||
|
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
|
||||||
|
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
|
||||||
|
#undef WB
|
||||||
|
pigment { color Gray90 }
|
||||||
|
#local Ro = 0.5-rand(Rng1);
|
||||||
|
#if (abs(Ro) < 0.01)
|
||||||
|
#local Ro = Ro * 10;
|
||||||
|
#end
|
||||||
|
rotate y*(0.5-rand(Rng1)) * clock
|
||||||
|
}
|
||||||
|
light_source { y*0.10
|
||||||
|
rgb <0.8, 0.9, 0.999999999>
|
||||||
|
fade_distance 3.96
|
||||||
|
fade_power 1.55
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
|
#macro GyroPhare ()
|
||||||
|
union {
|
||||||
|
object { GyroPhare_mat () }
|
||||||
|
object { GyroPhare_lampe ()
|
||||||
|
// rotate y*rand(Rng1)*clock
|
||||||
|
translate y*(H_gyro+0.02) }
|
||||||
|
}
|
||||||
|
#end // macro
|
||||||
|
|
||||||
|
#macro Les_GyroPhares ()
|
||||||
|
union {
|
||||||
|
#local E = SzSol * 0.485;
|
||||||
|
object { GyroPhare () translate <-E, 0, -E> }
|
||||||
|
object { GyroPhare () translate < E, 0, -E> }
|
||||||
|
object { GyroPhare () translate <-E, 0, E> }
|
||||||
|
object { GyroPhare () translate < E, 0, E> }
|
||||||
|
object { GyroPhare () translate <-E, 0, 0> }
|
||||||
|
object { GyroPhare () translate < E, 0, 0> }
|
||||||
|
object { GyroPhare () translate < 0, 0, -E> }
|
||||||
|
object { GyroPhare () translate < 0, 0, E> }
|
||||||
|
#undef E
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
|
|
||||||
#declare Rhxba = 0.30;
|
#declare Rhxba = 0.30;
|
||||||
#declare R2hxba = Rhxba * 0.48;
|
#declare R2hxba = Rhxba * 0.48;
|
||||||
|
|
||||||
@@ -20,6 +80,7 @@ merge {
|
|||||||
sphere { 0, R2hxba translate < 0, E, 0> }
|
sphere { 0, R2hxba translate < 0, E, 0> }
|
||||||
sphere { 0, R2hxba translate < 0, 0, -E> }
|
sphere { 0, R2hxba translate < 0, 0, -E> }
|
||||||
sphere { 0, R2hxba translate < 0, 0, E> }
|
sphere { 0, R2hxba translate < 0, 0, E> }
|
||||||
|
#undef E
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,13 +90,13 @@ union {
|
|||||||
object { HexaBalls
|
object { HexaBalls
|
||||||
texture { Lightning1 scale 0.33 }
|
texture { Lightning1 scale 0.33 }
|
||||||
rotate <clock/3, clock/6, clock/9>
|
rotate <clock/3, clock/6, clock/9>
|
||||||
translate <5, -1.2+1.01*Cos_010(NormClock), 7>
|
translate <5, -1.1+1.01*Cos_010(NormClock), 7>
|
||||||
}
|
}
|
||||||
|
|
||||||
object { HexaBalls
|
object { HexaBalls
|
||||||
texture { Lightning2 scale 0.56 }
|
texture { Lightning2 scale 0.56 }
|
||||||
// rotate <-clock, clock*0.33333, clock>
|
// rotate <-clock, clock*0.33333, clock>
|
||||||
translate <7, -1+0.89*Cos_010(NormClock), -6>
|
translate <7, -1+0.92*Cos_010(NormClock), -6>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,7 +134,7 @@ height_field {
|
|||||||
pigment {
|
pigment {
|
||||||
// color DarkGreen
|
// color DarkGreen
|
||||||
image_map { png "datas/cmap.png" }
|
image_map { png "datas/cmap.png" }
|
||||||
translate <-.5, 0, -.5>
|
// translate <-.5, 0, -.5>
|
||||||
scale <SzSol, 0.98, SzSol>
|
scale <SzSol, 0.98, SzSol>
|
||||||
}
|
}
|
||||||
// normal { bumps 0.035 scale 0.186 }
|
// normal { bumps 0.035 scale 0.186 }
|
||||||
@@ -82,6 +143,16 @@ height_field {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#declare Underground = object
|
||||||
|
{
|
||||||
|
plane { y, -0.80 }
|
||||||
|
texture {
|
||||||
|
pigment { color Gray20 }
|
||||||
|
normal { bumps 0.25 scale 6 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// =======================================================
|
||||||
|
|
||||||
#declare Repere = object
|
#declare Repere = object
|
||||||
{
|
{
|
||||||
union {
|
union {
|
||||||
@@ -89,6 +160,7 @@ union {
|
|||||||
cylinder { 0, <0, 0, 1>, 0.008 pigment { color Blue } }
|
cylinder { 0, <0, 0, 1>, 0.008 pigment { color Blue } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// =======================================================
|
||||||
|
|
||||||
#declare Les_Lumieres = object
|
#declare Les_Lumieres = object
|
||||||
{
|
{
|
||||||
@@ -125,6 +197,14 @@ union {
|
|||||||
point_at <0, 0.95, -0.22>
|
point_at <0, 0.95, -0.22>
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
light_source {
|
||||||
|
<-4, 54, -7>
|
||||||
|
colour Yellow*0.76
|
||||||
|
parallel
|
||||||
|
point_at 0
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +220,7 @@ sky_sphere {
|
|||||||
[ 0.8 color White ]
|
[ 0.8 color White ]
|
||||||
[ 1.0 color Gray10 ]
|
[ 1.0 color Gray10 ]
|
||||||
}
|
}
|
||||||
turbulence 3.14159 + 0.91 * Cos_010(NormClock)
|
turbulence 3.14159 + 0.78 * Cos_010(NormClock)
|
||||||
scale 1.804
|
scale 1.804
|
||||||
// translate -1
|
// translate -1
|
||||||
}
|
}
|
||||||
@@ -157,8 +237,10 @@ sky_sphere {
|
|||||||
{
|
{
|
||||||
union {
|
union {
|
||||||
object { Le_Sol }
|
object { Le_Sol }
|
||||||
|
object { Underground }
|
||||||
object { Les_Bibelots }
|
object { Les_Bibelots }
|
||||||
object { Les_Lumieres }
|
object { Les_Lumieres }
|
||||||
|
object { Les_GyroPhares () }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
|||||||
36
essai.pov
36
essai.pov
@@ -12,42 +12,6 @@
|
|||||||
#include "hexabenz.inc"
|
#include "hexabenz.inc"
|
||||||
|
|
||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
#macro GyroPhare_mat ()
|
|
||||||
cylinder {
|
|
||||||
0, y*H_gyro, R_gyro
|
|
||||||
#if (rand(Rng1) < 0.5)
|
|
||||||
texture { T_Stone25 scale 1+rand(Rng1) }
|
|
||||||
#else
|
|
||||||
texture { T_Stone6 }
|
|
||||||
#end
|
|
||||||
}
|
|
||||||
#end // macro
|
|
||||||
|
|
||||||
#macro GyroPhare_lampe ()
|
|
||||||
union {
|
|
||||||
difference {
|
|
||||||
cylinder { 0, y*0.20, R_gyro }
|
|
||||||
cylinder { y*0.01, y*0.19, R_gyro*0.97 }
|
|
||||||
#local WB = 0.015;
|
|
||||||
box { <-1, 0.03, -WB>, <1, 0.18, WB> }
|
|
||||||
box { <-WB, 0.03, -1>, <WB, 0.18, 1> }
|
|
||||||
#undef WB
|
|
||||||
pigment { color White }
|
|
||||||
rotate y*(0.5-rand(Rng1))*clock
|
|
||||||
}
|
|
||||||
light_source { y*0.10 rgb <0.8, 0.9, 0.999999999> }
|
|
||||||
}
|
|
||||||
#end // macro
|
|
||||||
|
|
||||||
#macro GyroPhare ()
|
|
||||||
union {
|
|
||||||
object { GyroPhare_mat () }
|
|
||||||
object { GyroPhare_lampe ()
|
|
||||||
// rotate y*rand(Rng1)*clock
|
|
||||||
translate y*(H_gyro+0.02) }
|
|
||||||
}
|
|
||||||
#end // macro
|
|
||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
#macro Bubble ()
|
#macro Bubble ()
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ union {
|
|||||||
#declare Benz_Tubules = object
|
#declare Benz_Tubules = object
|
||||||
{
|
{
|
||||||
merge {
|
merge {
|
||||||
#local E = R_Tube * 0.0910;
|
#local E = R_Tube * 0.75;
|
||||||
#local R = 0.01;
|
#local R = 0.01;
|
||||||
#for (foo, 0, 360, 20)
|
#for (foo, 0, 360, 20)
|
||||||
#local Tx = E * sin(radians(foo));
|
#local Tx = E * sin(radians(foo));
|
||||||
|
|||||||
39
remote.pov
Normal file
39
remote.pov
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* H E X A C O N E - R E M O T E
|
||||||
|
* nouveau projet du Thu Dec 5 11:37:05 AM UTC 2024
|
||||||
|
*/
|
||||||
|
|
||||||
|
#version 3.7;
|
||||||
|
|
||||||
|
#include "globals.inc"
|
||||||
|
|
||||||
|
#include "colors.inc"
|
||||||
|
#include "metals.inc"
|
||||||
|
#include "textures.inc"
|
||||||
|
|
||||||
|
#include "contexte.inc"
|
||||||
|
#include "elements.inc"
|
||||||
|
#include "hexabenz.inc"
|
||||||
|
|
||||||
|
object { Le_Decor }
|
||||||
|
|
||||||
|
// object { HexaCone () rotate z*9.1 translate <5, 3, -8> }
|
||||||
|
object { HexaBenz () translate <-4, 2, -5> }
|
||||||
|
|
||||||
|
// light_source { <-16, 17, -24>, rgb <0.51, 0.65, 0.40> }
|
||||||
|
// object { Repere scale 2 }
|
||||||
|
|
||||||
|
#local DistCam = 147;
|
||||||
|
#local CK = 0.78 * NormClock;
|
||||||
|
#declare CamX = DistCam * sin(CK);
|
||||||
|
#declare CamY = 23;
|
||||||
|
#declare CamZ = DistCam * cos(CK);
|
||||||
|
|
||||||
|
camera {
|
||||||
|
location <CamX, CamY, CamZ>
|
||||||
|
look_at <0, 0, 0>
|
||||||
|
// focal_point <2, 1, 12>
|
||||||
|
// aperture 0.046
|
||||||
|
// blur_samples 30
|
||||||
|
angle 10
|
||||||
|
}
|
||||||
@@ -32,13 +32,24 @@ linkfarm ()
|
|||||||
{
|
{
|
||||||
SRC="frames/$1"
|
SRC="frames/$1"
|
||||||
echo "linkfarm $SRC" | tee -a WS/log
|
echo "linkfarm $SRC" | tee -a WS/log
|
||||||
|
|
||||||
|
local INTER="/dev/shm/tmp-intertitre.png"
|
||||||
tools/plot-timing.sh $1
|
tools/plot-timing.sh $1
|
||||||
|
|
||||||
local NBRE=60
|
local NBRE=90
|
||||||
|
|
||||||
|
convert "WS/negatif.png" \
|
||||||
|
-gravity north \
|
||||||
|
-font $FONTE \
|
||||||
|
-pointsize 96 \
|
||||||
|
-kerning 6 \
|
||||||
|
-fill $TEXTCOL \
|
||||||
|
-strokewidth 2 -stroke $STROKOL \
|
||||||
|
-annotate +0+490 "$1" \
|
||||||
|
${INTER}
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
do
|
do
|
||||||
copy_a_file "WS/negatif.png"
|
copy_a_file $INTER
|
||||||
done
|
done
|
||||||
|
|
||||||
for foo in $(seq 0 $NBRE)
|
for foo in $(seq 0 $NBRE)
|
||||||
@@ -61,8 +72,8 @@ faire_le_titre ()
|
|||||||
{
|
{
|
||||||
echo "faire le titre"
|
echo "faire le titre"
|
||||||
|
|
||||||
local NBRE=180
|
local NBRE=240
|
||||||
local SRC="frames/passage/00059.png"
|
local SRC="frames/passage/00099.png"
|
||||||
local GRAY="/dev/shm/tmp-titre.png"
|
local GRAY="/dev/shm/tmp-titre.png"
|
||||||
|
|
||||||
convert -colorspace gray -colors 27 $SRC $GRAY
|
convert -colorspace gray -colors 27 $SRC $GRAY
|
||||||
@@ -77,7 +88,7 @@ do
|
|||||||
-kerning 6 \
|
-kerning 6 \
|
||||||
-fill $TEXTCOL \
|
-fill $TEXTCOL \
|
||||||
-strokewidth 3 -stroke $STROKOL \
|
-strokewidth 3 -stroke $STROKOL \
|
||||||
-annotate +0+${Ypos} "HexaCone" \
|
-annotate +0+${Ypos} "HexaCones" \
|
||||||
${TMP}
|
${TMP}
|
||||||
# identify ${TMP}
|
# identify ${TMP}
|
||||||
copy_a_file ${TMP}
|
copy_a_file ${TMP}
|
||||||
@@ -131,7 +142,7 @@ linkfarm topview
|
|||||||
linkfarm passage
|
linkfarm passage
|
||||||
linkfarm scene
|
linkfarm scene
|
||||||
linkfarm orbite
|
linkfarm orbite
|
||||||
|
linkfarm remote
|
||||||
linkfarm essai
|
linkfarm essai
|
||||||
|
|
||||||
tools/plot-timing.sh
|
tools/plot-timing.sh
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ NBFRAMES=360
|
|||||||
|
|
||||||
echo "Running $0 $SEQNAME" >> WS/log
|
echo "Running $0 $SEQNAME" >> WS/log
|
||||||
|
|
||||||
DIMS="-W1024 -H768"
|
DIMS="-W1280 -H1024"
|
||||||
POVOPT="+q9 -a -d ${DIMS} -WT6"
|
POVOPT="+q9 +A -d ${DIMS} -WT6"
|
||||||
echo $POVOPT ; echo ; sleep 2
|
echo $POVOPT ; echo ; sleep 2
|
||||||
|
|
||||||
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
|
TMPIMG=/dev/shm/${SEQNAME}-tmp.png
|
||||||
@@ -25,7 +25,7 @@ do
|
|||||||
err=$?
|
err=$?
|
||||||
if [ $err != 0 ] ; then
|
if [ $err != 0 ] ; then
|
||||||
echo "$SEQNAME fail $frame" >> WS/log
|
echo "$SEQNAME fail $frame" >> WS/log
|
||||||
mogrify -colorspace gray $img
|
mogrify -colorspace gray -blur 5x5 $img
|
||||||
visual_sleep 12
|
visual_sleep 12
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ END { \
|
|||||||
# cat -n $TMPFILE | tail # ; exit
|
# cat -n $TMPFILE | tail # ; exit
|
||||||
|
|
||||||
gnuplot << __EOC__
|
gnuplot << __EOC__
|
||||||
set term png size 1024,768
|
set term png size 1280,1024
|
||||||
set output "timing.png"
|
set output "timing.png"
|
||||||
set grid
|
set grid
|
||||||
set xrange [:360]
|
set xrange [:360]
|
||||||
|
|||||||
Reference in New Issue
Block a user