3 ms·
If you like this, maybe you also like this Path Tracer written in 99 lines of C++: http://www.kevinbeason.com/smallpt/ http://www.kevinbeason.com/smallpt/ (+ s
by ohwp 13y ago
If you like this, maybe you also like this Path Tracer written in 99 lines of C++:
http://www.kevinbeason.com/smallpt/ http://www.kevinbeason.com/smallpt/ (+ source code and explanation)
- eonil 13y agoEven more interesting!
- ggambetta 13y agoNow that is impressive.
- reirob 13y agoThanks for sharing this. Especially on the page there is a presentation as well as several ports of this same program to other languages like OCaml, Haskell and JavaScript. Interesting to see that the OCaml version is on par with the C++ version performance wise, but is 47% shorter. However the Haskell version is not shorter and 4.5 times slower?
- thenomad 13y agoAnd here's a comparison between that (smallpt) and the equivalent (smallptGPU) using a GPU: http://davibu.interfree.it/opencl/smallptgpu/smallptGPU.html http://davibu.interfree.it/opencl/smallptgpu/smallptGPU.html All VERY interesting stuff.
- hxa7241 13y agoAnd if you like that (spheres only), you might also like this (general triangles-based), in 444 lines of Scala (and OCaml, Python, Ruby, Lua, Scheme, C++, and C): http://www.hxa.name/minilight/ http://www.hxa.name/minilight/
- 1gn1t10n 13y agoAll this reminds me of Paul Heckbert's ray tracer written on the back of his business card: http://www.cs.cmu.edu/~ph/src/minray/minray.card.c http://www.cs.cmu.edu/~ph/src/minray/minray.card.c