|
|
"jr" <cre### [at] gmailcom> wrote:
> Ilya Razmanov <ily### [at] gmailcom> wrote:
> ...> > For this to be done within POVRay only, I need:
> aiui, POV-Ray (as of 3.7) has the "tools", ...
proof of concept (640x480 image source). ~20 minutes ;-)
regards, jr.
-----<snip>-----
/* cf Iyla's "spheres" script */
#version 3.8;
#include "functions.inc"
global_settings {assumed_gamma 1}
#declare im_ = pigment {
image_map {
png "s_o_l.png"
gamma 1
}
scale <640,480,1>
};
#declare ext_ = max_extent(im_);
#declare arr_ = array [640][480];
#for (r_,0,479)
#for (c_,0,639)
#local arr_[c_][r_] = eval_pigment(im_,<c_,r_,.5>);
#end
#end
#for (r_,0,479)
#for (c_,0,639)
sphere {
<(c_+.5),(r_+.5),0>, .495
texture {
pigment {arr_[c_][r_]}
finish {emission 1}
}
}
#end
#end
camera {
location <320,240,-275>
right x * (4/3)
up y
angle 90
look_at <320,240,0>
}
Post a reply to this message
Attachments:
Download '231201_ir.png' (960 KB)
Preview of image '231201_ir.png'
|
|