|
![](/i/fill.gif) |
In article <3A0C4128.CD531D3E@hotmail.removethisbit.com>, Richard
Morton <ric### [at] hotmail removethisbit com> wrote:
> It's always struck me as strange that this is the way that raytracing
> has to work, ie start from the film or screen and work backwards.
> What's missing below is that the ray has to continue until it hits a
> light source or goes off into infinity (in which case it won't
> appear).
Not quite...once it hits an object, a second ray is fired *toward the
light source(s)* to determine whether the point is in shadow. If light
can reach the object, the normal, distance, etc. are used to calculate
the shading of the surface.
Firing a bunch of rays into the scene hoping to hit a point-sized light
source would be...slow. ;-)
And it wouldn't be giving you the results you wanted anyway, it would
only calculate specular reflection.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |