Fortraneries/Fraktalism/showvoxels.pov

50 lines
1.1 KiB
POVRay

/*
* SHOW VOXELS
*
* see also : vox2inc.awk voxelize.f90
*/
#version 3.7;
global_settings {
ambient_light rgb <0.12, 0.04, 0.04>
assumed_gamma 1.0
}
//----------------------------------------------------------------
#include "colors.inc"
#declare VOXEL = object
{
// sphere { 0, 1.18 }
#local D = 0.880;
box { <-D, -D, -D>, <D, D, D> }
}
#include "WS/voxels.inc"
object {
Voxels pigment { color White }
translate <-Bary_X, -Bary_Y, -Bary_Z>
rotate <40, 0, 29>
}
//----------------------------------------------------------------
light_source { <-12, 45, -25> color Gray90 }
light_source { < 52, -5, 25> color Gray90 }
#declare ECAM = 92;
#declare XCAM = ECAM * sin(radians(clock));
#declare YCAM = -20;
#declare ZCAM = ECAM * cos(radians(clock));
camera {
location <XCAM, YCAM, ZCAM>
// look_at <Bary_X, Bary_Y, Bary_Z>
look_at <0, 0, 0>
right x*image_width/image_height
angle 64
}
//----------------------------------------------------------------
//----------------------------------------------------------------