Particle rendering method and device, computer equipment and computer readable storage medium

By obtaining the motion control information of the particles and determining the target position and offset information of the particles, real-time rendering of strip objects is achieved, solving the problems of high production costs and lack of real-time in the prior art, and improving the efficiency and interactivity of special effects generation.

CN120510263APending Publication Date: 2025-08-19NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510553720.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

In the prior art, the movement of strip-like objects such as ropes and chains usually requires animators to pre-made bone and skin information, resulting in high production costs and lack of real-timeness.

Method used

By obtaining the motion control information of multiple particles arranged in chains, the target position information of the first particle is determined, and the position offset information of the second particle is determined in sequence according to the arrangement order of the particles, real-time rendering of the particles is realized, and the motion special effects of strip objects are simulated.

Benefits of technology

There is no need to create a complete animation in advance, and the motion effects of striped objects can be rendered in real time, improving the efficiency of special effects generation, increasing the interactivity between virtual objects and users and game playability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120510263A_ABST
    Figure CN120510263A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a particle rendering method and device, computer equipment and a computer readable storage medium, and the method comprises the steps: obtaining the motion control information of a plurality of particles which are arranged in a chain, and the plurality of particles comprise a first particle and a second particle; determining target position information of the first particle at the current moment based on the motion control information; according to the target position information, sequentially determining position offset information corresponding to each second particle according to the arrangement sequence of the particles; according to the arrangement sequence of the particles, performing offset processing on the historical target position information of the second particles based on the position offset information corresponding to the second particles in sequence to obtain the target position information of the second particles at the current moment; in the embodiment of the invention, the plurality of particles are rendered according to the target position information of each particle at the current moment to obtain a rendering result corresponding to the current moment, so that the motion relevance of each position on the strip-shaped object can be simulated, and the motion special effect of the strip-shaped object can be rendered in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of rendering technology, and in particular to a particle rendering method, apparatus, computer device, and computer-readable storage medium. Background Art

[0002] In some animations, the movement of strip-like objects such as ropes and chains is usually achieved by animators adding skeleton and skinning information to pre-made models and then creating offline animations. This is not only costly to produce, but also because the animations are offline, they are not real-time. Summary of the Invention

[0003] The embodiments of the present application provide a particle rendering method, apparatus, computer device, and computer-readable storage medium, which can render the motion effects of strip-shaped objects in real time without the need to produce a complete animation in advance, thereby improving the efficiency of special effects generation.

[0004] An embodiment of the present application provides a particle rendering method, comprising:

[0005] acquiring motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle;

[0006] determining target position information of the first particle at a current moment based on the motion control information;

[0007] determining, according to the target position information, position offset information corresponding to each second particle in sequence according to the arrangement order of the particles;

[0008] performing offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles, to obtain the target position information of the second particle at the current moment;

[0009] The plurality of particles are rendered according to the target position information of each particle at the current moment to obtain a rendering result corresponding to the current moment.

[0010] Accordingly, an embodiment of the present application further provides a particle rendering device, comprising:

[0011] an acquiring unit, configured to acquire motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle;

[0012] a first determining unit, configured to determine target position information of the first particle at a current moment based on the motion control information;

[0013] a second determining unit, configured to determine, according to the target position information and in accordance with the arrangement order of the particles, position offset information corresponding to each second particle;

[0014] an offset unit, configured to perform offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles, to obtain the target position information of the second particle at the current moment;

[0015] The rendering unit is configured to render the plurality of particles according to target position information of each particle at the current moment, and obtain a rendering result corresponding to the current moment.

[0016] Accordingly, an embodiment of the present application further provides a computer device, comprising a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute any particle rendering method provided in the embodiment of the present application.

[0017] Accordingly, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any particle rendering method provided in the embodiment of the present application.

[0018] The embodiment of the present application obtains motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle; determines the target position information of the first particle at the current moment based on the motion control information; determines the position offset information corresponding to each second particle in sequence according to the target position information in accordance with the arrangement order of the particles; performs offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles to obtain the target position information of the second particle at the current moment; renders the plurality of particles according to the target position information of each particle at the current moment to obtain the rendering result corresponding to the current moment. The embodiment of the present application determines the offset information of each second particle based on the target information of the first particle, and can realize the control of the second particle based on the position offset of the first particle to simulate the motion correlation of each position on the strip object, so that the motion special effects of the strip object can be rendered in real time without the need to prepare a complete animation in advance, thereby improving the generation efficiency of the special effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of the particle rendering method provided in an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of the arrangement of multiple particles provided in an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of the arrangement of multiple particles provided in an embodiment of the present application;

[0023] Figure 4 is a rendering schematic diagram of multiple particles provided in an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of a particle rendering device provided in an embodiment of the present application;

[0025] Figure 6 It is a structural diagram of the computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0027] The present invention provides a particle rendering method, apparatus, computer device, and computer-readable storage medium. The particle rendering apparatus can be integrated into a computer device, which can be a server or a terminal.

[0028] The terminal may include a mobile phone, a wearable smart device, a tablet computer, a laptop computer, a personal computer (PC), and a vehicle-mounted computer.

[0029] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), as well as big data and artificial intelligence platforms.

[0030] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0031] This embodiment will be described from the perspective of a particle rendering device. The particle rendering device may be integrated into a computer device, which may be a server or a terminal.

[0032] The embodiment of the present application provides a particle rendering method, such as Figure 1 As shown, the specific process of the particle rendering method can be as follows:

[0033] 101. Obtain motion control information for a plurality of particles arranged in a chain, where the plurality of particles include a first particle and a second particle.

[0034] Particles are generated within a virtual three-dimensional space and serve as the fundamental building blocks for rendering effects. By combining and varying multiple particles, a rich variety of visual scenes can be rendered. For example, when rendering a flame effect, numerous particles work together to simulate the dynamic effects of a leaping and rising flame. Alternatively, the flexible movement of chain-like objects can be rendered. Another example is the movement of particles simulating the deformation and recovery of a soft rope when swung. Particles possess geometric, dynamic, and rendering properties, and these properties can be used to simulate various special effects.

[0035] For example, multiple particles can be arranged in a chain as follows Figure 2 or Figure 3 As shown. The first particle and the second particle are different particles in the plurality of particles. Optionally, the first particle in the plurality of particles can be determined according to the arrangement order of the particles in the chain arrangement. For example, the first particle can be the first particle in the plurality of particles arranged in the chain, or the first k particles, where k is greater than 1. The second particle can be a particle in the plurality of particles other than the first particle, and the second particle is arranged after the first particle.

[0036] The motion control information is information used to determine the motion state of particles, such as position and speed.

[0037] The motion control information may be pre-set in a code program for controlling particle motion, or may be determined based on user input. For example, a graphical user interface may be provided for the user to input the motion control information.

[0038] In one embodiment, the first and second particles among multiple particles can be determined based on the particle identification. For example, the particles can be assigned particle identifications based on their ranking, and then the particle with the highest ranking, i.e., the first particle, can be determined from the multiple particles based on the particle identifications.

[0039] Optionally, the first particle and the second particle may be determined based on the particle properties of the particle. That is, in one embodiment, before the step of "determining the target position information of the first particle at the current moment based on the motion control information", the particle rendering method provided in the embodiment of the present application may further include:

[0040] Acquire particle attribute information of each particle in the plurality of particles, the particle attribute information comprising at least one of a gravity attribute and a starting attribute;

[0041] The first particle and the second particle are determined from the plurality of particles according to the particle attribute information, where the first particle is a starting particle and / or has a gravity of 0.

[0042] The first particle and the second particle are determined from the plurality of particles based on the particle attribute information. Specifically, a particle having a starting attribute indicating that the particle is the starting particle among the plurality of particles is selected from the starting attributes of the plurality of particles, and the particle is referred to as the first particle. Optionally, a particle having a gravity of 0 is selected from the plurality of particles based on the gravity attribute, and the particle is referred to as the first particle. Particles other than the first particle are referred to as the second particle.

[0043] 102. Determine target position information of the first particle at a current moment based on the motion control information.

[0044] Specifically, the motion control information may include the position information of the particle emitter at the current moment. Based on the position information of the particle emitter at the current moment, the target position information of the first particle at the current moment is determined. For example, the position information of the particle emitter at the current moment can be used as the target position information of the first particle at the current moment, or the position information of the particle emitter at the current moment can be added with a specified offset to obtain the target position information of the first particle at the current moment.

[0045] Optionally, the first particles may move under the control of user interaction, for example, they may move according to user interaction. The first particles may also move under the control of a virtual object, for example, a virtual game character in a game. The object composed of multiple particles may be a game prop held by the virtual game character, such as a virtual rope, a virtual iron chain, a virtual ribbon, etc. Therefore, in one embodiment, the particles include particles constituting a virtual software object, and the motion control information includes operation position information. Before the step of "obtaining motion control information for multiple particles arranged in a chain", the particle rendering method provided in the embodiment of the present application may further include:

[0046] According to the motion control operation on the virtual software object, operation position information of the motion control operation is determined to control the first particle to move following the motion control operation.

[0047] Among them, the motion control operation may include user interaction operation, and the user interaction operation may include at least one of voice control, gesture operation, and touch operation acting on the graphical user interface. The operation position information may be the position information indicated by the interaction operation. For example, the operation position information may be the interface position of the graphical user interface where the touch operation acts.

[0048] Determining the target position information of the first particle at the current moment based on the operation position information can be done by using the operation position information to determine the target position information of the first particle at the current moment, or by converting the operation position information to obtain the target position information of the first particle at the current moment, so as to render the movement of the first particle under the control of the motion control operation. A virtual software object composed of multiple particles can move under the control of the user's interactive operation, thereby increasing the interactivity between the virtual software object and the user. If the method provided in the embodiments of the present application is applied to a game, it can increase the interactivity between the player and the virtual game props composed of multiple particles, and the movement effects of the virtual game props are realistic and non-repetitive, thereby increasing the playability of the game and improving the player's gaming experience.

[0049] The motion control operation may also include a control action of a virtual character controlling a virtual software object. That is, in one embodiment, the virtual software object is controlled by a virtual character, and a motion association relationship exists between the first particle and a target reference point of the virtual character. The step of "determining the operation position information of the motion control operation based on the motion control operation for the virtual software object" includes:

[0050] determining displacement information of the target reference point of the virtual character according to the motion control operation of the virtual character on the virtual software object;

[0051] The operation position information is determined according to the displacement information of the target reference point.

[0052] The target reference point can be a real joint of the virtual character, a virtual joint, or a simulation anchor point.

[0053] Since there is a motion association relationship between the virtual software object and the target reference point, the movement of the virtual character and the virtual software object can be synchronized, so the motion control operation of the virtual character on the virtual software object can include the displacement of the target reference point of the virtual software object. The displacement information of the target reference point of the virtual character can be determined based on the movement of the virtual character, and the displacement information of the target reference point is the operation position information.

[0054] For example, the first particle can inherit the simulation anchor point "SimulationPosition" of the virtual character, so that the first particle follows the movement of the simulation anchor point. The simulation anchor point can be set at the position of the virtual character's hand to ensure that the virtual soft object is always held in the hand of the virtual character while the virtual character's hand is waving.

[0055] For example, a virtual object composed of multiple particles can be a virtual game prop currently held by the virtual object, and the motion control operation is the control action of the virtual object on the virtual game prop. According to the control action of the virtual object, the target position information of the first particle at the current moment can be determined, so as to render the first particle moving following the control action of the virtual object, and the control operation of the virtual object can be controlled by the player's interactive operation.

[0056] The historical target position information of the second particle at the current moment is determined based on the motion control information. Specifically, the motion control information may include the position information of the particle emitter at the current moment and the offset corresponding to each second particle. The position information of the particle emitter at the current moment is offset based on the offset to obtain the historical target position information of the second particle. The offset corresponding to the second particle is different from the offset of the first particle.

[0057] 103. Determine position offset information corresponding to each second particle in sequence according to the target position information and the arrangement order of the particles.

[0058] The first associated particle of the second particle may be a particle arranged before the second particle in the plurality of particles arranged in a chain, for example, the particle immediately preceding the second particle. For example, the second particle is the fifth particle in the plurality of particles arranged in a chain, and the first associated particle of the second particle may be the first, second, third, or fourth particle in the plurality of particles arranged in the chain.

[0059] According to the target position information of the first associated particle arranged before the second particle, the position offset information of the second particle is determined. Specifically, the vector A pointing from the second particle to the first associated particle is determined, and the vector A is used as the position offset information. Optionally, the vector A is added to the specified vector to obtain the position offset information. The direction of the specified vector can be the same as the arrangement direction of the multiple particles. For example, Figure 2 For the chain-like arrangement of particles shown, the direction of the specified vector can be -z.

[0060] Optionally, the target position information of the second particle can be determined one by one according to the arrangement order of the second particle. Assuming that the multiple particles arranged in a chain are particle 1, particle 2, particle 3, particle 4 and particle 5 in the arrangement order, particle 1 is the first particle, the other particles are the second particles, and the first associated particle is the previous particle of the second particle. The position offset information of particle 2 can be determined according to the target position information of particle 1, and the position offset information of particle 2 can be determined according to the target position information of particle 1. After determining the target position information of particle 2 based on the position offset information, the position offset information of particle 3 can be determined according to the target position information of particle 2. Similarly, the position offset information of particle 4 can be determined according to the target position information of particle 3, and the position offset information of particle 5 can be determined according to the target position information of particle 4, and then the target position information of particle 5 can be determined.

[0061] Optionally, the position offset information of each second particle is determined by the following steps:

[0062] For each second particle, determining first relative position information of the second particle and the first associated particle according to target position information of a first associated particle arranged before the second particle and historical target position information of the second particle;

[0063] For each second particle, determining second relative position information between the second particle and the second associated particle according to historical target position information of the second particle and a second associated particle arranged after the second particle;

[0064] The step of “determining the position offset information of the second particle according to the target position information of the first associated particle arranged before the second particle” may include:

[0065] Position offset information is determined based on the first relative position and the second relative position.

[0066] The second associated particle of the second particle may be a particle arranged after the second particle in the plurality of particles arranged in a chain, for example, the particle after the second particle. Exemplarily, the second particle is the second particle in the plurality of particles arranged in a chain, and the second associated particle of the second particle may be the third particle, the fourth particle, or the fifth particle in the plurality of particles arranged in the chain.

[0067] The first relative position information may include a vector from the first associated particle to the second particle, or a vector from the second particle to the first associated particle. The second relative position information may include a vector from the second associated particle to the second particle, or a vector from the second particle to the second associated particle.

[0068] Based on the first relative position and the second relative position, the position offset information is determined. The first relative position information and the second relative position information can be added or subtracted to obtain the position offset information. Optionally, the result obtained by adding or subtracting the first relative position information and the second relative position information can be scaled to obtain the position offset information.

[0069] Exemplarily, the first relative position information may include the vector pointing from the first associated particle to the second particle, which may be recorded as vector M; the second relative position information may include the vector pointing from the second associated particle to the second particle, which may be recorded as vector N; the position offset information may be a(vector N-vector M), where a is the scaling ratio, and the scaling ratio may be a value greater than 0 and less than or equal to 1.

[0070] Optionally, the first particle is arranged before the second particle, and the position offset information of each second particle is determined by the following steps:

[0071] For each second particle, determining first relative position information of the second particle and the first associated particle according to target position information of a first associated particle arranged before the second particle and historical target position information of the second particle;

[0072] performing scaling processing on the first relative position information to obtain scaled first relative position information;

[0073] The position offset information of each second particle is determined according to the scaled first relative position information.

[0074] The first relative position information may include a vector from the first associated particle to the second particle, or a vector from the second particle to the first associated particle.

[0075] The scaling process is performed on the first relative position information. The scaling process can be performed on the first relative position based on a preset scaling factor. The preset scaling factor can range from 0 to 1. Optionally, the scaling factors corresponding to different second particles can be the same or different. Optionally, the scaling factor corresponding to the second particle arranged closer to the front can be larger, and the scaling factor corresponding to the second particle arranged closer to the back can be smaller.

[0076] The scaled first relative position information can be used as position offset information. Optionally, the first relative position information can be added with a specified vector to obtain position offset information. The direction of the specified vector can be the same as the arrangement direction of the multiple particles. For example, Figure 2 For the chain-like arrangement of particles shown, the direction of the specified vector can be -z.

[0077] By scaling the first relative position by the scaling ratio, the second particles will not immediately return to the chain arrangement with the first associated particles, but will gradually return to the chain arrangement with the first associated particles, thereby rendering the soft feeling of a soft rope or other strip-like objects in motion.

[0078] In one embodiment, before the step of “determining the position offset information of each second particle according to the scaled first relative position information”, the particle rendering method provided by the embodiment of the present application may further include:

[0079] For each second particle, determining second relative position information between the second particle and the second associated particle according to historical target position information of the second particle and a second associated particle arranged after the second particle;

[0080] performing scaling processing on the second relative position information to obtain scaled second relative position information;

[0081] The step of “determining the position offset information of each second particle according to the scaled first relative position information” may include:

[0082] The position offset information of each second particle is determined according to the scaled first relative position and the scaled second relative position information.

[0083] Scaling the second relative position information to obtain scaled second relative position information may refer to the process of scaling the first relative position information, which will not be described in detail here.

[0084] Based on the scaled first relative position and the scaled second relative position, the position offset information is determined. The position offset information can be obtained by adding or subtracting the scaled first relative position information and the scaled second relative position information. Optionally, the result obtained by adding or subtracting the scaled first relative position information and the scaled second relative position information can be scaled to obtain the position offset information.

[0085] Exemplarily, the first relative position information may include the vector pointing from the first associated particle to the second particle, which may be recorded as vector M, and the scaled first relative position information may be vector cM; the second relative position information may include the vector pointing from the second associated particle to the second particle, which may be recorded as vector N, and the scaled second relative position information may be vector dN; the position offset information may be vector dN-vector cM), where c and d are scaling ratios, and the scaling ratio may be a value greater than 0 and less than or equal to 1.

[0086] In one embodiment, the scaling ratio may be determined based on the relative position information and a preset interparticle distance, that is, the step of “scaling the first relative position information to obtain scaled first relative position information” includes:

[0087] determining a first scaling ratio for the first relative position information according to the first relative position information and a preset interparticle distance;

[0088] The first relative position information is scaled based on the first scaling ratio to obtain scaled first relative position information.

[0089] The distance D1 between the first associated particle and the second particle can be determined based on the first relative position information. The first scaling ratio t1 can be determined based on the distance D1 and the preset particle spacing D0. For example, t1 = D1 / (D1+D0), or t1 = (D1-D0) / D1. The first scaling ratio is proportional to the first relative position information. Based on the first scaling ratio, the greater the distance between the second particle and the first associated particle, the greater the offset degree, so that multiple particles can be gradually arranged in a chain.

[0090] In one embodiment, the step of “scaling the second relative position information to obtain scaled second relative position information” may include:

[0091] determining a second scaling ratio for the second relative position information according to the second relative position information and the preset particle distance;

[0092] The second relative position information is scaled based on the second scaling ratio to obtain scaled second relative position information.

[0093] The distance D2 between the second associated particle and the second particle can be determined based on the second relative position information, and the first scaling ratio t2 can be determined based on the distance D1 and the preset particle spacing D0. For example, t1 = D2 / (D2+D0), or t2 = (D2-D0) / D2. The second scaling ratio is proportional to the second relative position information. Based on the second scaling ratio, the greater the distance from the second associated particle, the greater the degree of offset of the second particle, so that multiple particles can gradually be restored to a chain arrangement.

[0094] 104. Perform offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles to obtain the target position information of the second particle at the current moment.

[0095] It can be understood that steps 103 and 104 can be processing steps performed for each second particle in the order in which the particles are arranged. For example, steps 103 and 104 are first performed on the second particle among multiple particles arranged in a chain, and then steps 103 and 104 are performed on the second particle, and so on, until the target position information of all particles is determined.

[0096] After determining the position offset information, the historical target position information of the second particle can be offset according to the position offset information to obtain the target position information of the first particle at the current moment. The historical target position information of the second particle is offset based on the position offset information, so that the second particle can be brought closer to the first particle to restore the chain arrangement with the first particle. Among the multiple particles arranged in a chain, the closer the second particle is to the first particle, the greater the degree of offset. Therefore, based on the multiple particles, the softness of soft ropes, ribbons and other similar objects in motion can be rendered.

[0097] The historical target position information may be the target position information of the second particle at the previous moment before the current moment. If the current moment is the starting moment of the movement of the second particle, the historical position information may be preset information.

[0098] Optionally, the motion control information may also include information such as the velocity of the second particle. Based on the motion control information, the position information of the second particle at the current moment, i.e., the historical target position information, may be determined. In one embodiment, the motion control information includes the force state of each second particle. The particle rendering method provided in this embodiment of the application may further include:

[0099] When the current moment is the initial moment of the motion touch operation on the virtual software object, physical motion simulation is performed on the second particles according to the force state to determine historical target position information of each second particle at the current moment.

[0100] When the current moment is not the initial moment, historical target position information corresponding to the current moment is determined based on target position information of the second particle at a moment before the current moment.

[0101] The motion control information may include the force state of the first particle, which indicates the forces exerted on the particle in different directions in the virtual space. For example, the second particle is subjected to gravity in the Z direction of the virtual space.

[0102] The motion of the second particle is physically simulated according to the force state of the second particle, and the position information of the second particle is determined, and the position information is used as the historical target position information of the second particle at the initial moment.

[0103] 105. Render the multiple particles according to the target position information of each particle at the current moment to obtain a rendering result corresponding to the current moment.

[0104] By rendering multiple particles based on the target position information of each particle at the current moment, a rendering result can be obtained. Different texture properties of the particles will result in different rendering results. For example, based on multiple particles, special effects of the movement of strip-like objects such as a swinging rope, fluttering ribbons, and kelp swaying in the water can be rendered.

[0105] Multiple particles can constitute a virtual soft object. Optionally, the rendering result can include the virtual soft object performing fluctuating motion under motion control operation. For example, multiple particles constitute a virtual rope. Based on steps 101 to 105, the fluctuating motion of the virtual rope can be rendered as the virtual character pulls the virtual rope. The motion effect of the virtual rope is realistic and flexible, without the mechanical feel of baked animation.

[0106] In one embodiment, after the step of “rendering the plurality of particles according to the target position information of each particle at the current moment to obtain a rendering result corresponding to the current moment”, the particle rendering method provided in the embodiment of the present application may further include:

[0107] using the target position information of the second particle at the current moment as the historical target position information of the second particle at the next moment;

[0108] The step of determining the target position information of the first particle at the current moment based on the motion control information is iterated until the plurality of particles are restored to a chain arrangement.

[0109] Exemplarily, the target position information of the second particle at the current moment is used as the historical target position information of the second particle at the next moment, and then the step of determining the target position information of the first particle at the current moment based on the motion control information is performed, and the process is iterated continuously until the multiple particles are restored to a chain arrangement.

[0110] As can be seen from the above, the embodiment of the present application obtains motion control information for multiple particles arranged in a chain, the multiple particles including a first particle and a second particle; determines the target position information of the first particle at the current moment based on the motion control information; determines the position offset information corresponding to each second particle in sequence according to the target position information; performs offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles, to obtain the target position information of the second particle at the current moment; renders the multiple particles according to the target position information of each particle at the current moment, to obtain the rendering result corresponding to the current moment. The embodiment of the present application determines the offset information of each second particle based on the target information of the first particle, and can realize the control of the second particle based on the position offset of the first particle to simulate the motion correlation of each position on the strip object, so that the motion special effects of the strip object can be rendered in real time.

[0111] In order to better illustrate the particle rendering method provided in the embodiment of the present application, an example will be given below to further illustrate.

[0112] First, create parameter variables. Specifically, you can create "LinkCount", "LinkDis", and "LinkWeigh" for receiving user input, where "LinkCount" is used to receive the number of particles input by the user, "LinkDis" is used to receive the particle spacing input by the user, and "LinkWeigh" is used to receive the particle weight input by the user.

[0113] You can also create a SimulationPosition that receives the current emitter position, and an instanced reader AttributeRader that is used to read particle attributes.

[0114] Use the special effects system to emit the number of particles specified by "LinkCount" and adjust its lifespan to infinite. The particles default to the source point in the world space coordinate system. For example, 10 particles are emitted.

[0115] Each particle in the multiple particles emitted by the particle emitter corresponds to an Index (i.e. particle ID). The particle ID is normalized to offset the position of the particle so that the particle Figure 2 As shown, the chain-like arrangement forms the basic form. For example, there are 10 particles with particle IDs 0, 1, 2, 3, 4, etc. The normalization operation is equivalent to mapping 0 to 10 to 0 to 1. If the particle ID is 1, the normalized result is 0.2.

[0116] The particle position NewPos after offset is as follows:

[0117] NewPos=Oripos.z–(LinkCount×LinkDis×Index)

[0118] Based on the offset position of each particle, each particle is offset to obtain a group of particles arranged in a chain with a distance of LinkDis between two adjacent particles. For example, the particles can be offset on the Z axis to obtain the following: Figure 2 A set of particles is shown.

[0119] Add the "isStarNode" attribute and the "MassMultipler" attribute to all particles, and set the "isStarNode" attribute of the particle with Index 0 to 0 to indicate that the particle is the first particle in a group of particles arranged in a chain; you can also set the "MassMultipler" attribute of the particle to 0 so that it is not affected by gravity.

[0120] Add "NextID" and "PreviousID" attributes to each particle. You can get the attribute value of the "PreviousID" attribute through Index-1, and the attribute value of the "NextID" attribute through Index+1.

[0121] Add the gravity attribute "Gravity Force" to all particles, that is, add a gravity of -980 to the particles in the Z direction. Based on gravity and physical simulation, the acceleration of the particles can be calculated as a=F / M, and the speed of the particles is v2=v1+at. The position of the particle is pos2=pos1+v1t, where v2 is the current (or current frame) speed of the particle, v1 is the speed of the particle at the previous moment (or previous frame), pos2 is the position of the particle at the current (or current frame), pos1 is the position of the particle at the previous moment (or previous frame), and t is the time interval between the current and previous moments, or the current frame and the previous frame. The position change after adding gravity can be as follows: Figure 3 shown.

[0122] Add physical iteration to each particle. The result of each loop will be used as input for the next loop. The physical iteration process can be,

[0123] For the current particle, based on CurrentPosition–PreviousPosition, determine the vector PC that points from the previous particle to the current particle position. CurrentPosition is the position information of the current particle, and PreviousPosition is the position information of the previous particle.

[0124] For the current particle, based on NextPosition–CurrentPosition, determine the vector CN pointing from the previous particle to the current particle position, and NextPosition is the position information of the next particle.

[0125] A scaling ratio is calculated based on the length PC_Length of the vector PC. The scaling ratio is (CP_Length–LinkDis) / CP_Length. The vector PC is scaled based on the scaling ratio to obtain a scaled vector New_PC.

[0126] Based on the length CN_Length of the vector CN, a scaling ratio is calculated, which is (CN_Length–LinkDis) / CN_Length. The vector CN is scaled based on the scaling ratio to obtain a scaled vector New_CN.

[0127] Based on New_CN and New_PC, the offset vector Offset = New_CN - New_PC for the current particle is determined.

[0128] Add the current particle's position and the offset vector Offset to get the current particle's target position.

[0129] After determining the target position of the current particle, you can refer to the process of determining the target position of the current particle to determine the target position of the first particle of the current particle. Continue iterating until the target position of each particle in the current frame is determined. Rendering based on the target position of each particle in the current frame can obtain motion effects of objects such as soft ropes and chains.

[0130] By offsetting the position of the current particle through the offset vector, it is possible to control the current particle to gradually offset to a position where it can be arranged in a chain with the previous particle through physical iteration until multiple particles are restored to the same position. Figure 2 The chain shown.

[0131] The first particle among multiple particles, i.e., the first particle, can have target position information based on the user's interactive operation. For example, the first particle can move according to the interactive operation. Optionally, the target position information of the first particle can also be determined based on a preset motion trajectory. The chain-like software composed of multiple particles can be controlled by a virtual game character in the game, and the target position information of the first particle can be determined based on the control action of the virtual game character.

[0132] Optionally, the target position information of the first particle can also be determined by the position of the particle emitter. The position of the particle emitter is the position of the first particle, and the position of the particle emitter can be determined according to the user's interactive operation; optionally, the position of the particle emitter can also be determined according to a preset motion trajectory; the chain-like software composed of multiple particles can be controlled by a virtual game character in the game, and the position of the particle emitter can be determined according to the control action of the virtual game character.

[0133] Each particle is gradually approaching the previous particle to form a chain with the previous particle. After the first particle moves, the position of the next particle (particle 2) of the first particle is offset to make particle 2 closer to the first particle. Based on the offset position of particle 2, the position of the next particle (particle 3) of particle 2 is offset to make particle 3 closer to particle 2, and so on. For example, during the movement of multiple particles, one frame of special effects can be as follows Figure 4 As shown, Figure 4 As shown, the closer the particle is to the first particle, the greater the deformation relative to the previous position, thereby simulating the softness of the movement of objects such as soft ropes and cords.

[0134] It is understandable that based on Figure 4 The multiple particles shown can simulate objects such as ropes and chains through material and texture settings, thereby achieving motion effects such as soft ropes and chains rendered based on multiple particles.

[0135] From the above, it can be seen that the embodiment of the present application determines the offset information of each second particle based on the target information of the first particle, and can control the offset of the second particle based on the position of the first particle to simulate the motion correlation of each position on the strip object, so that the motion effects of the strip object can be rendered in real time.

[0136] In order to facilitate better implementation of the particle rendering method provided in the embodiment of the present application, a particle rendering device is also provided in one embodiment. The meanings of the terms are the same as those in the above particle rendering method, and the specific implementation details can be referred to the description in the method embodiment.

[0137] The particle rendering device can be integrated into a computer device, such as Figure 5 As shown, the particle rendering device may include: an acquisition unit 301, a first determination unit 302, a second determination unit 303, an offset unit 304 and a rendering unit 305, specifically as follows:

[0138] (1) An acquisition unit 301 is used to acquire motion control information for a plurality of particles arranged in a chain, wherein the plurality of particles include a first particle and a second particle.

[0139] (2) A first determining unit 302, configured to determine target position information of the first particle at a current moment based on the motion control information.

[0140] (3) A second determining unit 303, configured to determine position offset information corresponding to each second particle in sequence according to the target position information and the arrangement order of the particles.

[0141] (4) An offset unit 304 is used to perform offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in accordance with the arrangement order of the particles, so as to obtain the target position information of the second particle at the current moment.

[0142] (5) A rendering unit 305, configured to render the plurality of particles according to target position information of each particle at the current moment, and obtain a rendering result corresponding to the current moment.

[0143] In one embodiment, the first particle is arranged before the second particle, and the second determining unit 303 may further be configured to:

[0144] For each second particle, determining first relative position information of the second particle and the first associated particle according to target position information of a first associated particle arranged before the second particle and historical target position information of the second particle;

[0145] performing scaling processing on the first relative position information to obtain scaled first relative position information;

[0146] The position offset information of each second particle is determined according to the scaled first relative position information.

[0147] In one embodiment, the particle rendering device provided by the embodiment of the present application may further include a position determination unit and a scaling unit, specifically:

[0148] a position determining unit, configured to determine, for each second particle, second relative position information of the second particle and the second associated particle arranged after the second particle based on historical target position information of the second particle and the second associated particle;

[0149] a scaling unit, configured to perform scaling processing on the second relative position information to obtain scaled second relative position information;

[0150] The second determining unit 303 is configured to:

[0151] The position offset information of each second particle is determined according to the scaled first relative position and the scaled second relative position information.

[0152] In one embodiment, the scaling unit may further be used to:

[0153] determining a first scaling ratio for the first relative position information according to the first relative position information and a preset interparticle distance;

[0154] Scaling the first relative position information based on the first scaling ratio to obtain scaled first relative position information;

[0155] and / or:

[0156] determining a second scaling ratio for the second relative position information according to the second relative position information and the preset particle distance;

[0157] The second relative position information is scaled based on the second scaling ratio to obtain scaled second relative position information.

[0158] In one embodiment, the particles include particles constituting a virtual software object, the motion control information includes operation position information, and the acquisition unit 301 may further be configured to:

[0159] In response to a motion control operation on the virtual software object, operation position information of the motion control operation is determined so as to control the first particle to move following the motion control operation.

[0160] In one embodiment, the virtual software object is controlled by a virtual character, the first particles have a motion association relationship with a target reference point of the virtual character, the motion control information includes a force state of each second particle, and the first determining unit 302 may further be used to:

[0161] determining displacement information of the target reference point of the virtual character according to the motion control operation of the virtual character on the virtual software object;

[0162] The operation position information is determined according to the displacement information of the target reference point.

[0163] In one embodiment, the motion control information includes a force state of each second particle, and the first determining unit 302 may be further configured to:

[0164] When the current moment is an initial moment of the motion touch operation on the virtual software object, performing physical motion simulation on the second particles according to the force state to determine historical target position information corresponding to each second particle at the current moment;

[0165] When the current moment is not the initial moment, historical target position information corresponding to the current moment is determined based on target position information of the second particle at a moment before the current moment.

[0166] In one embodiment, the rendering unit 305 may also be used to:

[0167] using the target position information of the second particle at the current moment as the historical target position information of the second particle at the next moment;

[0168] The step of determining the target position information of the first particle at a current moment based on the motion control information is iterated until the plurality of particles are restored to the chain arrangement.

[0169] In one embodiment, the rendering result includes the virtual software object performing a wave motion under the motion control operation.

[0170] In one embodiment, the particle rendering device provided by the embodiment of the present application may further include an attribute acquisition unit and a particle determination unit, specifically:

[0171] an attribute acquisition unit, configured to acquire particle attribute information of each particle in the plurality of particles, wherein the particle attribute information includes at least one of a gravity attribute and a starting attribute;

[0172] A particle determination unit is configured to determine the first particle and the second particle from the plurality of particles according to the particle attribute information, wherein the first particle is a starting particle and / or has a gravity of 0.

[0173] As can be seen from the above, the particle rendering device of the embodiment of the present application obtains motion control information for multiple particles arranged in a chain through the acquisition unit 301, and the multiple particles include a first particle and a second particle; the first determination unit 302 determines the target position information of the first particle at the current moment based on the motion control information; the second determination unit 303 determines the position offset information corresponding to each second particle in accordance with the target position information and the arrangement order of the particles; the offset unit 304 offsets the historical target position information of the second particle based on the position offset information corresponding to the second particle in accordance with the arrangement order of the particles, and obtains the target position information of the second particle at the current moment; the rendering unit 305 renders the multiple particles according to the target position information of each particle at the current moment, and obtains the rendering result corresponding to the current moment. The embodiment of the present application determines the offset information of each second particle based on the target information of the first particle, and can realize the control of the second particle based on the position offset of the first particle to simulate the motion correlation of each position on the strip object, so that the motion special effects of the strip object can be rendered in real time.

[0174] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Figure 6 As shown, Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation of the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0175] The processor 501 is the control center of the computer device 500. It uses various interfaces and lines to connect various parts of the entire computer device 500. By running or loading software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device 500 and processes data, thereby monitoring the computer device 500 as a whole.

[0176] In the embodiment of the present application, the processor 501 in the computer device 500 loads instructions corresponding to one or more application processes into the memory 502 according to the following steps, and the processor 501 runs the application stored in the memory 502 to implement various functions:

[0177] acquiring motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle;

[0178] determining target position information of the first particle at the current moment based on the motion control information;

[0179] According to the target position information, the position offset information corresponding to each second particle is determined in sequence according to the arrangement order of the particles;

[0180] According to the arrangement order of the particles, the historical target position information of the second particle is offset based on the position offset information corresponding to the second particle to obtain the target position information of the second particle at the current moment;

[0181] Render multiple particles according to the target position information of each particle at the current moment to obtain the rendering result corresponding to the current moment.

[0182] From the above, the embodiment of the present application determines the offset information of each second particle based on the target information of the first particle, and can control the offset of the second particle based on the position of the first particle to simulate the motion correlation of each position on the strip object, so that the motion effects of the strip object can be rendered in real time.

[0183] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0184] Optional, such as Figure 6 As shown, the computer device 500 further includes: a touch screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. Among them, the processor 501 is electrically connected to the touch screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507 respectively. It can be understood by those skilled in the art that Figure 6 The computer device structure shown in the figure does not constitute a limitation to the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0185] The touch display screen 503 can be used for displaying a graphical user interface and receiving the operation instructions generated by the user acting on the graphical user interface. The touch display screen 503 can include a display panel and a touch panel. Among them, the display panel can be used for displaying the information input by the user or the information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used for collecting the touch operation of the user thereon or near it (such as the user uses any suitable object or accessory such as a finger, a stylus on the touch panel or near the touch panel), and generates corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 501, and can receive the command sent by the processor 501 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 503 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 503 can also be used as part of the input unit 506 to realize the input function.

[0186] The radio frequency circuit 504 may be used to transmit and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to transmit and receive signals between the network device or other computer device.

[0187] Audio circuit 505 can be used to provide an audio interface between the user and the computer device through a speaker and microphone. Audio circuit 505 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 505 and converted into audio data. The audio data is then output to processor 501 for processing, then transmitted via RF circuit 504 to, for example, another computer device, or to memory 502 for further processing. Audio circuit 505 may also include an earphone jack to allow communication between external headphones and the computer device.

[0188] The input unit 506 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0189] Power supply 507 is used to supply power to various components of computer device 500. Optionally, power supply 507 can be logically connected to processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 507 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0190] although Figure 6 Not shown in the figure, the computer device 500 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0191] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0192] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0193] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute the steps of any particle rendering method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0194] acquiring motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle;

[0195] determining target position information of the first particle at the current moment based on the motion control information;

[0196] According to the target position information, the position offset information corresponding to each second particle is determined in sequence according to the arrangement order of the particles;

[0197] According to the arrangement order of the particles, the historical target position information of the second particle is offset based on the position offset information corresponding to the second particle to obtain the target position information of the second particle at the current moment;

[0198] Render multiple particles according to the target position information of each particle at the current moment to obtain the rendering result corresponding to the current moment.

[0199] From the above, the embodiment of the present application determines the offset information of each second particle based on the target information of the first particle, and can control the offset of the second particle based on the position of the first particle to simulate the motion correlation of each position on the strip object, so that the motion effects of the strip object can be rendered in real time.

[0200] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0201] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0202] The particle rendering method, apparatus, computer device, and computer storage medium provided in the embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core concept of the present application. At the same time, for those skilled in the art, based on the concept of the present application, there may be changes in the specific implementation methods and application scope. In summary, the contents of this specification should not be understood as limiting the present application.

Claims

1. A particle rendering method, characterized in that: include: acquiring motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle; determining target position information of the first particle at a current moment based on the motion control information; determining, according to the target position information, position offset information corresponding to each second particle in sequence according to the arrangement order of the particles; performing offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles, to obtain the target position information of the second particle at the current moment; The plurality of particles are rendered according to the target position information of each particle at the current moment to obtain a rendering result corresponding to the current moment.

2. The method according to claim 1, characterized in that The first particle is arranged before the second particle, and position offset information of each second particle is determined by the following steps: For each second particle, determining first relative position information of the second particle and the first associated particle according to target position information of a first associated particle arranged before the second particle and historical target position information of the second particle; performing scaling processing on the first relative position information to obtain scaled first relative position information; The position offset information of each second particle is determined according to the scaled first relative position information.

3. The method according to claim 2, characterized in that Before determining the position offset information of each second particle according to the scaled first relative position information, the method further includes: For each second particle, determining second relative position information between the second particle and the second associated particle according to historical target position information of the second particle and a second associated particle arranged after the second particle; performing scaling processing on the second relative position information to obtain scaled second relative position information; The determining the position offset information of each second particle according to the scaled first relative position information includes: The position offset information of each second particle is determined according to the scaled first relative position and the scaled second relative position information.

4. The method according to any one of claims 2 to 3, characterized in that The scaling process of the first relative position information to obtain the scaled first relative position information includes: determining a first scaling ratio for the first relative position information according to the first relative position information and a preset interparticle distance; Scaling the first relative position information based on the first scaling ratio to obtain scaled first relative position information; And / or, scaling the second relative position information to obtain scaled second relative position information includes: determining a second scaling ratio for the second relative position information according to the second relative position information and the preset particle distance; The second relative position information is scaled based on the second scaling ratio to obtain scaled second relative position information.

5. The method according to any one of claims 1 to 4, characterized in that The particles include particles constituting a virtual software object, the motion control information includes operation position information, and obtaining the motion control information for the plurality of particles arranged in a chain includes: According to the motion control operation on the virtual software object, operation position information of the motion control operation is determined to control the first particle to move following the motion control operation.

6. The method according to claim 5, characterized in that The rendering result includes the virtual software object performing wave motion under the motion control operation.

7. The method according to claim 5, characterized in that The virtual software object is controlled by a virtual character, the first particle has a motion association relationship with a target reference point of the virtual character, and determining operation position information of the motion control operation based on the motion control operation on the virtual software object includes: determining displacement information of the target reference point of the virtual character according to the motion control operation of the virtual character on the virtual software object; The operation position information is determined according to the displacement information of the target reference point.

8. The method according to claim 5, characterized in that The motion control information includes a force state of each second particle, and the method further includes: When the current moment is an initial moment of the motion touch operation on the virtual software object, performing physical motion simulation on the second particles according to the force state to determine historical target position information corresponding to each second particle at the current moment; When the current moment is not the initial moment, historical target position information corresponding to the current moment is determined based on target position information of the second particle at a moment before the current moment.

9. The method according to any one of claims 1 to 4, characterized in that After rendering the plurality of particles according to the target position information of each particle at the current moment to obtain a rendering result corresponding to the current moment, the method further includes: using the target position information of the second particle at the current moment as the historical target position information of the second particle at the next moment; The step of determining the target position information of the first particle at a current moment based on the motion control information is iterated until the plurality of particles are restored to the chain arrangement.

10. The method according to any one of claims 1 to 4 and any one of claims 8 to 9, characterized in that: Before determining the target position information of the first particle at the current moment based on the motion control information, the method further includes: Acquire particle attribute information of each particle in the plurality of particles, the particle attribute information comprising at least one of a gravity attribute and a starting attribute; The first particle and the second particle are determined from the plurality of particles according to the particle attribute information, where the first particle is a starting particle and / or has a gravity of 0.

11. A particle rendering device, characterized in that: include: an acquiring unit, configured to acquire motion control information for a plurality of particles arranged in a chain, the plurality of particles including a first particle and a second particle; a first determining unit, configured to determine target position information of the first particle at a current moment based on the motion control information; a second determining unit, configured to determine, according to the target position information and in accordance with the arrangement order of the particles, position offset information corresponding to each second particle; an offset unit, configured to perform offset processing on the historical target position information of the second particle based on the position offset information corresponding to the second particle in sequence according to the arrangement order of the particles, to obtain the target position information of the second particle at the current moment; The rendering unit is configured to render the plurality of particles according to target position information of each particle at the current moment, and obtain a rendering result corresponding to the current moment.

12. A computer device, characterized in that: The invention comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the particle rendering method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the particle rendering method according to any one of claims 1 to 10.