Method and system for realizing particle personalized expression based on regional influence

By setting multiple area blocks in the particle system scene and changing the particle attributes, the problem that existing particle systems cannot achieve personalized performance in the comprehensive scenario is solved, and a more efficient and flexible personalized performance of the particle system is achieved.

CN119444946APending Publication Date: 2025-02-14FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310986653.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Existing particle systems cannot achieve complex effects in comprehensive scenarios and lack the ability to personalize superimposed scenarios.

Method used

By setting multiple area blocks of different sizes and shapes in the scene, and setting particle attributes and variables that need to be changed in the area block, we can determine whether the particle enters the specified area block. If it enters, change the particle attributes to achieve personalized performance.

Benefits of technology

It realizes the personalized performance of particles in different scenarios, enhances the scalability of particle systems and the diversity of application scenarios, simplifies the design and development process, and improves efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444946A_ABST
    Figure CN119444946A_ABST
Patent Text Reader

Abstract

The invention provides a method and a system for realizing particle personalized expression based on regional influence. The method comprises the following steps: S1, setting a plurality of regional blocks with different sizes and shapes in a scene; s2, setting particle attributes needing to be changed and variables for changing the particle attributes in the region blocks; s3, the central point and the size of the particle are obtained and compared with the central point and the size of the designated area block to judge whether the particle enters the designated area block or not, and if yes, the step S4 is executed; if not, entering the step S5; s4, when the particles reach the designated area block, the designated attributes of the particles are changed according to the changed particle attributes and variables set in the area block; rendering the changed particle attributes to obtain a particle personalized representation effect; s5, the particles are rendered through a renderer, and the current particle presentation effect is obtained; and the particle system can adapt to different scene requirements more freely.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer graphics, and is mainly applied to scene interaction of particles; in particular, a method and system for realizing personalized expression of particles based on regional influence. Background Art

[0002] Particle system is a technology used to simulate and render a large number of tiny particles. It can create dynamic, flowing and realistic effects, so it is widely used in games, animations and special effects. In a particle system, each particle can have different shapes, sizes and colors, and can have various physical properties. By controlling the properties of particles, various physical and natural phenomena such as volcanic eruptions, smoke, snowflakes, etc. can be simulated to achieve a variety of effects.

[0003] A typical particle system usually consists of an emitter, particle attributes, and a renderer. Figure 1 As shown in the figure, the existing particle system implementation process; the emitter is the core component, which determines the initial position, speed and direction of the particle. It can be a point, line, surface or volume, and can set the emission rate and direction of the particle. The particle attributes define the life cycle, size, color, texture and other characteristics of the particle. The renderer is responsible for rendering in the form of points, lines, surfaces or sprites according to the properties and positions of the particles.

[0004] The advantage of the particle system is that it can simulate realistic effects and has high flexibility and customizability. By adjusting the properties and parameters of the particles, the existing particle system cannot interact according to the scene, that is, it cannot achieve the effect of superimposing particle properties and scenes; the present invention can create different effects, making games, animations and special effects production more vivid.

[0005] Although the existing particle system has a complete architecture, it is still difficult to achieve complex effects in comprehensive scenes, that is, when multiple scenes are superimposed. This is because the existing system lacks the ability to personalize the superimposed scenes. Personalized performance means customizing the performance of particles according to the needs of different scenes. For example, smoke particles drifting in the wind. Summary of the invention

[0006] To overcome the above problems, the purpose of the present invention is to provide a method for realizing personalized performance of particles based on regional influence, so that particles can present personalized effects in different scenes, and the particle system can adapt to different scene requirements more freely.

[0007] The present invention is implemented by the following scheme: a method for realizing personalized expression of particles based on regional influence, the method comprising the following steps: step S1, setting a plurality of regional blocks of different sizes and shapes in a scene;

[0008] Step S2, setting the particle attributes to be changed and the variables for changing the particle attributes in the region block;

[0009] Step S3, by obtaining the center point and size of the particle, and comparing them with the center point and size of the designated area block, to determine whether the particle enters the designated area block, if yes, proceed to step S4; if not, proceed to step S5;

[0010] Step S4: when the particle reaches the designated area block, the designated properties of the particle are changed according to the changed particle properties and variables set in the area block; the changed particle properties are rendered to obtain the personalized performance effect of the particle;

[0011] Step S5: Render the particles through a renderer to obtain the current particle rendering effect.

[0012] Furthermore, the particle attributes include: life cycle, movement speed, color, and size.

[0013] Furthermore, the shape of the area block includes: a cube, a cuboid, a trapezoid, a parallelogram or a cylinder.

[0014] Furthermore, the particle attribute customization of the area block in the scene is set based on the basic attributes of the particles, and the basic attributes of the particles are set for the particles through the emitter; thereby, the particles can interact with the scene after falling into the area block and achieve the effect of scene superposition.

[0015] The present invention also provides a system for realizing personalized expression of particles based on regional influence, the system comprising: a regional block setting module, an attribute setting module, a falling region determination module, an attribute changing module, and a rendering module;

[0016] The area block setting module sets a plurality of area blocks of different sizes and shapes in the scene;

[0017] The attribute setting module sets the particle attributes to be changed and the variables for changing the particle attributes in the region block;

[0018] The falling area determination module obtains the center point and size of the particle and compares them with the center point and size of the designated area block to determine whether the particle enters the designated area block. If yes, the attribute change module is executed; if not, the rendering module is executed;

[0019] The attribute changing module changes the particle's specified attributes according to the changed particle attributes and variables set in the area block when the particle reaches the specified area block; renders the changed particle attributes to obtain the particle's personalized performance effect;

[0020] The rendering module renders the particles through a renderer to obtain the current particle rendering effect.

[0021] Furthermore, the particle attributes include: life cycle, movement speed, color, and size.

[0022] Furthermore, the shape of the area block includes: a cube, a cuboid, a trapezoid, a parallelogram or a cylinder.

[0023] Furthermore, the particle attribute customization of the area block in the scene is set based on the basic attributes of the particles, and the basic attributes of the particles are set for the particles through the emitter; thereby, the particles can interact with the scene after falling into the area block and achieve the effect of scene superposition.

[0024] The beneficial effects of the present invention are: providing personalized performance for the regional impact of the particle system, increasing the scalability of the particle system, and enriching the application scenarios of the particle system. For the performance of particles passing through different scenes, developers can directly draw particle effects by setting regional changes without having to provide multiple attributes for each particle. This not only simplifies the design and development process of the particle system, but also improves efficiency and flexibility. The implementation of the solution of the present invention can make the particle system more freely adapt to different scene requirements, providing the possibility of creating more diverse and vivid particle effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of particle system implementation in the prior art.

[0026] Figure 2 It is a schematic flow chart of the method of the present invention.

[0027] Figure 3 It is a system framework principle diagram of the present invention.

[0028] Figure 4 Schematic diagram of an example of a particle of the present invention being affected by a region. DETAILED DESCRIPTION

[0029] The present invention will be further described below in conjunction with the accompanying drawings.

[0030] See also Figure 2 As shown, a method for realizing personalized particle expression based on regional influence of the present invention comprises the following steps: step S1, setting a plurality of regional blocks of different sizes and shapes in a scene;

[0031] Step S2: setting the particle attributes to be changed and the variables for changing the particle attributes in the area block; the particle attributes include: life cycle, moving speed, color, and size.

[0032] Step S3, by obtaining the center point and size of the particle, and comparing them with the center point and size of the designated area block, to determine whether the particle enters the designated area block, if yes, proceed to step S4; if not, proceed to step S5;

[0033] Step S4, when the particle reaches the designated area block, the particle designated attribute is changed according to the changed particle attribute and variable set in the area block; the changed particle attribute is rendered to obtain the particle personalized performance effect; for example: taking the gravity field sphere area as an example, the particle needs to enter the sphere area block; the distance d between the current position of the particle and the position of the center of the sphere is calculated, and if d < the radius of the sphere r, the particle is determined to enter the sphere area; the particle is set to have two attributes of velocity v and acceleration a, and t is added to indicate the time of the particle in the gravity field. When it does not enter the gravity field, v remains constant, the acceleration is 0, and t is 0. At this time, the particle maintains uniform linear motion. When the particle enters the sphere gravity field, the acceleration becomes the set gravity acceleration g, and the time t starts to add the time of each frame, so that v1=v+gt is calculated according to the speed formula, and v1 is the speed after entering the sphere; a parabolic motion of the particle entering the gravity field area is realized. By analogy, other regional influences are similar.

[0034] Step S5: Render the particles through a renderer to obtain the current particle rendering effect.

[0035] The shape of the area block includes: a cube, a cuboid, a trapezoid, a parallelogram or a cylinder.

[0036] The particle attribute customization of the area block in the scene is set based on the basic attributes of the particles, and the basic attributes of the particles are set for the particles through the emitter; so that the particles can interact with the scene after falling into the area block and achieve the effect of scene superposition.

[0037] The present invention will be further described below in conjunction with a specific embodiment:

[0038] The method of realizing personalized performance of particles based on regional influence of the present invention mainly provides a method of changing the particle properties of particles that have reached the regional block after determining whether the regional block has been reached. The regional block scene customization is based on the basic properties of the particles. First, the attribute variables that need to be changed in the regional block are set. After determining that the particles have passed through the regional block, the initial properties of the particles are changed according to the initially set variables, thereby realizing the personalization of the particle regional scene.

[0039] This solution provides a method for realizing personalized performance of particles based on regional influence. The method mainly determines whether the particles have reached a specific regional block, and then changes the properties of the particles that have reached the regional block. The customization of regional scenes is based on the basic properties of particles. First, the property variables that need to be changed in the regional block need to be set. Then, after determining that the particles have passed through the regional block, the initial properties of the particles are changed according to the variables initially set. For example, a gravity area is set for a specific area. When particles pass through the area, they will be affected by the acceleration of gravity, change the trajectory of motion, and accelerate the downward movement of the particles; or the particles disappear by setting the life cycle to 0 by touching the boundary of the area, which can be used to simulate the rainy scene on the sea surface. By obtaining the center point and size of the particles and comparing them with the center point and size of the specified area, it is determined whether the particles have entered the specified area. If the particles reach the specified area, the specified properties of the particles are changed. For example, a wind field of a rectangular area is set in the scene, so that the particles passing through the area move faster in the direction of the wind force, forming a fluttering effect. In this way, the personalized performance of particles in different regional scenes can be achieved, thereby improving the diversity and realism of the overall effect.

[0040] See also Figure 3 As shown, a system for realizing personalized particle expression based on regional influence of the present invention comprises: a regional block setting module, an attribute setting module, a falling region determination module, an attribute changing module, and a rendering module;

[0041] The area block setting module sets a plurality of area blocks of different sizes and shapes in the scene;

[0042] The attribute setting module sets the particle attributes to be changed and the variables for changing the particle attributes in the region block;

[0043] The falling area determination module obtains the center point and size of the particle and compares them with the center point and size of the designated area block to determine whether the particle enters the designated area block. If yes, the attribute change module is executed; if not, the rendering module is executed;

[0044] The attribute changing module changes the particle's specified attributes according to the changed particle attributes and variables set in the area block when the particle reaches the specified area block; renders the changed particle attributes to obtain the particle's personalized performance effect;

[0045] The rendering module renders the particles through a renderer to obtain the current particle rendering effect. The particle attributes include: life cycle, moving speed, color, and size.

[0046] The shape of the area block includes: a cube, a cuboid, a trapezoid, a parallelogram or a cylinder. The particle attribute customization of the area block in the scene is set based on the basic attributes of the particles, and the basic attributes of the particles are set by the emitter; so that the particles can interact with the scene after falling into the area block and achieve the effect of scene superposition.

[0047] The application scenarios of the present invention are as follows:

[0048] The implementation process of regional scene customization can be taken as an example of particles being affected by superimposed scenes. Figure 4 As shown in the figure, in the scene, there is a particle moving at a constant speed parallel to the horizontal plane. A sphere is set in front of the particle, and the sphere superimposes three scene areas of speed change, color change and size change. After the particle enters the area, a downward gravity effect is first applied to the particle, which continuously affects the movement speed of the particle, so that the particle originally parallel to the horizontal plane moves in a parabola due to gravity; secondly, a linear color adjustment effect is superimposed on the particle, and the brightness of the particle is changed according to the speed of the particle. The faster the speed, the greater the brightness; finally, a volume change is added to the particle, and the size changes linearly according to the time the particle exists in the area. The longer the time, the smaller the volume. This solution can be applied to simulate the astronomical phenomenon of meteors. When space materials such as cosmic dust or asteroids enter the Earth's atmosphere, they become extremely hot due to friction with the atmosphere, forming bright light trails. These light trails appear as short and shining tracks in the night sky, usually crossing the sky at a very fast speed, often lasting for several seconds. By using the gravity, color and size change effects of particles in the regional scene customization solution, light trails similar to meteors can be simulated.

[0049] The present invention customizes different particle behaviors for each scene area, thereby achieving more diverse and personalized effects. For example, by adjusting the properties of the particle movement speed, diffusion range, etc., the effect of smoke particles drifting in a strong wind can be achieved. In this way, the particle effects in different scenes can better meet the scene requirements and improve the realism and expressiveness of the visual effects.

[0050] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A method for realizing personalized particle expression based on regional influence, characterized in that: The method comprises the following steps: Step S1, setting a plurality of area blocks of different sizes and shapes in a scene; Step S2, setting the particle attributes to be changed and the variables for changing the particle attributes in the region block; Step S3, by obtaining the center point and size of the particle, and comparing them with the center point and size of the designated area block, to determine whether the particle enters the designated area block, if yes, proceed to step S4; if not, proceed to step S5; Step S4: when the particle reaches the designated area block, the designated properties of the particle are changed according to the changed particle properties and variables set in the area block; the changed particle properties are rendered to obtain a personalized performance effect of the particle; Step S5: Render the particles through a renderer to obtain the current particle rendering effect.

2. The method for realizing personalized particle expression based on regional influence according to claim 1, characterized in that: The particle properties include: life cycle, movement speed, color, and size.

3. The method for realizing personalized particle expression based on regional influence according to claim 1, characterized in that: The shape of the area block includes: a cube, a cuboid, a trapezoid, a parallelogram or a cylinder.

4. The method for realizing personalized particle expression based on regional influence according to claim 1, characterized in that: The particle attribute customization of the area block in the scene is set based on the basic attributes of the particles, and the basic attributes of the particles are set for the particles through the emitter; so that the particles can interact with the scene after falling into the area block and achieve the effect of scene superposition.

5. A system for realizing personalized particle performance based on regional influence, characterized in that: The system comprises: a region block setting module, an attribute setting module, a falling region determination module, an attribute changing module, and a rendering module; The area block setting module sets a plurality of area blocks of different sizes and shapes in the scene; The attribute setting module sets the particle attributes to be changed and the variables for changing the particle attributes in the area block; the falling area determination module obtains the center point and size of the particle and compares them with the center point and size of the specified area block to determine whether the particle enters the specified area block. If yes, the attribute changing module is executed; if not, the rendering module is executed; The attribute change module changes the particle's specified attributes according to the changed particle attributes and variables set in the area block when the particle reaches the specified area block; renders the changed particle attributes to obtain the particle's personalized performance effect; and the rendering module renders the particle through a renderer to obtain the current particle presentation effect.

6. The system for realizing personalized particle expression based on regional influence according to claim 5, characterized in that: The particle properties include: life cycle, movement speed, color, and size.

7. The system for realizing personalized particle expression based on regional influence according to claim 5, characterized in that: The shape of the area block includes: a cube, a cuboid, a trapezoid, a parallelogram or a cylinder.

8. The system for realizing personalized particle expression based on regional influence according to claim 5, characterized in that: The particle attribute customization of the area block in the scene is set based on the basic attributes of the particles, and the basic attributes of the particles are set for the particles through the emitter; so that the particles can interact with the scene after falling into the area block and achieve the effect of scene superposition.