US 12,266,045 B2
Lightmap updating method and apparatus, electronic device, and storage medium
Shun Cao, Shenzhen (CN); Huabing Xu, Shenzhen (CN); Yuanheng Li, Shenzhen (CN); Nan Wei, Shenzhen (CN); Xiaochun Cui, Shenzhen (CN); and Congbing Li, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on Aug. 19, 2022, as Appl. No. 17/891,485.
Application 17/891,485 is a continuation of application No. PCT/CN2021/113716, filed on Aug. 20, 2021.
Claims priority of application No. 202010878803.2 (CN), filed on Aug. 27, 2020.
Prior Publication US 2022/0392144 A1, Dec. 8, 2022
Int. Cl. G06T 15/00 (2011.01); G06T 7/13 (2017.01); G06T 7/60 (2017.01); G06T 7/73 (2017.01); G06T 15/04 (2011.01)
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
OG exemplary drawing
 
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.