more work on the main subject

This commit is contained in:
Tonton Th 2024-12-17 14:36:26 +01:00
parent 7936e64a06
commit 2c87793fb1
4 changed files with 73 additions and 23 deletions

View File

@ -1,6 +1,6 @@
POVOPT = +q9 +a -d POVOPT = +q9 +a0.01 -d
POVDEP = contexte.inc elements.inc datas/hf.png POVDEP = contexte.inc elements.inc datas/hf.png
@ -10,7 +10,8 @@ PNG: essai.png scene.png
essai.png: essai.pov Makefile $(POVDEP) essai.png: essai.pov Makefile $(POVDEP)
povray $(POVOPT) -W640 -H480 -i$< -o$@ povray $(POVOPT) -W640 -H480 -i$< -o$@
CK=30
scene.png: scene.pov Makefile $(POVDEP) scene.png: scene.pov Makefile $(POVDEP)
povray $(POVOPT) -W1280 -H1024 +K266 -i$< -o$@ povray $(POVOPT) -W1280 -H1024 +K${CK} -i$< -o$@

View File

@ -9,6 +9,7 @@ height_field {
smooth smooth
texture { texture {
pigment { DarkGreen } pigment { DarkGreen }
normal { bumps 1 scale 4.2 }
finish { phong 0.333 } finish { phong 0.333 }
} }
translate <-.5, 0, -.5> translate <-.5, 0, -.5>
@ -17,13 +18,13 @@ height_field {
#if (0) #if (0)
cylinder { 0, <1, 0, 0>, 0.008 pigment { color Red } } cylinder { 0, <1, 0, 0>, 0.005 pigment { color Red } }
cylinder { 0, <0, 0, 1>, 0.008 pigment { color Blue } } cylinder { 0, <0, 0, 1>, 0.005 pigment { color Blue } }
#end #end
light_source { light_source {
<2, 2.50, 3> color White <3, 3.50, 2> color Gray90
spotlight spotlight
radius 12 radius 12
falloff 20 falloff 20
@ -31,4 +32,11 @@ light_source {
point_at <0, 0.95, 0.22222222> point_at <0, 0.95, 0.22222222>
} }
// light_source { <-6, 7, -4>, rgb <0.81, 0.65, 0.40> } light_source {
<-5, 5.50, 8> color White
spotlight
radius 8
falloff 20
tightness 5
point_at <0, 0.95, -0.22>
}

View File

@ -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> } light_source { 0, rgb <0.99, 0.05, 0.05>
fade_distance 1.29
fade_power 1.5
}
} }
texture { New_Penny } texture { New_Penny }
} }
@ -41,25 +44,62 @@ texture { New_Penny }
/* /*
* *
*/ */
#local Branche_radar = object
{
#local D1 = 0.08;
#local D2 = 0.0035;
merge {
cone { 0, D2, 0.04*y, 0.00007 }
sphere { 0, D2*2.2 scale <1, 1.77, 1> }
intersection {
torus { D1, D2 }
box { <2, -2, 2>, <0, 2, 0> }
rotate x*90
translate -D1*x
}
}
}
#declare HexaCone_radar = object #declare HexaCone_radar = object
{ {
union { union {
#for (foo, 0, 360, 60) #for (foo, 0, 360, 60)
#local RR = 0.17; #local RR = 0.12;
#local PX = RR * sin(radians(foo)); #local PX = RR * sin(radians(foo));
#local PZ = RR * cos(radians(foo)); #local PZ = RR * cos(radians(foo));
sphere { 0, 0.009 object { Branche_radar
scale <1, 1.39, 1> rotate y*(foo-90)
translate <PX, 0.007, PZ> translate <PX, 0, PZ>
} }
#local R2 = 0.08; #local R2 = 0.08;
#local PX2 = R2 * sin(radians(foo));
#local PZ2 = R2 * cos(radians(foo));
cylinder { <PX2, -0.06, PZ2>, <PX, 0, PZ>*0.98, 0.003 }
#end #end
torus { R2, 0.004 translate -0.06*y } torus { R2, 0.0034 translate -0.08*y }
}
texture { Soft_Silver scale 6.0 }
}
/*
* new Mon Dec 16 12:44:44 PM UTC 2024
*/
#local Une_derive = object
{
difference {
merge {
sphere { 0, 0.008 scale <1, 1, 4.70>
translate <0, 0.26, -0.17> }
cone { <0, -0.1, 0>, 0.09, <0, 0.26, -0.17>, 0.009
scale <0.10, 1, 1> }
}
box { <-1, -1, -1>, <1, 0, 1> }
}
texture { Soft_Silver scale 6.0 }
}
#declare HexaCone_derives = object
{
union {
object { Une_derive }
object { Une_derive rotate 120*z }
object { Une_derive rotate -120*z }
} }
texture { Soft_Silver scale 1.0 }
} }
#declare HexaCone_head = object #declare HexaCone_head = object
@ -84,8 +124,9 @@ texture { Orange_Glass }
union { union {
object { HexaCone_body } object { HexaCone_body }
#local T = 0.55; #local T = 0.55;
object { HexaCone_head translate <0, 0, T+DTa> } object { HexaCone_head translate <0, 0, T+DTa> }
object { HexaCone_radar translate <0, T+0.07, 0> } object { HexaCone_radar translate <0, T+0.16, 0> }
object { HexaCone_derives translate <0, 0, -0.67> }
} }
rotate <-7, 0, -9> rotate <-7, 0, -9>
} }

View File

@ -6,7 +6,7 @@
global_settings { global_settings {
assumed_gamma 1.0 assumed_gamma 1.0
ambient_light rgb <0, 0, 0> ambient_light rgb <0.02, 0.02, 0.02>
max_trace_level 10 max_trace_level 10
} }
@ -15,15 +15,15 @@ global_settings {
#include "elements.inc" #include "elements.inc"
#include "contexte.inc" #include "contexte.inc"
object { HexaCone rotate y*17 translate y*1.13 } object { HexaCone rotate y*17 translate y*1.11 }
#declare CK = 56 + (clock * 2); #declare CK = 56 + (clock * 2);
#declare Dcam = 1.95; #declare Dcam = 1.97;
#declare CamX = Dcam * sin(radians(CK)); #declare CamX = Dcam * sin(radians(CK));
#declare CamZ = Dcam * 1.20 * cos(radians(CK)); #declare CamZ = Dcam * 1.20 * cos(radians(CK));
#declare CamZ = CamZ - 0.9; #declare CamZ = CamZ - 0.11;
#declare Lat = <0.03, 1.08, 0.22>; #declare Lat = <0.03, 1.08, 0.17>;
camera { camera {
location <CamX, 1.23, CamZ> location <CamX, 1.23, CamZ>
look_at Lat look_at Lat