|
![](/i/fill.gif) |
> A bit of theory: The goal is to create a set of "random" direction rays
> so that the probability of close-to-normal versus close-to-tangent rolls
> off in a cos-theta curve, where theta is the deviation from normal.
> That is, lots of rays close to normal, and very few close to tangent.
> You also want to have all of the rays be evenly spread, no matter how
> many you want to use. The lookup array has an array of points carefully
> chosen to meet all of these criteria.
That's what I thought, except I expected the probability to be
sin(theta)
(or cos(theta), if theta is the angle between ray and TANGENT), implying
fewer rays close to normal than close to tangent. Is this a typo?
Why is the lookup array fixed? It might be calculated at program start,
allowing for varying length.
Mark
Post a reply to this message
|
![](/i/fill.gif) |