Compare commits
3 Commits
6133319acd
...
8d438d5885
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8d438d5885 | ||
![]() |
8c30830837 | ||
![]() |
540dc86601 |
16
elements.inc
16
elements.inc
@ -2,18 +2,18 @@
|
|||||||
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024
|
* nouveau projet Thu Dec 5 11:37:05 AM UTC 2024
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#declare RA = 0.127;
|
#declare RA = R_basecone;
|
||||||
#declare RB = 0.001;
|
// #declare RB = 0.001;
|
||||||
|
|
||||||
#declare HexaCone_shape = object
|
#declare HexaCone_shape = object
|
||||||
{
|
{
|
||||||
union {
|
union {
|
||||||
cone { 0, RA, <-1, 0, 0>, RB }
|
cone { 0, RA, <-1, 0, 0>, 0.0001 }
|
||||||
cone { 0, RA, < 1, 0, 0>, RB }
|
cone { 0, RA, < 1, 0, 0>, 0.0001 }
|
||||||
cone { 0, RA, < 0, 0, 1>, RB }
|
cone { 0, RA, < 0, 0, 1>, 0.0001 }
|
||||||
cone { 0, RA, < 0, 0, -1>, RB }
|
cone { 0, RA, < 0, 0, -1>, 0.0001 }
|
||||||
cone { 0, RA, < 0, 1, 0>, RB }
|
cone { 0, RA, < 0, 1, 0>, 0.0001 }
|
||||||
cone { 0, RA, < 0, -1, 0>, RB }
|
cone { 0, RA, < 0, -1, 0>, 0.0001 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
75
essai.pov
75
essai.pov
@ -7,30 +7,65 @@
|
|||||||
|
|
||||||
#include "globals.inc"
|
#include "globals.inc"
|
||||||
|
|
||||||
|
|
||||||
#declare NormClock = clock / 360.0;
|
|
||||||
#include "contexte.inc"
|
#include "contexte.inc"
|
||||||
#include "elements.inc"
|
#include "elements.inc"
|
||||||
#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 ()
|
||||||
sphere {
|
sphere {
|
||||||
0, 0.10
|
0, 0.06
|
||||||
#if ( rand(Rng1) < 0.333 )
|
#if ( rand(Rng1) < 0.333 )
|
||||||
texture { Ruby_Glass }
|
texture { Ruby_Glass }
|
||||||
#elseif ( rand(Rng1) < 0.666 )
|
#elseif ( rand(Rng1) < 0.666 )
|
||||||
tus texture { Orange_Glass }
|
texture { Orange_Glass }
|
||||||
#else
|
#else
|
||||||
texture { Gold_Nugget scale 0.56 }
|
texture { Gold_Nugget }
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#macro Un_Machin ()
|
#macro Un_Machin ()
|
||||||
union {
|
union {
|
||||||
#for (Y, -8, 8, 2)
|
#for (Y, 1, 8, 1)
|
||||||
object { Bubble() translate y*Y*0.1 }
|
object { Bubble() translate y*Y*0.1 }
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
@ -39,28 +74,36 @@ union {
|
|||||||
#declare Les_Machins = object
|
#declare Les_Machins = object
|
||||||
{
|
{
|
||||||
union {
|
union {
|
||||||
#for (Xp, -10, 10)
|
#local Rk = 4.15;
|
||||||
#if ( rand(Rng1) < 0.5 )
|
#for (foo, 0, 360, 15)
|
||||||
object { HexaCone_radar_A translate x*Xp*0.6 }
|
#local Xpos = Rk * sin(radians(foo));
|
||||||
|
#local Zpos = Rk * cos(radians(foo));
|
||||||
|
#if ( rand(Rng1) < 0.40 )
|
||||||
|
object { GyroPhare () translate <Xpos, 0, Zpos> }
|
||||||
#else
|
#else
|
||||||
object { Un_Machin () translate x*Xp*0.6 }
|
object { Un_Machin () translate <Xpos, 0.33, Zpos> }
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
#undef Rk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
object { Les_Machins }
|
object { Les_Machins translate y*0.01}
|
||||||
|
|
||||||
|
object { Le_Sol }
|
||||||
// object { Repere }
|
// object { Repere }
|
||||||
|
|
||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> }
|
// light_source { <-8, 7, -9>, rgb <0.81, 0.65, NormClock> }
|
||||||
light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> }
|
// light_source { < 11, 7, 4>, rgb <1-NormClock, 0.28, 0.80> }
|
||||||
|
|
||||||
|
#local CamX = -12.7 + (4.8*NormClock);
|
||||||
|
#local CamY = 8.81 + (11*sqrt(NormClock));
|
||||||
camera {
|
camera {
|
||||||
location <-10.7+4*NormClock, 2.81, 8.09>
|
location <CamX, CamY, 9.99>
|
||||||
look_at <0.0, 0.0, 0>
|
look_at <0, 0, 0>
|
||||||
angle 44
|
angle 42
|
||||||
}
|
}
|
||||||
|
10
globals.inc
10
globals.inc
@ -18,7 +18,17 @@ global_settings {
|
|||||||
#declare NormClock = clock / 360.0;
|
#declare NormClock = clock / 360.0;
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
|
/*
|
||||||
|
* Some constants...
|
||||||
|
*/
|
||||||
|
|
||||||
|
#declare R_basecone = 0.117;
|
||||||
|
#declare H_cone = 0.97;
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------ */
|
||||||
|
/*
|
||||||
|
* Usefull macros
|
||||||
|
*/
|
||||||
#macro Cos_01( X )
|
#macro Cos_01( X )
|
||||||
(0.5-0.5*cos( 3.141592654 * X))
|
(0.5-0.5*cos( 3.141592654 * X))
|
||||||
#end
|
#end
|
||||||
|
10
hexabenz.inc
10
hexabenz.inc
@ -1,14 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* H E X A C O N E
|
* H E X A B E N Z
|
||||||
*/
|
*/
|
||||||
// =======================================================
|
// =======================================================
|
||||||
|
|
||||||
#macro Benz_Cone_Base () // = object
|
#macro Benz_Cone_Base () // = object
|
||||||
// {
|
// {
|
||||||
union {
|
union {
|
||||||
#local RA = 0.117;
|
#local RA = R_basecone;
|
||||||
#local RB = 0.001;
|
#local RB = 0.001;
|
||||||
cone { 0, RA, y*0.89, RB }
|
cone { 0, RA, y*0.89, 0.0001 }
|
||||||
sphere { 0, RA*1.098 scale <1, 0.62, 3.1> translate -0.02*y }
|
sphere { 0, RA*1.098 scale <1, 0.62, 3.1> translate -0.02*y }
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
@ -95,7 +95,7 @@ difference {
|
|||||||
union {
|
union {
|
||||||
cylinder { z*LT*1.5, -z*LT, RT }
|
cylinder { z*LT*1.5, -z*LT, RT }
|
||||||
sphere { z*LT*1.4, RT*0.72 scale <1, 0.73, 1>
|
sphere { z*LT*1.4, RT*0.72 scale <1, 0.73, 1>
|
||||||
translate y*RT*0.87}
|
translate y*RT*0.77}
|
||||||
}
|
}
|
||||||
cylinder { z*4, -z*4, RT*0.95 }
|
cylinder { z*4, -z*4, RT*0.95 }
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ union {
|
|||||||
// #declare HexaBenz = object
|
// #declare HexaBenz = object
|
||||||
// {
|
// {
|
||||||
union {
|
union {
|
||||||
#local Rk = (rand(Rng1)-0.5) * 2038;
|
#local Rk = (rand(Rng1)-0.5) * 1024;
|
||||||
object { Benz_Cones () rotate z*NormClock*Rk}
|
object { Benz_Cones () rotate z*NormClock*Rk}
|
||||||
object { Benz_Tube () }
|
object { Benz_Tube () }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user