A picture is worth a thousand words.
5 posts • Page 1 of 1
The path tracer itself is pretty crude (I really need to read up more on the right way to do this stuff); probably the only neat feature of the code (besides using HTML5 web workers to run in parallel and not make your browser crash) is how Nessie herself is defined: she's a 4D Catmull-Rom spline (x, y, z, radius) that's sampled a few hundred times and built hierarchically into a (sphere-only) BVH. It's a great little technique for making fun shapes without needing complex intersection maths (which are quite beyond me)! Since such a spline can be a complete binary tree, with a little cleverness, it could be built in a single-pass, too.
Live demo: http://ironwallaby.github.com/jellyjelly/
Source code: http://github.com/ironwallaby/jellyjelly/
Dade wrote:It seems to run with only 2 threads on my Linux+Firefox+i7 3930K, is that expected ?
It's supposed to use up to four threads, but I honestly don't know how browsers go about scheduling them!
Who is online
Users browsing this forum: No registered users and 1 guest