Fortraneries/Fraktalism/showvoxels.pov

68 lines
1.6 KiB
POVRay
Raw Normal View History

2022-04-03 06:44:24 +02:00
/*
* SHOW VOXELS
*
* see also : vox2inc.awk voxelize.f90
*/
#version 3.7;
global_settings {
2022-04-05 05:46:51 +02:00
ambient_light rgb <0.04, 0.04, 0.04>
2022-04-03 06:44:24 +02:00
assumed_gamma 1.0
}
//----------------------------------------------------------------
#include "colors.inc"
#declare VOXEL = object
{
// sphere { 0, 1.18 }
2022-04-10 01:41:42 +02:00
#local D = 1.0111;
2022-04-03 06:44:24 +02:00
box { <-D, -D, -D>, <D, D, D> }
}
#include "WS/voxels.inc"
object {
2022-04-05 05:46:51 +02:00
Voxels
texture {
pigment { color White }
finish { phong 0.8 specular 0.8}
}
2022-04-03 06:44:24 +02:00
translate <-Bary_X, -Bary_Y, -Bary_Z>
2022-04-05 05:46:51 +02:00
rotate <clock*2, 0, clock*1.414>
2022-04-03 06:44:24 +02:00
}
//----------------------------------------------------------------
2022-04-05 05:46:51 +02:00
// light_source { <-12, 45, -25> color Gray70 }
2022-04-10 01:41:42 +02:00
light_source { <-52, 5, -38> color Yellow*0.45 }
2022-04-05 05:46:51 +02:00
light_source { < 59, 5, 48> color Gray20 }
2022-04-10 01:41:42 +02:00
light_source { < 3, 59, 8> color Red*0.65 }
light_source { < 8, -61, 3> color Green*0.75 }
2022-04-03 06:44:24 +02:00
2022-04-05 05:46:51 +02:00
#declare NormClock = (clock/360);
2022-04-10 01:41:42 +02:00
#declare ECAM = 88 - (73*NormClock);
2022-04-05 05:46:51 +02:00
#declare XCAM = ECAM * sin(radians(clock));
#declare YCAM = -12;
#declare ZCAM = ECAM * cos(radians(clock));
2022-04-10 01:41:42 +02:00
#declare ACAM = 65 + (48*NormClock);
2022-04-05 05:46:51 +02:00
#if (0 = clock)
#fopen CL "WS/camvox.log" write
#else
#fopen CL "WS/camvox.log" append
#end
#write (CL, NormClock, " ", ECAM, " ", ACAM, "\n")
#fclose CL
2022-04-03 06:44:24 +02:00
camera {
location <XCAM, YCAM, ZCAM>
// look_at <Bary_X, Bary_Y, Bary_Z>
look_at <0, 0, 0>
right x*image_width/image_height
2022-04-05 05:46:51 +02:00
angle ACAM
2022-04-03 06:44:24 +02:00
}
//----------------------------------------------------------------
//----------------------------------------------------------------