CPC G06T 15/04 (2013.01) [G06T 7/13 (2017.01); G06T 7/60 (2013.01); G06T 7/73 (2017.01); G06T 2215/12 (2013.01)] | 17 Claims |
1. An image rendering method, performed by an electronic device and comprising:
acquiring a lightmap of a target three-dimensional model in response to a light rendering instruction;
acquiring a seam edge of the target three-dimensional model, wherein a group of seam edges comprises a directed edge and a reverse edge of the directed edge, and vertexes between the directed edge and the reverse edge overlap and have opposite directions, and wherein the acquiring a seam edge of the target three-dimensional model comprises:
acquiring a plurality of vertexes on at least one surface of the target three-dimensional model; and
determining, in response to existence of a reverse edge of a directed edge formed by at least two vertexes of the plurality of vertexes, the directed edge and the reverse edge as a group of seam edges;
determining, in the lightmap, a target pixel corresponding to the seam edge; and
updating an initial pixel value of the target pixel in the lightmap to obtain a repaired lightmap, a texture in the repaired lightmap being continuous.
|