POV-Ray : Newsgroups : povray.binaries.images : the Utah teapot is older than you think! : Re: the Utah teapot is older than you think! Server Time
1 Aug 2024 02:17:51 EDT (-0400)
  Re: the Utah teapot is older than you think!  
From: Bill Pragnell
Date: 5 Feb 2009 16:05:06
Message: <web.498b53d52cee23ee7da89d350@news.povray.org>
"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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.