Settings

Theme

Using beam tracing to calculate reflections in JavaScript

blog.kaistale.com

39 points by kabla 12 years ago · 18 comments

Reader

bingaling 12 years ago

See also: http://zenphoton.com/

(use shift+click to move the light source)

https://github.com/scanlime/zenphoton

IvanK_net 12 years ago

I have also written polygon ray casting function a year ago. It can process thousands of rays at 60 FPS. http://polyk.ivank.net/?p=demos&d=raycast

fluffyduffy 12 years ago

It 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.

  • hcarvalhoalves 12 years ago

    There's nothing particularly hard about this, or special about javascript though. This is the kind of stuff you could've implemented back in the day and ran on a Pentium MMX. It's about having an efficient algorithm.

  • kablaOP 12 years ago

    I agree, the speeds you can achieve with JavaScript are astounding. They are far superior to Python, it's a shame JS doesn't have that well of a support for scientific calculations.

  • dkersten 12 years ago

    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.

    • stelonix 12 years ago

      Although I believe this is true, I've used more fluid interfaces and played/have seen better performing demos/games in Javascript rather than Java.

nixarn 12 years ago

Tons of cool stuff on that blog! http://blog.kaistale.com/

dllu 12 years ago

See also: http://www.laservex.com

cocoflunchy 12 years ago

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.

robmiller 12 years ago

As someone who dabbles heavily in acoustics with javascript, THANK YOU! Let's talk.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection