4 ms·
> I personally wish the code was just written cleanly and idiomatically. PBRT fills that role nicely IMO.
by erichocean 10y ago
> I personally wish the code was just written cleanly and idiomatically.
PBRT fills that role nicely IMO.
- kutkloon7 10y agoI suppose you mean physically based raytracer? That's definitely not something you can read through in a single afternoon.
- erichocean 10y agoIt's easy to read through the parts of the PBRT[0] book that Smallpt implements in an afternoon. Of course, PBRT also implements a bunch of other stuff Smallpt doesn't which you can skip until you're ready. PBRT was created for pedagogical reasons and has very easy to follow code with full documentation of everything relevant. Smallpt is designed to be super small and doesn't really say why it works; PBRT does. As a bonus, a lot of other physically-based renderers you'll find on GitHub follow PBRT's overall architecture closely (such as Embree[1]), so they're also easy to read/understand if you already know PBRT. [0] http://pbrt.org/ http://pbrt.org/ [1] https://embree.github.io/ https://embree.github.io/