|
|
You're probably unpacking the sample data incorrectly -- have you looked at
the VUnpack function in radiosit.cpp? Attached is the distribution that I
get. Here's the code I'm using:
#declare rad_samples = array[1600] {
<250, 127, 71>,
<116, 109, 251>,
<146, 45, 191>,
// (1596 samples omitted)
<221, 117, 172>
}
global_settings { assumed_gamma 1 }
camera {
orthographic
right 2*x*image_width/image_height up 2*y direction z
location 10*z look_at 0
}
#declare I = 0;
#while (I < 1600)
sphere {
(rad_samples[I] / 255) * <2, 2, 1> - <1, 1, 0>, .005
pigment { rgb 1 }
finish { ambient 1 }
}
#declare I = I + 1;
#end
Post a reply to this message
Attachments:
Download 'rad_data.gif' (15 KB)
Preview of image 'rad_data.gif'
|
|
|
|
I wrote:
> (rad_samples[I] / 255) * <2, 2, 1> - <1, 1, 0>, .005
I forgot to vnormalize that whole vector, but it doesn't change the image by
much (the points only move by about a pixel at most).
Anders
--
#macro E(D)(#if(D<2)D#else#declare I=I+1;mod(pow(.5mod(I 6))*asc(substr(
"X0(1X([\\&Q@TV'YDGU`3F(-V[6Y4aL4XFUTD#N#F8\\A+F1BFO4`#bJN61EM8PFSbFA?C"
I/6 1))2)<1#end)#end#macro R(D,I,T,X,Y)#if(E(D))R(D-1I,T,Y/2X)R(D-1I,T+Y
/2Y/2X)#else box{T T+X+Y pigment{rgb E(2)*9}}#end#end R(10,5z*3-1v*2u*2)
Post a reply to this message
|
|