In Z-buffer algorithm 2 buffers are used:
1. Frame Buffer
2. Depth Buffer
Depth buffer is used to store depth values for (x, y) position, as surfaces are processed (0 ≤ depth ≤ 1).
The frame buffer is used to store the intensity value of color value at each position (x, y).
total space required= depth buffer + frame buffer space
=>512 * 512 * 24 + 512 * 512 * 24 = 6291456 + 6291456 bits.
=> 12582912 bits
=> 1572864 Bytes
=>1.5 MB