The invention discloses a
visibility analysis rendering method base on a principle of stencil shadow. The method includes steps of establishing a closed first polyhedron along the direction of
sight lines for a model of an area which is to be subjected to
visibility analysis; rendering the first polyhedron for one time by means of an
algorithm, and setting a number which is not a first digit as a second digit in a
stencil buffer; constructing a closed second polyhedron within the
sight lines; rendering the second polyhedron for two times, wherein obtained values of the
stencil buffer comprise the first digit, the second digit, a third digit and a fourth digit; and rendering an area where the value of the
stencil buffer is the third digit, setting the area with visible colors, rendering an area where the value of the stencil buffer is the fourth digit, and setting the area with invisible colors. According to the
visibility analysis rendering method base on the principle of the stencil shadow, by means of the principle of the stencil shadow, an invisible area is generated, the generated area has obvious edges and is free from
distortion , and the accuracy of analysis results can be guaranteed, so that the visibility analysis area can be subjected to high-accuracy rendering.