A phase-shifting scanning moire method and a phase-difference scanning moire method are developed by the authors. They provide smooth equal-height contours and equal-displacement contours, respectively, in real-time. A phase-shifting method using correlation with rectangular is also developed. It uses the correlation of the rectangular brightness of a projected grid and two rectangular functions to determine a phase. It can provide accurate phase distributions in real-time.