US 12,229,879 B2
Image rendering method and related apparatus, terminal and storage medium
Huabing Xu, Shenzhen (CN); Shun Cao, Shenzhen (CN); Nan Wei, Shenzhen (CN); Xiaochun Cui, Shenzhen (CN); Congbing Li, Shenzhen (CN); Rongxin Zhou, Shenzhen (CN); and Wenyan Li, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Guangdong (CN)
Filed on Mar. 17, 2022, as Appl. No. 17/697,372.
Application 17/697,372 is a continuation of application No. PCT/CN2020/127667, filed on Nov. 10, 2020.
Claims priority of application No. 202010081668.9 (CN), filed on Feb. 6, 2020.
Prior Publication US 2022/0207821 A1, Jun. 30, 2022
Int. Cl. G06T 15/60 (2006.01); A63F 13/52 (2014.01); G06T 15/04 (2011.01); G06T 15/06 (2011.01); G06T 15/50 (2011.01)
CPC G06T 15/60 (2013.01) [A63F 13/52 (2014.09); G06T 15/04 (2013.01); G06T 15/06 (2013.01); G06T 15/506 (2013.01); G06T 2215/12 (2013.01)] 20 Claims
OG exemplary drawing
 
1. An image rendering method, performed by a terminal, the method comprising:
obtaining a first shadow map and a second shadow map of a target virtual object, a resolution of the first shadow map being less than a resolution of the second shadow map;
determining a first texel range of each texel and a central point in the first shadow map, the first texel range being set based on a transition distance of a shadow edge and the transition distance being used for indicating a shadow edge of the target virtual object in the first shadow map;
performing, based on the central point, scaling processing on the first texel range by using a scaling coefficient to obtain a second texel range, the scaling coefficient being obtained based on a ratio of the resolution of the first shadow map to the resolution of the second shadow map; and
performing shadow rendering on the target virtual object according to the second texel range.