Begin work on building the zbuffer.

The new code has not yet been integrated or tested.