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.
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_...
Using beam tracing to calculate reflections in JavaScript
11–19 of 19 posts
Re: Using beam tracing to calculate reflections in JavaScript
#12It really never ceases to amaze me the things you can do in JavaSCript. That's the kind of thing that up until a few years ago you'd be hesitant to do in Java. This is really cool stuff! I look forward to when we get full powered PC games done in JS. We're not there yet, I know - but it's little steps like this that'll get us there.
Re: Using beam tracing to calculate reflections in JavaScript
#13Re: Using beam tracing to calculate reflections in JavaScript
#14It really never ceases to amaze me the things you can do in JavaSCript. That's the kind of thing that up until a few years ago you'd be hesitant to do in Java. This is really cool stuff! I look forward to when we get full powered PC games done in JS. We're not there yet, I know - but it's little steps like this that'll get us there.
Re: Using beam tracing to calculate reflections in JavaScript
#15Re: Using beam tracing to calculate reflections in JavaScript
#16Re: Using beam tracing to calculate reflections in JavaScript
#17As someone who dabbles heavily in acoustics with javascript, THANK YOU! Let's talk.
P.S. Also a fan of threedB @robmiller.. :)
Re: Using beam tracing to calculate reflections in JavaScript
#18Re: Using beam tracing to calculate reflections in JavaScript
#19It really never ceases to amaze me the things you can do in JavaSCript. That's the kind of thing that up until a few years ago you'd be hesitant to do in Java. This is really cool stuff! I look forward to when we get full powered PC games done in JS. We're not there yet, I know - but it's little steps like this that'll get us there.
Just a side note: Java used to be slow, but is actually a lot lot faster now. So while javascript is certainly impressively fast, Java is actually even faster still.