3 ms·
I wasn't expecting to see a 3d rendering treatment! > Drawing complicated scenes in much more complicated in 3D than in 2D—and more interesting, since some rea
by dahart 9y ago
I wasn't expecting to see a 3d rendering treatment!
> Drawing complicated scenes in much more complicated in 3D than in 2D—and more interesting, since some real ideas are required. Much high-end 3D drawing, for example in video games or movies, relies on a pixel-by-pixel treatment. the pixels in hardware designed for this purpose incorporate a depth coordinate—that is to say, depth with respect to the plane of the screen—and pixels are colored in the order of their depth, so that close pixels are painted after far ones. This hardware option is unavailable to PostScript, which is essentially device-independent. The PostScript program itself must therefore be responsible for keeping track of depth. The standard method for doing this is to use a binary space partition.
Yeah, this is a good reminder that there's no Z-buffer in vector rendering. I haven't used painter's algorithm for a couple decades, but this makes me want to play with PostScript and code up a little 3d surface renderer with a BSP tree and painter's algorithm.
I'm also reminded of ray tracing in PostScript http://www.realtimerendering.com/resources/RTNews/html/rtnv6n2.html#art11 http://www.realtimerendering.com/resources/RTNews/html/rtnv6...