Re:Using beam tracing to calculate reflections in JavaScript
by cocoflunchy on Wednesday January 15, 2014 @02:41PM
(#7065617)
How do you choose the angles at which you send the beams and the number of beams? It appears to be somewhat random, even though I'm sure it's not.
[ Parent
| on HN ]
Re:Using beam tracing to calculate reflections in JavaScript
by kabla on Wednesday January 15, 2014 @02:52PM
(#7065696)
The algorithm calculates all possible specular reflections up to some order. I really don't think I can explain it any better than this paper:
https://mediatech.aalto.fi/~samuli/publications/laine2009aa_...
Re:Using beam tracing to calculate reflections in JavaScript
by cocoflunchy on Wednesday January 15, 2014 @03:17PM
(#7065854)
Thanks, I'm going to read up on this.
Re:Using beam tracing to calculate reflections in JavaScript
by sp332 on Wednesday January 15, 2014 @03:12PM
(#7065822)
It doesn't calculate all beams that originate from one point. It calculates only the beams which originate from one of the points and eventually reach the other point. It only looks random because the walls are placed at odd angles.