zbuf


z buffer

zbuf
cut
rota
simple
vol
use
See also

zbuf

zbuf

        Returns the z-buffer flag.

zbuf(z)

        Changes this flag:
z=0: z-buffer off
z=1: z-buffer integer 16 bits
z=2: z-buffer floats 32 bits
Notes:
1) At launch, the z-buffer is initialized by the parameter file Z_buf envb.h
2) It can be dynamically changed by the command zbuf
3) zbuf(0); 2D display.

zbuf cut

switches the double buffer mode.
zbuf simple; switches the simple buffer mode.

zbuf rota

When zbuf cut has been invoked, the display buffers are swapped.

zbuf simple

Switches the simple buffer mode.

zbuf vol

zbuf vol(id)

        Returns the zbuffer parameter of the volume id.

zbuf vol(id)=n

        Changes this parameter.
Notes:
1) z=0: the zbuffer will not be tested in a display with yes illum (2D display).
2) z=1: zbuffer will be erased just before displaying the volume in yes illum: display a volume forehead all other regardless of depth.

Use

1) To display again parts of the image (by displ fac(f) vol(id) or volumes by displ vol(id)) without destroying the hidden parts.
2) To display multiple passes a database located in different files.
Example:
yes zbuf;read vol("A");screen;yes illum;displ vol;
no zbuf;read vol "B";displ vol;

3) The z_buffer 32 bits allows a better calculation of the hidden parts (especially for veneers very close).

See also:

fog zbuf
no zbuf
period zbuf
pixel zbuf
read zbuf
write zbuf
yes zbuf