3 ms·
Historically, rasterization has been away of putting triangles onto the screen, maybe with a Z-buffer to determine visibility. It's basically an image space ide
by theoh 8y ago
Historically, rasterization has been away of putting triangles onto the screen, maybe with a Z-buffer to determine visibility. It's basically an image space idea, with things like Gouraud shading happening in image space, and though you could extend it put it to use in calculating shadow volumes or shadow maps, it doesn't implicitly deal with light transport. That's the first difference.
Ray tracing, on the other hand, has always been about (forward or backward) rays of light propagating through object space. It wasn't about light transport in the early days (just visibility and shading, based on simple models like Phong) but it is very well-suited to modelling transport, because it addresses the notion of fully-spatial rays in object space.
Writing a physically based (light transport)renderer which was internally based purely on rasterization to rectangular images would be an odd choice, partly because many of the intermediate images would be have to somehow be parameterized to represent locations on a hemisphere, etc.
I'm open to correction on this, but rasterization algorithms are really tied to projections onto a rectilinear grid, orthographic or perspective. Ray-tracing doesn't need to assume/know about this raster grid idea and as a result can be used with other geometries. This makes it strictly more powerful than rasterization. This kind of thing, for example: https://www.glassner.com/computer-graphics/graphics-research/cubism-for-computer-graphics/ https://www.glassner.com/computer-graphics/graphics-research... is a very bad fit for polygon rasterizers because each triangle is going to be warped in image space.
- pcwalton 8y agoYou can actually extend the rasterization concept to 3D, as shown in this paper: http://cg.ivd.kit.edu/publications/p2012/3dr/gi2012.pdf http://cg.ivd.kit.edu/publications/p2012/3dr/gi2012.pdf
- theoh 8y agoHmmm, yes, though they do say "In this paper we focus on primary (camera) rays, i.e. rays with a common origin or parallel rays, because only these are also covered by rasterization. We consider secondary rays and efficient global illumination algorithms, such as path tracing or photon mapping, as orthogonal to our approach." Just what that "orthogonal" means is a bit mysterious, but their project seems to be to generalize rasterization further than they've got in this paper: "we aim for further generalization, in particular, a parameterization which allows for incremental computation, not only for the ray direction, but also the ray origin"