US 12,450,812 B2
Physical special effect rendering method and apparatus, computer device, and storage medium
Chendi Wei, Shenzhen (CN); and Li Huang, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on May 16, 2023, as Appl. No. 18/198,168.
Application 18/198,168 is a continuation of application No. PCT/CN2022/118750, filed on Sep. 14, 2022.
Claims priority of application No. 202111237498.X (CN), filed on Oct. 25, 2021.
Prior Publication US 2023/0290032 A1, Sep. 14, 2023
Int. Cl. G06T 13/60 (2011.01); G06T 7/246 (2017.01); G06T 15/00 (2011.01)
CPC G06T 13/60 (2013.01) [G06T 7/246 (2017.01); G06T 15/005 (2013.01); G06T 2207/10016 (2013.01); G06T 2207/20021 (2013.01); G06T 2215/16 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A physical special effect rendering method performed by a computer device, and comprising:
obtaining physical special effect data of physical special effect particles emitted by a particle emission plug-in in a previous frame;
obtaining a first target instance obtained by instantiating a scene management class;
invoking, through the first target instance, a scene manager of a particle simulation tool to calculate motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame; and
updating the physical special effect data in the previous frame based on the motion state information of the current frame to render a physical special effect in the current frame, further including:
obtaining a second target instance obtained by instantiating a geometry management class, the geometry management class inheriting from a target base class provided by the particle emission plug-in; and
invoking a geometry management interface of the particle simulation tool through the second target instance to write the motion state information of the current frame into a target video memory through a geometry manager in the particle simulation tool, and updating the physical special effect data in the previous frame in the target video memory based on the motion state information of the current frame, to render a physical special effect in the current frame.