add orbital view

This commit is contained in:
Tonton Th 2025-01-02 01:27:23 +01:00
parent cdc0fb6780
commit cf95106744
2 changed files with 100 additions and 2 deletions

View File

@ -28,17 +28,38 @@ 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 <3, -1+1.11*Cos_010(NormClock), 5> translate <3, -1.6+1.01*Cos_010(NormClock), 5>
} }
object { HexaBalls object { HexaBalls
texture { Lightning2 scale 0.56 } texture { Lightning2 scale 0.56 }
// rotate <-clock, clock*0.62, clock> // rotate <-clock, clock*0.62, clock>
translate <5, -1+0.92*Cos_010(NormClock), -4> translate <5, -1+0.42*Cos_010(NormClock), -4>
} }
} }
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
#declare RHBlo = 0.24;
#declare RHBlo2 = RHBlo * 0.56;
#declare HexaBlob = object
{
blob {
// threshold 0.01 + NormClock
threshold 0.01
sphere { <0, 0, 0>, RHBlo, 1 }
#local E = RHBlo * 1.210;
#local W = 0.1;
sphere { <-E, 0, 0>, RHBlo2, W }
sphere { < E, 0, 0>, RHBlo2, W }
sphere { < 0, -E, 0>, RHBlo2, W }
sphere { < 0, E, 0>, RHBlo2, W }
sphere { < 0, 0, -E>, RHBlo2, W }
sphere { < 0, 0, E>, RHBlo2, W }
}
}
// =======================================================
#declare Le_Sol = object #declare Le_Sol = object
{ {
@ -107,6 +128,7 @@ sky_sphere {
pigment { pigment {
gradient y gradient y
color_map { color_map {
[ 0.2 color Gray10 ]
[ 0.5 color Orange*0.7 ] [ 0.5 color Orange*0.7 ]
[ 1.0 color Yellow*0.5 ] [ 1.0 color Yellow*0.5 ]
} }

View File

@ -0,0 +1,76 @@
/*
* H E X A C O N E - O R B I T E
*/
#version 3.7;
#include "globals.inc"
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
#include "stones.inc"
#include "contexte.inc"
#include "elements.inc"
// =======================================================
#declare R_planete = 2.1;
#declare Croute = object
{
#local R1 = R_planete * 1.05;
#local R2 = R_planete * 1.03;
#local HC = R_planete * 0.11;
#local BN = R_planete * 3;
difference {
sphere { 0, R1 }
sphere { 0, R2 }
box { <-HC, -BN, -BN>, <HC, BN, BN> }
box { <-BN, -HC, -BN>, <BN, HC, BN> }
box { <-BN, -BN, -HC>, <BN, BN, HC> }
}
texture {
pigment { color Gray10 }
}
}
#declare Boule = object
{
sphere { 0, R_planete }
texture {
pigment { color Gray80 }
finish { reflection 0.500 }
}
}
#declare Planete = object
{
union {
object { Croute }
object { Boule }
}
}
// =======================================================
#local RO = 4.10;
#local CK = NormClock * 7.87;
#declare PosX = RO * sin(CK);
#declare PosY = 0;
#declare PosZ = RO * cos(CK);
object { HexaCone
rotate -y*CK translate <PosX, PosY, PosZ>
}
object { Planete rotate (-clock*0.21)*y }
light_source { <19, 7, 14>, rgb <0.77, 0.79, 0.80> }
camera {
location <3, 2.01, 7.59>
look_at <0.0, 0.0, 0>
angle 58
}