The invention is applicable to the technical field of computer graphic
processing, and provides a method for rendering a three-dimensional model wireframe structure in real
time based on
UV mapping and line chartlet, which comprises the following steps: S1, a modeling stage: screening and marking key side lines of a model in three-
dimensional modeling software, executing UV expansion, newly building an independent UV channel to store side line information, and reserving an original UV channel for conventional chartlet; s2, a baking stage: constructing a black background base map in three-
dimensional modeling software, exporting a black and
white line map containing side lines based on the independent UV channel, and optionally optimizing the line map through
image processing software; s3, a coloring stage: creating a
shader containing wireframe parameters and a related material in real-time rendering software, loading the line chartlet, then adjusting wireframe attributes in real time, introducing anti-
aliasing processing, and endowing the material to the model to complete rendering; according to the invention, the compatibility and the performance are obviously improved, the degree of freedom and the efficiency of adjustment are greatly optimized, and the quality and the visual effect of the wireframe are obviously improved.