|
|
"Kenneth" <kdw### [at] earthlinknet> wrote:
> 'Voxels', as in, all the points (the 'resolution') that are linearly
> stepped-though in the bounding box, to cover its total volume?
Yup, voxels is probably the wrong word, it's just a 3d grid through the bounding
box.
> And shooting a
> few trace rays from each point?
Aye. I fill an array with 6 vectors (currently x, -x, y, -y, z, -z) before
starting, and loop through them for each point visited. If I get a hit within
the step distance from the grid point (or some multiple thereof), I place a
secondary object there.
> Or by 'resolution,' do you mean the number of rays
> that are traced from each voxel point?
I give the macro a step distance to specify the resolution of the grid on each
axis, and just ignore the fact that it probably doesn't divide exactly into the
dimensions of the bounding box.
It's remarkably simple, I'm amazed I never thought of it before. On the other
hand, I don't have a specific use for this at the moment, I'm just larking
around! :-) If there's definite interest I'll post the code at some point...
Bill
Post a reply to this message
|
|