A one-shot technique for surfaces with depth, color, and reflectivity discontinuities is presented. It uses windowed Fourier transform to extract the fringe phases and a binary-encoded scheme to unwrap the phases. Experiments show that absolute phases could be obtained with high reliability.