IP Library Granted Patent US 12,450,812
Granted Patent B2
US 12,450,812 · App. 18/198,168 · Granted Oct 21, 2025

Physical special effect rendering method and apparatus, computer device, and storage medium

Inventors: Chendi Wei (Shenzhen, CN); Li Huang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06T13/60G06T7/246G06T15/005G06T2207/10016G06T2207/20021G06T2215/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,450,812
App. No.
18/198,168
Granted
Oct 21, 2025
Kind
B2
Abstract

This application relates to a physical special effect rendering method performed by a computer device. The method includes: 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.

Claims (74)

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.

2. The method according to claim 1 , wherein the first target instance is generated through the following steps:

determining a base class used for invoking a data interface provided by the particle simulation tool from a set of base classes provided by the particle emission plug-in, to obtain a target base class;

creating the scene management class inheriting from the target base class to invoke the scene management interface of the particle simulation tool; and

instantiating the scene management class to obtain the first target instance.

3. The method according to claim 1 , wherein the method further comprises:

obtaining a third target instance obtained by instantiating a boundary condition management class; the boundary condition management class inheriting from a target base class provided by the particle emission plug-in; and

invoking, through the third target instance, a boundary condition management interface of the particle simulation tool to obtain a target boundary condition in a boundary condition manager of the particle simulation tool; and

the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprising:

calculating the motion state information of the physical special effect particles in the current frame based on the physical special effect data in the previous frame and the target boundary condition in the scene manager of the particle simulation tool.

4. The method according to claim 1 , wherein the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprises:

calculating the motion state information of the physical special effect particles in the current frame based on the physical special effect data in the previous frame in the scene manager of the particle simulation tool; and

updating the physical special effect data in the previous frame based on the motion state information of the physical special effect particles in the current frame.

5. The method according to claim 1 , wherein the method further comprises:

emitting a preset number of initial particles at a position of a preset model; and

sampling, through the particle simulation tool, a surface and an interior of the preset model based on the attribute information of the preset number of initial particles to obtain physical special effect particles for physical special effect simulation.

6. The method according to claim 1 , wherein the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprises:

mapping the physical special effect data in the previous frame to a preset background grid in the scene manager of the particle simulation tool; the preset background grid comprising a plurality of grid nodes;

calculating motion state information of the grid node corresponding to each physical special effect particle in the current frame based on the physical special effect data in the background grid; and

mapping the motion state information of each grid node to the corresponding physical special effect particle to obtain the motion state information of each physical special effect particle in the current frame.

7. The method according to claim 1 , wherein the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame comprises:

sequentially determining a current time step for the current frame, and calculating motion state information of physical special effect particles in the current time step based on the physical special effect data of the physical special effect particles in a previous time step of the current time step; and

determining motion state information of the physical special effect particles in an ending time step as the motion state information of the physical special effect particles in the current frame.

8. A computer device, comprising a memory and one or more processors, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the one or more processors, causing the computer device to perform a physical special effect rendering method including:

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.

9. The computer device according to claim 8 , wherein the first target instance is generated through the following steps:

determining a base class used for invoking a data interface provided by the particle simulation tool from a set of base classes provided by the particle emission plug-in, to obtain a target base class;

creating the scene management class inheriting from the target base class to invoke the scene management interface of the particle simulation tool; and

instantiating the scene management class to obtain the first target instance.

10. The computer device according to claim 8 , wherein the method further comprises:

obtaining a third target instance obtained by instantiating a boundary condition management class; the boundary condition management class inheriting from a target base class provided by the particle emission plug-in; and

invoking, through the third target instance, a boundary condition management interface of the particle simulation tool to obtain a target boundary condition in a boundary condition manager of the particle simulation tool; and

the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprising:

calculating the motion state information of the physical special effect particles in the current frame based on the physical special effect data in the previous frame and the target boundary condition in the scene manager of the particle simulation tool.

11. The computer device according to claim 8 , wherein the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprises:

calculating the motion state information of the physical special effect particles in the current frame based on the physical special effect data in the previous frame in the scene manager of the particle simulation tool; and

updating the physical special effect data in the previous frame based on the motion state information of the physical special effect particles in the current frame.

12. The computer device according to claim 8 , wherein the method further comprises:

emitting a preset number of initial particles at a position of a preset model; and

sampling, through the particle simulation tool, a surface and an interior of the preset model based on the attribute information of the preset number of initial particles to obtain physical special effect particles for physical special effect simulation.

13. The computer device according to claim 8 , wherein the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprises:

mapping the physical special effect data in the previous frame to a preset background grid in the scene manager of the particle simulation tool; the preset background grid comprising a plurality of grid nodes;

calculating motion state information of the grid node corresponding to each physical special effect particle in the current frame based on the physical special effect data in the background grid; and

mapping the motion state information of each grid node to the corresponding physical special effect particle to obtain the motion state information of each physical special effect particle in the current frame.

14. The computer device according to claim 8 , wherein the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame comprises:

sequentially determining a current time step for the current frame, and calculating motion state information of physical special effect particles in the current time step based on the physical special effect data of the physical special effect particles in a previous time step of the current time step; and

determining motion state information of the physical special effect particles in an ending time step as the motion state information of the physical special effect particles in the current frame.

15. A non-transitory computer-readable storage medium, storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors of a computer device, causing the computer device to perform a physical special effect rendering method including:

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.

16. The non-transitory computer-readable storage medium according to claim 15 , wherein the first target instance is generated through the following steps:

determining a base class used for invoking a data interface provided by the particle simulation tool from a set of base classes provided by the particle emission plug-in, to obtain a target base class;

creating the scene management class inheriting from the target base class to invoke the scene management interface of the particle simulation tool; and

instantiating the scene management class to obtain the first target instance.

17. The non-transitory computer-readable storage medium according to claim 15 , wherein the method further comprises:

obtaining a third target instance obtained by instantiating a boundary condition management class; the boundary condition management class inheriting from a target base class provided by the particle emission plug-in; and

invoking, through the third target instance, a boundary condition management interface of the particle simulation tool to obtain a target boundary condition in a boundary condition manager of the particle simulation tool; and

the calculating motion state information of the physical special effect particles in a current frame based on the physical special effect data in the previous frame in a scene manager of the particle simulation tool comprising:

calculating the motion state information of the physical special effect particles in the current frame based on the physical special effect data in the previous frame and the target boundary condition in the scene manager of the particle simulation tool.

Priority Claims (1)
CN 202111237498.X · Oct 25, 2021 · national
Continuity (2)
Continuation PCTCN2022118750 · Sep 14, 2022
Related Publication 20230290032A1 · Sep 14, 2023
References Cited (26)
US 5119080A · Kajimoto · 1992 [cited by examiner]
US 6421089B1 · Fran.cedilla.ois · 2002 [cited by examiner]
US 20090083015A1 · McDaniel · 2009 [cited by applicant]
US 20150187116A1 · Stomakhin · 2015 [cited by examiner]
US 20190114819A1 · Kite et al. · 2019 [cited by applicant]
CN 104778737A · 2015 [cited by applicant]
CN 106056660A · 2016 [cited by examiner]
CN 107392835A · 2017 [cited by examiner]
CN 110049371A · 2019 [cited by applicant]
CN 111741332A · 2020 [cited by applicant]
CN 112270732A · 2021 [cited by applicant]
CN 112446942A · 2021 [cited by applicant]
CN 112862942A · 2021 [cited by applicant]
CN 113223122A · 2021 [cited by applicant]
CN 113689534A · 2021 [cited by applicant]
JP 2004127005A · 2004 [cited by examiner]
UnityEngine. Unity Documentation Scripting API Version 5.6 [Online]. Jul. 12, 2017 [Retrieved on Mar. 19, 2025]. Retrieved from the Internet: <https://docs.unity3d.com/560/Documentation/ScriptReference/index.html> (Year… [cited by examiner]
Mangal, Kirti. C# Inheritance [Online]. Jan. 23, 2019 [Date retrieved from Wayback Machine, Retrieved on Mar. 19, 2025]. Retrieved from the Internet: <https://www.geeksforgeeks.org/c-sharp-inheritance/> (Year: 2019). [cited by examiner]
Wikipedia. Framebuffer [Online]. Sep. 13, 2020 [Retrieved on Mar. 19, 2025]. Retrieved from the Internet: <https://en.wikipedia.org/wiki/Framebuffer> (Year: 2020). [cited by examiner]
Screenshots from YouTube video clip entitled “ScienceMan Digital Lesson—Physics—Interactive Physics Review” uploaded on Mar. 4, 2012 by user “ScienceMandotcom” [Retrieved on Mar. 19, 2025]. Retrieved from the Internet: … [cited by examiner]
Autodesk 3ds Max. Special Effects [Online]. 2010 [Retrieved on Jun. 24, 2025]. Retrieved from the Internet: <URL: https://images.autodesk.com/adsk/files/3dsmax_2010_special_effects.pdf > (Year: 2010). [cited by examiner]
Tencent Technology, WO, PCT/CN2022/118750, Nov. 29, 2022, 4 pgs. [cited by applicant]
Tencent Technology, ISR, PCT/CN2022/118750, Nov. 29, 2022, 2 pgs. [cited by applicant]
Shun-ling Wang et al., “Real-Time Simulation of Snowfall in Virtual Scene”, Computer Technology and Development, vol. 16, No. 3, Mar. 2006, 4 pgs. [cited by applicant]
Xiao Miaomiao et al., “Fluid Simulation of SPH Based on OpenCL”, Journal of System Simulation, vol. 27, No. 4, Apr. 2015, 7 pgs. [cited by applicant]
Zhan Yongsong et al., “Study of Special Effect Simulation by Particle System Editor”, 2011 IEEE 2 [cited by applicant]
Cited By (1)
US 12,734,449