Patentable/Patents/US-12567193-B2
US-12567193-B2

Particle rendering method and apparatus

PublishedMarch 3, 2026
Assigneenot available in USPTO data we have
Inventorsnot available in USPTO data we have
Technical Abstract

The embodiments of the present disclosure provide a particle rendering method and apparatus, which relate to the technical field of image rendering. The method includes: obtaining state information of a target particle; obtaining a fall duration of the target particle if the state information is first state information indicating that no collision with the target particle occurred; obtaining a first position based on the fall duration and a fall speed of the target particle; and rendering the target particle to be at the first position.

Patent Claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

. A particle rendering method, comprising:

2

. The particle rendering method according to, further comprising:

3

. The particle rendering method according to, wherein the obtaining the first depth value comprises:

4

. The particle rendering method according to, further comprising:

5

. The particle rendering method according to, further comprising:

6

. The method according to, wherein obtaining the first depth value comprises:

7

. The particle rendering method according to, further comprising:

8

. An electronic device, comprising:

9

. The electronic device according to, wherein the processor is configured to:

10

. The electronic device according to, wherein the processor is configured to:

11

. The electronic device according to, wherein the processor is configured to:

12

. The electronic device according to, wherein the processor is configured to:

13

. The electronic device according to, wherein the processor is configured to:

14

. The electronic device according to, wherein the processor is configured to:

15

. A non-transitory computer-readable storage medium stored thereon a computer program that, when executed by a computing device, causes the computing device to implement a particle rendering method comprising:

16

. The non-transitory computer-readable storage medium according to, wherein the particle rendering method further comprises:

17

. The non-transitory computer-readable storage medium according to, wherein the particle rendering method further comprises:

Detailed Description

Complete technical specification and implementation details from the patent document.

The present disclosure is a U.S. National Stage Application under 35 U.S.C. § 371 of International Patent Application No. PCT/CN2022/086353, filed on Dec. 4, 2022, which is based on and claims priority of Chinese application for invention No. 202110600409.7, filed on May. 31, 2021, the disclosure of which is hereby incorporated into this disclosure by reference in its entirety.

This disclosure relates to a field of image rendering technology, in particular to a particle rendering method and apparatus.

In the field of computer graphics, collision detection mainly refers to detecting whether two or more objects are simultaneously occupying a same position in a virtual scene. Since the advent of computers, collision detection has been the subject of interest and research. With the development of computer technology, demand for realism in virtual scenes is also increasing, and collision detection is critical to realism and immersion of virtual scenes.

One of main purposes of particle collision detection is to determine rendering positions of particles. For example, if a snowflake particle is detected colliding with a ground in a rendered scene, it is necessary to render the snowflake particle at the point where it collides with the ground to prevent the snowflake particle from continuing to fall in the virtual scene after colliding with the ground; if no collision with the ground is detected in the rendered scene, the snowflake particle should be rendered at a position that it reaches at a preset fall speed. Regular particle collision detection method comprises: calculating a motion trajectory of a particle at a time corresponding to each image frame without considering other objects in the rendered scene; then, determining whether the particle collided with the other objects in the rendered scene based on the motion trajectory of the particle and position information of other objects in the rendered scene, and determining position information of the particle.

In a first aspect, an embodiment of the present disclosure provides a particle rendering method, comprising:

As an optional embodiment of the present disclosure, the method further comprises:

As an optional embodiment of the present disclosure, the method further comprises:

As an optional embodiment of the present disclosure, the method further comprises:

As an optional embodiment of the present disclosure, the method further comprises:

As an optional embodiment of the present disclosure, obtaining a first depth value comprises:

As an optional embodiment of the present disclosure, the method further comprises:

In a second aspect, an embodiment of the present disclosure provides a particle rendering apparatus, comprising:

As an optional embodiment of the present disclosure, the processing unit is further used for obtaining a collision time of the target particle if the state information is second state information indicating that a collision with the target particle occurred, the collision time indicating a fall duration of the target particle before the collision occurred;

As an optional embodiment of the present disclosure, the processing unit is further used for, after the calculation unit obtains the first position, obtaining a first depth value and a second depth value after obtaining the first position, the first depth value being a depth value of the first position in a screen space, and the second depth value being a scene depth value corresponding first position in the screen space; determining whether the first depth value is greater than the second depth value; if the first depth value is greater than the second depth value, changing the state information of the target particle to second state information indicating that a collision with the target particle occurred, and storing the fall duration as a collision time of the target particle, the collision time indicating a fall duration of the target particle before the collision occurred.

As an optional embodiment of the present disclosure, the processing unit is further used for obtaining a collision position of the target particle if the state information is second state information indicating that a collision with the target particle occurred, the collision position indicating a position where the target particle located when the collision occurred; and

As an optional embodiment of the present disclosure, the processing unit is further used for, after the calculation unit obtains the first position, obtaining a first depth value and a second depth value after obtaining the first position, the first depth value being a depth value of the first position in a screen space, and the second depth value being a scene depth value corresponding to the first position in the screen space; determining whether the first depth value is greater than the second depth value; if the first depth value is greater than the second depth value, changing the state information of the target particle to second state information indicating that a collision with the target particle occurred, and storing the first position as a collision position of the target particle, the collision position indicating a position where the target particle located when the collision occurred.

As an optional embodiment of the present disclosure, the processing unit is particularly used for obtaining coordinate values of the first position in a world space based on coordinate values of the first position in a local space and a model matrix; obtaining coordinate values of the first position in a view space based on coordinate values of the first position in the world space and a view matrix; obtaining coordinate values of the first position in a clip space based on the coordinate values of the first position in the view space and a projection matrix; normalizing the coordinate values of the first position in the clip space to obtain coordinate values of the first position in the screen space; and obtaining the first depth value based on the coordinate values of the first position in the screen space.

As an optional embodiment of the present disclosure, the processing unit is further used for controlling the particle to return to an initial position thereof and resetting the fall duration of the particle to zero when the fall duration of the particle reaches a duration threshold, and updating the state information of the target particle with the first state information.

In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a memory for storing a computer program; and a processor that, when executing the computer program, causes the electronic device to implement the particle rendering method according to any of the above embodiments.

In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium stored thereon a computer program that, when executed by a computing device, causes the computing device to implement the particle rendering method according to any of the above embodiments.

In a fifth aspect, an embodiment of the present disclosure provides a computer program product that, when running on a computer, causes the computer to implement the particle rendering method according to any of the above embodiments.

In a sixth aspect, the present disclosure provides a computer program, comprising: instructions that, when executed by a processor, cause the processor to implement the particle rendering method according to any of the above embodiments.

In order to better understand the above objects, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments and the features of the embodiments of the present disclosure may be combined with each other.

Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein. Obviously, embodiments described in the description are only some embodiments of the present disclosure, and are not all of embodiments thereof.

In the present disclosed embodiment, words such as “as an illustration” or “for example” are used to provide examples, illustrations, or explanations. Any embodiments or designs described with “as an illustration” or “for example” in the embodiments of the present disclosure should not be construed as being more preferred or advantageous than other embodiments or designs. In particular, the use of words such as “as an illustration” or “for example” is intended to present relevant concepts in a particular way. Moreover, in the description of the embodiments of the present disclosure, unless otherwise indicated, the phrase “a plurality of” means “two or more”.

The regular particle collision detection method needs to calculate the motion trajectory of the particle at the time corresponding to the each image frame, and determine whether the particle collided with the other objects in the rendered scene based on the motion trajectory of the particle and the position information of the other objects in the rendered scene. With development of virtualization technology, complexity of virtual scenes increases and fineness of objects increases, resulting in an increasing amount of computation for particle collision detection. Therefore, the current particle collision detection method cannot meet real-time requirements of particle rendering. In view of this, embodiments of the present disclosure provide a particle rendering method and apparatus, capable of reducing the amount of computation required for particle rendering.

An embodiment of the present embodiment provides a particle rendering method. As shown in, the particle rendering method comprises the following steps.

In S, state information of a target particle is obtained.

Specifically, the state information in the embodiment of this disclosure is information indicating a collision state of the particle, comprising first state information indicating that no collision with the particle occurred, and second state information indicating that a collision with the particle occurred.

As an example, values carried by a preset number of bits can be used as the state information of the target particle. For example, a one bit value can be used as the state information of the target particle. If this bit has a value of 0, it indicates that no collision with the target particle occurred; if this bit has a value of 1, it indicates that a collision with the target particle occurred.

It should be noted that the collision with the target particle may be a collision between the target particle and a ground in the rendered scene, or a collision between the target particle and other objects in the rendered scene, which is not limited in the embodiments of the present disclosure.

In S, a fall duration of the target particle is obtained if the state information is the first state information indicating that no collision with the particle occurred.

For example, the fall duration of the target particle can be obtained based on a time when the particle starts to fall and a current time. The time when the particle starts to fall may be a last time the target particle has its fall duration reset to zero. For example, if the fall duration of the target particle was last reset to zero at to, and the current time is t1, then the fall duration of the target particle is t1-t0.

As an example, the fall duration of the target particle can also be obtained based on a current image frame to be rendered. For example, if the current frame to be rendered is the 30th frame, a frame refresh rate is 60 Hz/s, and the particle falls from the first frame, the fall duration of the particle is 0.5 seconds.

In S, a first position is obtained based on the fall duration and a fall speed of the target particle.

The fall speed of the target particle in this embodiment can be specified by the user in advance based on a type of particle. It should be noted that the target particle can fall at a predetermined constant velocity, at an increased or decreased velocity based on a preset acceleration and an initial speed.

It should be noted that based on the fall duration and the fall speed of the target particle, only a vertical position coordinate of the target particle can be obtained. If it is required to determine the position of the target particle in three-dimensional space, position coordinates of the target particle in the horizontal plane must also be obtained. In an optional embodiment of the present disclosure, the method of the obtaining the position coordinates of the target particle in the horizontal plane may comprise: obtaining the position coordinates of the target particle in the horizontal plane based on initial position coordinates thereof. This means that the target particle is controlled to fall in a vertical direction, and the position coordinates of the target particle in the horizontal plane are always the same as the initial position.

In S, the target particle is rendered to be at the first position.

The particle rendering method provided in the embodiment of the present disclosure comprises first obtaining the state information of the target particle; obtaining a fall duration of the target particle if the state information is the first state information indicating that no collision with the target particle occurred; obtaining the first position according to the fall duration and the fall speed of the target particle; and rendering the target particle to be at the first position. That is, the particle rendering method provided in this embodiment adds the state information to the particle, indicating whether the collision with the particle occurred; the position of the particle is directly calculated based on its fall duration and fall speed if the state information indicates that no collision with the particle occurred, and the particle is rendered at the calculated position. Since the particle rendering method provided in the embodiment of the present disclosure can determine whether the collision with the particle occurred based on the state information of the particle, this particle rendering method does not need to calculate the motion trajectory of the particle at the time corresponding to the each image frame, and determine whether the particle collided with other objects in the rendered scene based on the motion trajectory of the particle and the position information of other objects in the rendered scene. Therefore, the particle rendering method provided in the embodiment of the present disclosure can reduce the amount of computation required to obtain particle positions, thereby reducing the amount of computation required for particle rendering, and improving computational efficiency.

An embodiment of the present embodiment provides another particle rendering method. As shown in, the particle rendering method comprises the following steps.

In S, state information of a target particle is obtained.

As mentioned above, the state information this embodiment is information indicating a collision state of the particle, comprising first state information indicating that no collision with the particle occurred, and second state information indicating that a collision with the particle occurred.

In S, whether a collision with the target particle occurred is determined according to the state information.

Specifically, the method of the above step S(determining whether the collision with the target particle occurred according to the state information) comprises: determining that no collision occurred with the target particle if the state information is the first state information indicating that no collision with the target particle occurred; and determining that a collision occurred with the target particle if the state information is the second state information indicating that the collision with the target particle occurred.

In the above step S, if it is determined that no collision with the target particle occurred, the following steps Sto Sare executed.

In S, a fall duration of the target particle is obtained.

In S, a first position is obtained based on the fall duration and a fall speed of the target particle.

In S, the target particle is rendered to be at the first position.

For the implementation and explanation of the above steps Sto S, reference can be made to the implementation and explanation of steps Sto Sof the embodiment shown in, which will not be repeated here.

In S, a first depth value and a second depth value are obtained.

Patent Metadata

Filing Date

Unknown

Publication Date

March 3, 2026

Inventors

Unknown

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “Particle rendering method and apparatus” (US-12567193-B2). https://patentable.app/patents/US-12567193-B2

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.

Particle rendering method and apparatus | Patentable