UGC special effect generation method and device in game program, equipment and medium

By introducing a particle generator into the UGC editor of the game program, users can customize the generation of particle special effects, solving the problem of inflexible special effects design in the existing technology, and achieving the enrichment of special effects and the satisfaction of user-defined needs.

CN120019842APending Publication Date: 2025-05-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311551186.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

In existing games, UGC special effects components are usually designed for developers, and users cannot customize special effects, resulting in insufficient flexibility and richness of special effects design.

Method used

The particle generator is introduced into the UGC editor of the game program. Users can customize the generation of particle effects by setting the property parameters of the particle generator and triggering operations.

Benefits of technology

Users can adjust the attribute parameters of the particle generator as needed, customize and obtain various particle special effects, enrich the special effects in the UGC editor, and meet users' custom needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120019842A_ABST
    Figure CN120019842A_ABST
Patent Text Reader

Abstract

The invention discloses a UGC special effect generation method and device in a game program, equipment and a medium, and belongs to the field of games. The method comprises the following steps: displaying a particle generator in an editor interface of the UGC editor; in response to an attribute setting operation for the particle generator, setting an attribute parameter of the particle generated by the particle generator; and in response to a trigger operation for the particle generator, generating a particle effect based on the attribute parameters, the particle effect comprising at least one particle generated by the particle generator. According to the method, the particle generator is added in the UGC editor, the purpose of customizing the particle special effect is achieved by customizing the attribute parameters of the particle generator, and the method enables a user to achieve various particle special effects in a custom mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of games, and particularly to a method, device, equipment and medium for generating UGC special effects in a game program. Background Art

[0002] UCG (User Generated Content) refers to the self-created content shared by users on the Internet. In the field of games, developers will encourage users to participate in the design of game content such as level maps, gameplay, and ecosystems by providing corresponding UGC editing capabilities in the game. In order to improve the richness of the user level map, developers will add various special effect components to the UGC editor, and users can use these special effect components to add special effects to the level map.

[0003] However, the special effect components provided in the related art are usually in the styles designed by developers, so that users cannot customize the special effects.

[0004] Therefore, how to design a UGC special effect generation method to enable users to customize the special effect design is a problem that needs to be solved currently. Summary of the Invention

[0005] This application provides a method, device, equipment and medium for generating UGC special effects in a game program, and the technical solutions are as follows:

[0006] According to one aspect of this application, a method for generating UGC special effects in a game program is provided. The method is executed by a terminal, the terminal runs the game program, and the game program has a UGC editor. The method includes:

[0007] Display a particle generator in the editor interface of the UGC editor;

[0008] Respond to an attribute setting operation for the particle generator, and set the attribute parameters of the particles generated by the particle generator;

[0009] Respond to a trigger operation for the particle generator, and generate a particle special effect based on the attribute parameters. The particle special effect includes at least one particle generated by the particle generator.

[0010] According to one aspect of this application, a device for generating UGC special effects in a game program is provided. The device includes:

[0011] A first display module, configured to display a particle generator in the editor interface of the UGC editor;

[0012] A first setting module, configured to set attribute parameters of particles generated by the particle generator in response to an attribute setting operation for the particle generator;

[0013] A first generation module, configured to generate a particle special effect based on the attribute parameters in response to a trigger operation for the particle generator, where the particle special effect includes at least one particle generated by the particle generator.

[0014] According to an aspect of the present application, a computer device is provided. The computer device includes a processor and a memory. A computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the UGC special effect generation method in the above game program.

[0015] According to an aspect of the present application, a non-transitory computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the UGC special effect generation method in the above game program is implemented.

[0016] According to an aspect of the present application, a computer program product is provided. The computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium; the computer program is read and executed by a processor of a computer device from the computer-readable storage medium, so that the computer device executes the UGC special effect generation method in the above game program.

[0017] The beneficial effects brought by the technical solution provided by the present application at least include:

[0018] The above solution adds a user-customizable particle generator to the UGC editor. By adjusting the attribute parameters of the particle generator, the user can customize various particle special effects, enrich the special effects in the UGC editor, and meet the user's customization needs. Description of the Drawings

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0020] Figure 1 Shows the architecture diagram of a computer system provided by an exemplary embodiment of the present application;

[0021] Figure 2 Shows the architecture diagram of a computer system provided by an exemplary embodiment of the present application;

[0022] Figure 3 The flowchart of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0023] Figure 4 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0024] Figure 5 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0025] Figure 6 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0026] Figure 7 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0027] Figure 8 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0028] Figure 9 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0029] Figure 10 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0030] Figure 11 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0031] Figure 12 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0032] Figure 13 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0033] Figure 14 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0034] Figure 15 The schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown;

[0035] Figure 16Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0036] Figure 17 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0037] Figure 18 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0038] Figure 19 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0039] Figure 20 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0040] Figure 21 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0041] Figure 22 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0042] Figure 23 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0043] Figure 24 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0044] Figure 25 Schematic diagram showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0045] Figure 26 Flowchart showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0046] Figure 27 Flowchart showing the UGC special effect generation method in a game program provided by an exemplary embodiment of the present application;

[0047] Figure 28 Structural block diagram showing the UGC special effect generation device in a game program provided by an exemplary embodiment of the present application;

[0048] Figure 29The schematic structural diagram of a computer device provided by an exemplary embodiment of the present application is shown. Detailed implementation manners

[0049] To make the objectives, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0050] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0051] The terms used in the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a", "the", and "said" used in the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0052] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to user game data, user-uploaded stickers, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the information such as the setting operations involved in the present application are obtained under full authorization.

[0053] It should be understood that although the terms first, second, etc. may be used in the present disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0054] First, the relevant terms involved in the present application are introduced:

[0055] UCG (User Generated Content): Refers to the original content created and shared by users on the Internet. In the game field, developers encourage users to participate in the design of game content such as level maps, gameplay, and ecosystems by providing corresponding UCG editing capabilities within the game. By allowing users to design game content, it enhances users' sense of belonging and enriches the game content, better meeting personalized needs.

[0056] Virtual environment: The virtual environment displayed (or provided) when the client runs on the terminal. This virtual environment can be a simulation of the real world, a semi-simulated and semi-fictional environment, or a purely fictional environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5D virtual environment, and a three-dimensional virtual environment. This application does not limit this. The following embodiments take the virtual environment as a three-dimensional virtual environment as an example for illustration.

[0057] Particle generator: An editor used to generate particle effects. The particle generator can generate particles to form particle effects. The particle generator is usually added to application programs that require special effects production, such as post-processing software and game engines. Users can edit the particle effects finally generated by the particle generator by modifying the code of the particle generator or using the graphical interface opened by the particle generator, thus obtaining various particle effects.

[0058] Figure 1 and Figure 2 FIG. shows a schematic diagram of a computer system provided by an exemplary embodiment of the present application. The computer system may include: a terminal device 110, a server 120.

[0059] The terminal device 110 can be a laptop computer, a desktop computer, a mobile phone, a tablet computer, an e-book reader, an electronic game console, and so on.

[0060] The terminal device 110 includes a memory and a processor; the memory may include one or more computer-readable storage media. The above-mentioned computer-readable storage media include at least one of random access memory (RAM), read-only memory (ROM), and flash memory. An operating system and a game program are installed in the memory.

[0061] The game program can be any one of a level-clearing game, a casual competitive game, an MMOG (Massive Multiplayer Online Game), a board game, an MOBA (Multiplayer Online Battle Arena) game, an SLG (Simulation Game), a virtual reality application program, a 3D map program, an FPS (First-Person Shooting Game), a multiplayer gunfight survival game, a casual game, a party game, or a sandbox game.

[0062] Adding a UGC editor to the game program enables user 130 to participate in the design of the game program. The developer of the game program will provide user 130 with maps or levels designed by the developer, and user 130 can play these maps or levels. After adding a UGC editor to the game program, user 130 can design maps or levels by themselves through the UGC editor, and user 130 can also play these maps or levels, which can improve user 130's sense of participation and belonging to the game program. The UGC editor is a tool provided by the developer for user 130 to design maps or levels. The UGC editor includes interfaces opened by the developer to user 130. In order to simplify the production of maps or levels, these interfaces often exist in the form of a graphical interface, that is, user 130 can obtain a delicate and perfect map or level by simply clicking, swiping and other operations using the UGC editor.

[0063] The UGC editors added to different types of game programs have different focuses. For example, the UGC editors added to MMOG games and SLG games mainly play an auxiliary role. For example, it enables user 130 to edit the scenes in the home through the UGC editor, and the home is a virtual environment of a certain area belonging to user 130. Level-clearing games, casual competitive games, party games, and sandbox games often take the UGC editor as the main body, enabling user 130 to freely create maps or levels and share them with other users. In this type of game, the richness of the production functions provided by the UGC editor will largely affect the gaming experience of user 130.

[0064] The operating system is basic software that provides secure access to computer hardware for the game program. The operating system can be the Android system or the iOS system. The operating system supports the download, installation, and running of the game program.

[0065] Optionally, the terminal device 110 further includes a touch screen; the touch screen may be a capacitive screen or a resistive screen. The touch screen is used to implement interaction between the terminal device and the user 130. In an embodiment of the present application, the terminal device obtains the interactive operation of the editor interface 140 of the UGC editor in the game program triggered by the user 130 through the touch screen.

[0066] The terminal device 110 has a game program installed and running, and the game program is designed with an editor interface 140.

[0067] Editor interface 140 supports user 130 to edit, save, publish and other operations on the virtual environment. When editing the virtual environment, user 130 can use virtual objects to build different virtual environments. UGC editor supports user 130 to set particle effects for the virtual environment to enrich the virtual environment. The particle effects are generated by a particle generator to improve the operability and fun of the user.

[0068] Terminal device 110 is a terminal device used by a user. User 130 uses terminal device 110 to operate editor interface 140, and user 130 can save the virtual environment being edited or edited to terminal device 110. Optionally, terminal device 110 is used to upload the virtual environment information saved by user 130 to server 120; or, terminal device 110 is used to provide data information of the virtual environment and particle generator to the game program; or, terminal device 110 is used to save the attribute parameters of the particle generator.

[0069] In some embodiments, the computer system further includes a server 120, such as Figure 2 As shown. The server 120 can be any one of a plurality of servers, a virtual cloud storage or a cloud computing center. Optionally, the server 120 is used to store the virtual environment information uploaded by the terminal device 110; or, the server 120 is used to store the attribute parameters of the particle generator uploaded by the terminal device 110; or, the server 120 is used to provide the game program with data information of the virtual environment and the particle generator.

[0070] In some embodiments, the terminal device 110 and the server 120 are connected via a wired or wireless network.

[0071] Figure 3 A schematic diagram of a method for generating UGC special effects in a game program provided by an exemplary embodiment of the present application is shown. The method is executed by a terminal device, which may be as follows Figure 1 and Figure 2 The terminal device shown in . The method includes:

[0072] Step 210: Display the particle generator in the editor interface of the UGC editor;

[0073] In some embodiments, a virtual environment screen is displayed on the editor interface of the UGC editor. The virtual environment screen is obtained by a camera model capturing a three-dimensional virtual environment. A user can control the camera model through interactive operations on the touch screen to change the display effect of the virtual environment screen.

[0074] In some embodiments, a particle generator is an element for generating particles. The element can be added to the virtual environment. In some embodiments, the element can be used to decorate the virtual environment; or, the element can provide interaction for the user. The element can also be referred to as a component. A user can trigger at least one of an addition operation, a movement operation, a rotation operation, a scaling operation, a deletion operation, and an editing operation on the particle generator. The addition operation is used to add a new particle generator to the virtual environment; the movement operation is used to change the position of the particle generator in the virtual environment; the rotation operation is used to change the angle of the particle generator in the virtual environment; the scaling operation is used to change the size of the particle generator in the virtual environment; the deletion operation is used to delete the selected particle generator in the virtual environment; and the editing operation is used to change the attribute parameters of the particle generator.

[0075] In some embodiments, at least one particle generator is displayed on the editor interface of the UGC editor, and the at least one particle generators have the same or different attributes.

[0076] Step 220: In response to an attribute setting operation on the particle generator, set the attribute parameters of the particles generated by the particle generator;

[0077] In some embodiments, in response to an attribute setting operation on the particle generator, set the attribute parameters of the particles generated by the particle generator; or, in response to an editing operation on the particle generator, set the attribute parameters of the particles generated by the particle generator.

[0078] In some embodiments, the particles generated by the particle generator include at least one attribute parameter, which includes at least one of a color parameter, a scaling parameter, a transparency parameter, a brightness parameter, an emission speed, an emission position, a rotation angle, a rotation speed, a cycle period, a particle texture, a generation rate, and an acceleration. The color parameter is used to indicate the color of the particles generated by the particle generator during the cycle period; the scaling parameter is used to indicate the scaling degree of the particles generated by the particle generator during the cycle period, and this scaling degree is used to indicate the scaling ratio relative to the default particle size; the transparency parameter is used to indicate the transparency degree of the particles generated by the particle generator during the cycle period; the brightness parameter is used to indicate the brightness degree of the particles generated by the particle generator during the cycle period; the emission speed is used to indicate the initial movement speed of the particles generated by the particle generator, and the emission speed includes at least one of an x-axis emission speed, a y-axis emission speed, and a z-axis emission speed; the emission position is used to indicate the initial position of the particles generated by the particle generator; the rotation angle is used to indicate the initial rotation angle of the particles generated by the particle generator; the rotation speed is used to indicate the rotation speed of the particles generated by the particle generator; the cycle period is used to indicate the existence time of the particles generated by the particle generator; the particle texture is used to indicate the texture of the particles generated by the particle generator; the generation rate is used to indicate the number of particles generated by the particle generator in the first unit time; the acceleration is used to indicate the acceleration of the particles of the particle generator, and the acceleration includes at least one of an x-axis acceleration, a y-axis acceleration, and a z-axis acceleration.

[0079] Step 230: In response to a trigger operation for the particle generator, generate a particle special effect based on the attribute parameters, where the particle special effect includes at least one particle generated by the particle generator.

[0080] In some embodiments, in response to a trigger operation for the particle generator, the particle generator starts to generate particles based on the attribute parameters. At least one particle generated by the particle generator forms a particle special effect.

[0081] In summary, the method provided by the embodiments of the present application adds a user-customizable particle generator to the UGC editor. By adjusting the attribute parameters of the particle generator, the user can customize various particle special effects, enrich the special effects in the UGC editor, and meet the user's customization requirements.

[0082] In response to a user's attribute setting operation for the particle generator, the terminal device sets the attribute parameters of the particles generated by the particle generator. The present application shows three different attribute setting operations, and the attribute setting methods for the attribute parameters include but are not limited to at least one of the following three setting methods (the order does not represent the superiority or inferiority of the implementation methods):

[0083] Setting method one: Set the attribute parameters based on keyframe controls.

[0084] Setting method 2: Set the control based on the property parameter range to set the property parameter range.

[0085] Setting method 3: Directly set the property parameters.

[0086] It should be noted that for different property parameters, any one of the above three setting methods can be adopted, and the present application does not limit this.

[0087] The following will introduce the above three setting methods respectively.

[0088] Setting method 1 (Key frame control)

[0089] In an alternative embodiment based on Figure 3 Step 220 can be alternatively implemented as step 221 and step 222.

[0090] Step 221: In response to an attribute setting operation for the particle generator, display at least two key frame controls on the editor interface;

[0091] Among them, at least two key frame controls are used to edit the property parameter values of the particle at at least two key frame moments in the cycle period; the cycle period is used to indicate the time from the generation to the disappearance of the particle; each key frame control corresponds one-to-one with the key frame moment, and the key frame moment is the moment corresponding to the key frame control in the cycle period.

[0092] In some embodiments, the key frame control includes at least one of a button control (Button), an image button control (ImageButton), and a user-created control (User Created).

[0093] In some embodiments, in response to an attribute setting operation for the particle generator, at least two key frame controls are displayed on the editor interface. In some embodiments, the first key frame control is also referred to as the start frame control, and the last key frame control is also referred to as the end frame control.

[0094] In some embodiments, the key frame control is displayed as a simple graphic, such as a circle, a square, a triangle; or, the key frame control is displayed as an icon.

[0095] In some embodiments, when the key frame control is in the selected state, the key frame control is highlighted. Exemplarily, the key frame control is displayed as a circle, and the key frame control in the selected state is displayed as a ring, and the ring is highlighted.

[0096] In some embodiments, the property parameter of the particle includes a cycle period, and the cycle period is used to indicate the time from the generation to the disappearance of the particle.

[0097] In some embodiments, the attribute parameters of the particles are related to the cycle period. When setting the attribute parameters using the keyframe controls, each keyframe control corresponds to a moment in the cycle period, and this moment is the keyframe moment corresponding to the keyframe control.

[0098] In some embodiments, the start frame control corresponds to the start of a cycle period, that is, the keyframe moment corresponding to the start frame control is the 0th second when the particle is generated; the end frame control corresponds to the end of a cycle period, that is, the keyframe moment corresponding to the end frame control is the current moment when the particle disappears, that is, the moment corresponding to the upper limit of the cycle period.

[0099] Step 222: In response to a trigger operation on the i-th keyframe control among at least two keyframe controls, determine that the value of the attribute parameter of the particle at the i-th keyframe moment is the value of the attribute parameter corresponding to the i-th keyframe control.

[0100] Wherein, i is a positive integer.

[0101] In some embodiments, in response to a trigger operation on the i-th keyframe control among at least two keyframe controls, determine that the value of the attribute parameter of the particle at the i-th keyframe moment is the value of the attribute parameter corresponding to the i-th keyframe control. Exemplarily, if the user sets the attribute parameter value to 1 through the i-th keyframe control, then the value of the attribute parameter of the particle at the i-th keyframe moment is the attribute parameter value 1 set by the user through the i-th keyframe control.

[0102] In some embodiments, the values of the property parameters of the particles in the cycle period change one by one according to the property parameter values respectively corresponding to the first keyframe control to the last keyframe control, that is, mutation. For example, there are 4 keyframe controls, and the corresponding property parameter values are 0, 3, 2, and 4 respectively. The cycle period of the particles is 3 seconds, and the keyframe times corresponding to the 4 keyframe controls are the 0th second, the 1st second, the 2nd second, and the 3rd second respectively. Then the property parameter value of the particle is 0 from the 0th to the 1st second, mutates to 3 at the 1st second, is 3 from the 1st to the 2nd second, mutates to 2 at the 2nd second, is 2 from the 2nd to the 3rd second, mutates to 4 at the 3rd second, and then the particle disappears; or, the values of the property parameters of the particles in the cycle period change gradually according to the property parameter values respectively corresponding to the first keyframe control to the last keyframe control, that is, gradual change. The gradual change process of the property parameter values satisfies a straight line with adjacent two keyframe controls as endpoints, or the gradual change process of the property parameter values satisfies a curve passing through adjacent two keyframe controls. For example, there are 3 keyframe controls, and the corresponding property parameter values are 0, 1, and 0 respectively. The cycle period of the particles is 3 seconds, and the keyframe times corresponding to the 3 keyframe controls are the 0th second, the 1st second, and the 3rd second respectively. Then it can be obtained that the straight line between the 1st keyframe control and the 2nd keyframe control is y = x, and the straight line between the 2nd keyframe control and the 3rd keyframe control is y = -0.5x + 1.5, where x is the time corresponding to the cycle period, and y is the property parameter value of the particle. That is, the relationship between the property parameter value of the particle from the 0th to the 1st second and the time corresponding to the cycle period satisfies the straight line y = x. For example, the property parameter value at the 0.5th second is 0.5; the relationship between the property parameter value from the 1st to the 3rd second and the time corresponding to the cycle period satisfies y = -0.5x + 1.5. For example, the property parameter value at the 2nd second is 0.5.

[0103] In summary, the method provided by the embodiments of the present application provides a way for users to set property parameters using keyframe controls. Since each keyframe control corresponds to a keyframe time in the cycle period, that is, users can set the property parameter values of the particles at a certain keyframe time in the cycle period through the keyframe controls. Through this method, the changes of the property parameters of the particles generated by the particle generator in the cycle period can be set flexibly.

[0104] In some embodiments, the particles generated by the particle generator include at least one property parameter, and the property parameter includes at least one of a color parameter, a scaling parameter, a transparency parameter, a brightness parameter, an emission speed, an emission position, a rotation angle, a rotation speed, a cycle period, a particle texture map, a generation rate, and an acceleration.

[0105] The user can use setting method 1 to set one or more of the above several property parameters. Optionally, the property parameters set using setting method 1 include at least one of a color parameter, a scaling parameter, a transparency parameter, and a brightness parameter.

[0106] The following will separately introduce the setting methods for setting property parameters using keyframe controls.

[0107] 1.1 Setting the color parameter using keyframe controls

[0108] In some embodiments, the color parameter is used to indicate the color of the particles generated by the particle generator during the cycle period.

[0109] In some embodiments, step 221 can be implemented as step 2211, and step 222 can be implemented as step 2221.

[0110] Step 2211: In response to a trigger operation on the color setting entry of the particle generator, at least one of at least two color keyframe controls, a color coordinate axis, a particle color selection tab page, and a particle color selection operation control is displayed on the editor interface;

[0111] Among them, at least two color keyframe controls are located in the color coordinate axis; the color coordinate axis is used to indicate the color change of the particles during the cycle period; the particle color selection tab page is used to indicate the color selection method; the particle color selection tab page includes at least one of a color palette tab page, a color palette tab page, and a history tab page; different particle color selection tab pages correspond to different particle color selection operation controls; the color palette tab page corresponds to a color palette color selection control; the color palette tab page corresponds to a color palette color selection control; the history tab page corresponds to a history color selection control; the particle color selection operation control is used to select a color from at least one candidate color.

[0112] In some embodiments, the color keyframe control includes at least one of a button control, an image button control, and a user-created control; the color coordinate axis includes at least one of an image control (Image), an image view (ImageView), and a user-created control; the particle color selection tab page includes at least one of a tab layout control (TabLayout) and a user-created control; the particle color selection operation control includes at least one of a button control, an image button control, an image control, and an image view.

[0113] In some embodiments, the color coordinate axis is used to indicate the color change of the particles during the cycle period, and the two ends of the color coordinate axis respectively correspond to the first color keyframe control and the last color keyframe control, that is, the start frame control and the end frame control.

[0114] In some embodiments, such as Figure 4As shown, the particle color selection tab page includes at least one of a color palette tab page 87, a color mixing palette tab page 88, and a history tab page 89. As Figure 4 shown in the schematic diagram (1) in Figure 4 , the color palette tab page 87 corresponds to a color palette color selection control 90, and the color palette color selection control 90 is used to select a color from at least one candidate color. The color palette tab page 87 further includes a color palette switching control 91, and the color palette switching control 91 is used to switch the candidate colors of different color combinations. As Figure 4 shown in the schematic diagram (2) in Figure 4 , the color mixing palette tab page 88 corresponds to a color mixing palette color selection control 92, and the color mixing palette color selection control includes a color wheel control 93 and a brightness control 94. The color wheel control 93 is an RGB (Red Green Blue) color wheel or an RYB (Red Yellow Blue) color wheel, that is, a color selection range obtained by mixing primary colors of red, green, and blue or red, yellow, and blue respectively. The brightness control 94 is used to indicate the intensity of the color brightness. The brightness change displayed by the brightness control 94 is that the brightness increases from bottom to top, that is, gradually transitions from black to white, and the brightness decreases from left to right, that is, gradually changes from white to black. When the user performs a color selection operation on the color wheel control, the brightness control displays the brightness transformation information corresponding to the color selected in the color wheel control. As Figure 4 shown in the schematic diagram (3) in Figure 4 , the history tab page 89 corresponds to a history color selection control 95, and the colors in the history tab page 89 are the colors that the user has selected or used.

[0115] Step 2221: When the i-th color key frame control among at least two color key frame controls is in a selected state, in response to a trigger operation on the particle color selection operation control, determine that the attribute parameter value of the particle at the i-th key frame moment is the color value selected by the particle color selection operation control.

[0116] Wherein, i is a positive integer.

[0117] Exemplarily, there are 3 color key frame controls, the user selects the 2nd color key frame control, the color selection tab page includes a color palette tab page, a color mixing palette tab page, and a history tab page. The user selects a color through the color palette color selection control on the color palette tab page, and the color value selected by the user through the color palette color selection control is set as the color value of the particle at the 2nd key moment; or, the user selects a color through the color mixing palette color selection control on the color mixing palette tab page, and the color value selected by the user through the color mixing palette color selection control is set as the color value of the particle at the 2nd key moment.

[0118] In summary, the method provided by the embodiments of the present application provides a user with an operation method for setting color parameters using a color keyframe control. When the user selects a color, the user can select a color through any one of three different color selection methods and set the selected color value as the color value of the corresponding particle at the keyframe moment. Among the three color selection methods provided, the color palette color selection is convenient and fast, and the color palette can be set to different styles to facilitate the user to select colors of the corresponding styles; the color palette color selection supports a richer range of colors and can provide a larger color selection range for the user; the historical color selection can save the colors that the user has used or selected, enabling the user to obtain special colors obtained by previous color adjustment without re-coloring, and the historical color selection is convenient for the user to unify the color tone when designing a virtual environment. On the one hand, it enables the user to have a larger operation control and selection range when selecting a color, and on the other hand, the user can change the color of the particle through this operation, making the color effect of the customized special effect richer.

[0119] When setting attributes using the keyframe control, in addition to the method of setting color parameters described above, the following methods are also included.

[0120] In some embodiments, step 221 can be implemented as step 2212, and step 222 can be implemented as step 2222.

[0121] Step 2212: In response to a trigger operation on the property setting entry of the particle generator, display a property coordinate system and at least two keyframe controls located in the property coordinate system on the editor interface. The first coordinate axis of the property coordinate system is used to indicate the cycle period, and the second coordinate axis of the property coordinate system is used to indicate property parameters;

[0122] In some embodiments, the keyframe control includes at least one of a button control, an image button control, and a user-created control; the property coordinate system includes at least one of an image control, an image view, and a user-created control.

[0123] In some embodiments, the first coordinate axis is the horizontal axis and the second coordinate axis is the vertical axis; or, the first coordinate axis is the vertical axis and the second coordinate axis is the horizontal axis. It should be noted that the embodiments of the present application take the first coordinate axis as the horizontal axis and the second coordinate axis as the vertical axis as an example for illustration, but the specific directions of the first coordinate axis and the second coordinate axis are not limited.

[0124] In some embodiments, the attribute coordinate system includes the first quadrant of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the second quadrant of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the third quadrant of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the fourth quadrant of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the first and second quadrants of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the first and third quadrants of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the first and fourth quadrants of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the second and third quadrants of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the second and fourth quadrants of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the first, second, and third quadrants of the rectangular coordinate system in a plane; or, the attribute coordinate system includes the first, second, third, and fourth quadrants of the rectangular coordinate system in a plane. It should be noted that only some display ranges of the attribute coordinate system are listed in the embodiments of the present application, and the display ranges of the remaining attribute coordinate systems are not listed one by one in the embodiments of the present application, but the protection scope of the present application is not limited thereto.

[0125] Step 2222: When the i-th keyframe control among at least two keyframe controls is in a selected state, in response to a dragging operation on the i-th keyframe control, determine that the attribute parameter value of the particle at the i-th keyframe moment is the attribute parameter value corresponding to the i-th keyframe control in the attribute coordinate system.

[0126] Wherein, i is a positive integer.

[0127] In some embodiments, the corresponding attribute parameter value is displayed on the keyframe control.

[0128] In some embodiments, the 1st keyframe control and the last keyframe control, namely the start frame control and the end frame control, can only be dragged up and down, but cannot be dragged left and right. It can be understood that the abscissa corresponding to the start frame control and the end frame control cannot be changed, and only the ordinate corresponding to them can be changed.

[0129] In summary, the method provided by the embodiments of the present application shows a way to set attribute parameters based on keyframe controls. At least two keyframe controls of this way are located in the attribute coordinate system, and the user can change the attribute parameter value corresponding to the keyframe control and the specific time corresponding to the keyframe moment by dragging. This way is convenient for the user to adjust the change trend of the attribute parameter value, enabling the user to more conveniently customize different particle effects.

[0130] 1.2 Setting the scaling parameter with keyframe controls

[0131] In some embodiments, step 2212 can be implemented as step 310, and step 2222 can be implemented as step 320.

[0132] Step 310: In response to a triggering operation on the scaling setting entry for the particle generator, display a scaling coordinate system and at least two scaling keyframe controls located in the scaling coordinate system on the editor interface. The first coordinate axis of the scaling coordinate system is used to indicate the cycle period, and the second coordinate axis of the scaling coordinate system is used to indicate the scaling parameter;

[0133] In some embodiments, the scaling keyframe control includes at least one of a button control, an image button control, and a user-created control; the scaling coordinate system includes at least one of an image control, an image view, and a user-created control; the scaling setting entry includes that the keyframe control is at least one of a button control, an image button control, and a user-created control.

[0134] In some embodiments, the scaling parameter is used to indicate the scaling degree of the particles generated by the particle generator during the cycle period, and this scaling degree is relative to the default particle size. The minimum value of the particle scaling parameter is 0. When the particle scaling parameter is 0, the particle size is 0 times the default particle size; when the particle scaling parameter is 1, the particle size is 1 times the default particle size; when the particle scaling parameter is 2.5, the particle size is 2.5 times the default particle size.

[0135] In some embodiments, the upper limit of the scaling parameter is a preset value. Exemplarily, the upper limit of the scaling parameter is 10.

[0136] Exemplarily, as Figure 5 shown in the schematic diagram (1), the scaling coordinate system 96 is a rectangular coordinate system with the cycle period as the horizontal axis and the scaling parameter as the vertical axis, and the scaling coordinate system 96 includes the first quadrant of the rectangular coordinate system.

[0137] In some embodiments, the upper limit of the abscissa value of the scaling coordinate system is the upper limit of the cycle period; or, the upper limit of the abscissa value of the scaling coordinate system is the cycle period.

[0138] Step 320: When the i-th scaling keyframe control among at least two scaling keyframe controls is in the selected state, in response to a dragging operation on the i-th scaling keyframe control, determine that the attribute parameter value of the particle at the i-th keyframe moment is the scaling parameter value corresponding to the i-th scaling keyframe control in the scaling coordinate system.

[0139] Wherein, i is a positive integer.

[0140] In some embodiments, the corresponding scaling parameter value is displayed on the scaling keyframe control.

[0141] In some embodiments, at least two scaling keyframe controls include two initial scaling keyframe controls, namely the 1st and the last scaling keyframe controls, which can also be referred to as the scaling start frame control and the scaling end frame control.

[0142] In some embodiments, when the scaling keyframe control is in the selected state, the scaling keyframe will be highlighted.

[0143] In summary, the method provided by the embodiments of the present application is based on the method of setting scaling parameters through scaling keyframe controls. At least two scaling keyframe controls of this method are located in the scaling coordinate system. The user can change the scaling parameter values corresponding to the scaling keyframe controls and the specific time corresponding to the keyframe moment by dragging. This method facilitates the user to adjust the change trend of the scaling parameter values, enabling the user to more conveniently customize the scaling degree of the particles based on the cyclic period change.

[0144] 1.3 Setting transparency parameters with keyframe controls

[0145] In some embodiments, step 2212 can be implemented as step 330, and step 2222 can be implemented as step 340.

[0146] Step 330: In response to a trigger operation on the transparency setting entry of the particle generator, display a transparency coordinate system and at least two transparency keyframe controls located in the transparency coordinate system on the editor interface. The first coordinate axis of the transparency coordinate system is used to indicate the cyclic period, and the second coordinate axis of the transparency coordinate system is used to indicate the transparency parameter;

[0147] In some embodiments, the transparency keyframe control includes at least one of a button control, an image button control, and a user-created control; the transparency coordinate system includes at least one of an image control, an image view, and a user-created control; the transparency setting entry includes that the keyframe control is at least one of a button control, an image button control, and a user-created control.

[0148] In some embodiments, the transparency parameter is used to indicate the transparency degree of the particles generated by the particle generator during the cyclic period. The value range of the transparency parameter is from 0 to 1. When the transparency is 0, the particles are displayed as completely opaque, and when the transparency is 1, the particles are displayed as completely transparent.

[0149] Exemplarily, as Figure 5 shown in the schematic diagram (2), the transparency coordinate system 97 is a rectangular coordinate system with the cyclic period as the horizontal axis and the transparency parameter as the vertical axis. The transparency coordinate system 97 includes the first quadrant of the rectangular coordinate system.

[0150] In some embodiments, the upper limit of the abscissa value of the transparency coordinate system is the upper limit of the cyclic period; or, the upper limit of the abscissa value of the transparency coordinate system is the cyclic period.

[0151] Step 340: When the \(i\)th transparency key-frame control among at least two transparency key-frame controls is in a selected state, in response to a drag operation on the \(i\)th transparency key-frame control, determine that the attribute parameter value of the particle at the \(i\)th key-frame moment is the transparency parameter value corresponding to the \(i\)th transparency key-frame control in the transparency coordinate system.

[0152] Where \(i\) is a positive integer.

[0153] In some embodiments, the corresponding transparency parameter value is displayed on the transparency key-frame control.

[0154] In some embodiments, the at least two transparency key-frame controls include two initial transparency key-frame controls, namely the 1st and the last transparency key-frame controls, which can also be referred to as the transparency start-frame control and the transparency end-frame control.

[0155] In some embodiments, when the transparency key-frame control is in a selected state, the transparency key-frame will be highlighted.

[0156] In summary, the method provided by the embodiments of the present application is based on the way of setting transparency parameters through transparency key-frame controls. At least two transparency key-frame controls of this way are located in the transparency coordinate system. Users can change the transparency parameter values corresponding to the transparency key-frame controls and the specific time corresponding to the key-frame moments by dragging. This way is convenient for users to adjust the change trend of transparency parameter values, enabling users to more conveniently customize the transparency degree based on cyclic period changes.

[0157] 1.4 Setting Brightness Parameters with Key-Frame Controls

[0158] In some embodiments, step 2212 can be implemented as step 350, and step 2222 can be implemented as step 360.

[0159] Step 350: In response to a trigger operation on the brightness setting entry of the particle generator, display a brightness coordinate system and at least two brightness key-frame controls located in the brightness coordinate system on the editor interface. The first coordinate axis of the brightness coordinate system is used to indicate the cyclic period, and the second coordinate axis of the brightness coordinate system is used to indicate the brightness parameter;

[0160] In some embodiments, the brightness key-frame control includes at least one of a button control, an image button control, and a user-created control; the brightness coordinate system includes at least one of an image control, an image view, and a user-created control; the brightness setting entry includes that the key-frame control is at least one of a button control, an image button control, and a user-created control.

[0161] In some embodiments, the brightness parameter is used to indicate the brightness or darkness of the particles generated by the particle generator during the cycle period. The value of the brightness parameter can be negative. When the absolute value of the brightness parameter value is a larger negative value, the particles appear darker, that is, closer to black; when the brightness parameter value is 0, no additional brightness is added to the particles, and the particle color is directly displayed; when the brightness parameter is a larger positive value, the particles appear brighter.

[0162] In some embodiments, the upper limit of the brightness parameter is a preset value. Exemplarily, the upper limit of the brightness parameter is 10.

[0163] In some embodiments, the lower limit of the brightness parameter is a preset value. Exemplarily, the upper limit of the brightness parameter is -10.

[0164] Exemplarily, as Figure 5 shown in the schematic diagram (3) of, the brightness coordinate system 98 is a rectangular coordinate system in a plane with the cycle period as the horizontal axis and the brightness parameter as the vertical axis. The brightness coordinate system 98 includes the first quadrant and the fourth quadrant of the rectangular coordinate system.

[0165] In some embodiments, the upper limit of the abscissa value of the brightness coordinate system is the upper limit of the cycle period; or, the upper limit of the abscissa value of the brightness coordinate system is the cycle period.

[0166] Step 360: When the i-th brightness keyframe control among at least two brightness keyframe controls is in the selected state, in response to the drag operation on the i-th brightness keyframe control, determine that the attribute parameter value of the particle at the i-th keyframe moment is the brightness parameter value corresponding to the i-th brightness keyframe control in the brightness coordinate system.

[0167] Wherein, i is a positive integer.

[0168] In some embodiments, the corresponding brightness parameter value is displayed on the brightness keyframe control.

[0169] In some embodiments, the at least two brightness keyframe controls include two initial brightness keyframe controls, that is, the 1st and the last brightness keyframe controls, which can also be referred to as the brightness start frame control and the brightness end frame control.

[0170] In some embodiments, when the brightness keyframe control is in the selected state, the brightness keyframe will be highlighted.

[0171] In summary, the method provided by the embodiments of the present application is based on the method of setting the brightness parameter by the brightness keyframe control. At least two brightness keyframe controls of this method are located in the brightness coordinate system. Users can change the brightness parameter value corresponding to the brightness keyframe control and the specific time corresponding to the keyframe moment by dragging. This method facilitates users to adjust the change trend of the brightness parameter value, enabling users to more conveniently customize the brightness or darkness of the particles changing based on the cycle period.

[0172] In some embodiments, the attribute parameter corresponds to at least two keyframe controls, and among the at least two keyframe controls, there are two initial keyframe controls, namely the first keyframe control and the last keyframe control, which can also be referred to as the start frame control and the end frame control. In addition to the two initial keyframe controls, the user can also add or delete keyframe controls. Next, the methods of adding keyframe controls and deleting keyframe controls are shown.

[0173] · Adding keyframe controls

[0174] Step 410: When the i-th keyframe control is in the selected state, in response to the add keyframe operation, when the attribute parameter corresponds to n keyframe controls, insert a new keyframe control between the i-th keyframe control and the (i + 1)-th keyframe control to obtain n + 1 keyframe controls corresponding to the attribute parameter.

[0175] Wherein, i is a positive integer and n is a positive integer.

[0176] In some embodiments, the keyframe control includes at least one of a button control, an image button control, and a user-created control.

[0177] In some embodiments, n is a positive integer not less than 2.

[0178] In some embodiments, when the i-th keyframe control is in the selected state, in response to the add keyframe operation, when the attribute parameter corresponds to n keyframe controls, insert a new keyframe control between the (i - 1)-th keyframe and the i-th keyframe control to obtain n + 1 keyframe controls corresponding to the attribute parameter, and the i-th keyframe control among the n keyframe controls is postponed to be the (i + 1)-th keyframe control among the n + 1 keyframe controls. Or, when the i-th keyframe control is in the selected state, in response to the add keyframe operation, when the attribute parameter corresponds to n keyframe controls, insert a new keyframe control between the i-th keyframe control and the (i + 1)-th keyframe control to obtain n + 1 keyframe controls corresponding to the attribute parameter, and the (i + 1)-th keyframe control among the n keyframe controls is postponed to be the (i + 2)-th keyframe control among the n + 1 keyframe controls.

[0179] In some embodiments, the attribute parameter value corresponding to the new keyframe control is the average of the attribute parameter values of the i-th and (i + 1)-th keyframe controls among the n keyframe controls; or, the attribute parameter value corresponding to the new keyframe control is the average of the attribute parameter values of the (i - 1)-th and i-th keyframe controls among the n keyframe controls; or, the attribute parameter value corresponding to the new keyframe control is a preset value.

[0180] In summary, the method provided by the embodiments of the present application supports users to add keyframe controls to property parameters, enabling users to customize property parameters more precisely through keyframe controls and making the final particle effects more diverse.

[0181] · Delete keyframe control

[0182] Step 420: When the i-th keyframe control is in the selected state, in response to the keyframe deletion operation, delete the i-th keyframe control.

[0183] Where i is a positive integer.

[0184] In some embodiments, the keyframe control includes at least one of a button control, an image button control, and a user-created control.

[0185] In some embodiments, when the i-th keyframe control is in the selected state, in response to the keyframe deletion operation, when there are n keyframes corresponding to the property parameter, delete the i-th keyframe control to obtain n - 1 keyframe controls corresponding to the property parameter. The (i + 1)-th keyframe control among the n keyframe controls becomes the i-th keyframe control among the n - 1 keyframe controls, where n is a positive integer.

[0186] In some embodiments, the i-th keyframe control is not the first keyframe control; the i-th keyframe control is not the last keyframe control.

[0187] In some embodiments, when the i-th keyframe control is the first keyframe control, the second keyframe control among the n keyframe controls becomes the first keyframe control among the n - 1 keyframe controls, and the keyframe time corresponding to the second keyframe control among the n keyframe controls becomes the keyframe time of the deleted first keyframe control; when the i-th keyframe control is the n-th keyframe control, the (n - 1)-th keyframe control among the n keyframe controls remains the (n - 1)-th keyframe control among the n - 1 keyframe controls, and the keyframe time corresponding to the (n - 1)-th keyframe control among the n keyframe controls becomes the keyframe time of the deleted n-th keyframe control, where n is a positive integer.

[0188] In some embodiments, n is a positive integer not less than 2.

[0189] In summary, the method provided by the embodiments of the present application supports users to delete keyframe controls, making the operations on keyframe controls richer for users and facilitating users to freely design different particle effects.

[0190] Setting method 2 (property parameter interval)

[0191] Based on Figure 3In an alternative embodiment, step 220 may be implemented as step 223.

[0192] Step 223: In response to an attribute setting operation for the particle generator, determine an attribute parameter range for the particles, where the attribute parameter range is used to indicate the parameter range of the attribute parameter values randomly generated for the particles.

[0193] In some embodiments, the attribute parameter values of the particles are random values. The attribute parameter values randomly generated for the particles are within the attribute parameter range.

[0194] In some embodiments, the attribute parameter range is determined based on the user's attribute setting operation for the particle generator.

[0195] In some embodiments, at least one of a maximum value setting control and a minimum value setting control is displayed on the editor interface. Step 223 may be implemented as at least one of step 2231 and step 2232.

[0196] Step 2231: In response to an attribute setting operation for the maximum value setting control, determine the maximum value of the parameter range for the particles;

[0197] In some embodiments, the maximum value setting control includes at least one of a button control, an image button control, a seek bar control (SeekBar), a progress bar control (Progress Bar), a slider control (Slider), a text box control (Text Box), a spin box control (Spin Box), and a user-created control.

[0198] In some embodiments, the minimum value of the parameter range is set by the user through the minimum value setting control; or, the minimum value of the parameter range is a preset value.

[0199] Step 2232: In response to an attribute setting operation for the minimum value setting control, determine the minimum value of the parameter range for the particles.

[0200] In some embodiments, the minimum value setting control includes at least one of a button control, an image button control, a seek bar control, a progress bar control, a slider control, a text box control, a spin box control, and a user-created control.

[0201] In some embodiments, the maximum value of the parameter range is set by the user through the maximum value setting control; or, the maximum value of the parameter range is a preset value.

[0202] In some embodiments, the maximum value of the parameter range is greater than or equal to the minimum value of the parameter range.

[0203] In some embodiments, when the maximum value of the parameter range is equal to the minimum value of the parameter range, the attribute parameter value randomly generated by the particle is always the maximum value or the minimum value of the parameter range.

[0204] In summary, the method provided by the embodiments of the present application shows a setting method for using an attribute parameter interval to set the attribute parameters of the particles generated by a particle generator. The attribute parameter values randomly generated by the particles are within the attribute parameter interval. Through this method, the particles generated by the particle generator can have randomness, making the custom special effects more randomized.

[0205] In some embodiments, the particles generated by the particle generator include at least one attribute parameter, and the attribute parameter includes at least one of a color parameter, a scaling parameter, a transparency parameter, a brightness parameter, an emission speed, an emission position, a rotation angle, a rotation speed, a cycle period, a particle texture map, a generation rate, and an acceleration.

[0206] The user can use setting method two to set one or more of the above several attribute parameters. Optionally, the attribute parameters set using setting method two include at least one of an emission speed, an emission position, a rotation angle, and a rotation speed.

[0207] Next, the setting methods for setting attribute parameters using attribute parameter intervals will be introduced separately.

[0208] 2.1 Setting the emission speed using an attribute parameter interval

[0209] In some embodiments, the emission speed is used to indicate the initial movement speed of the particles generated by the particle generator, and the emission speed includes at least one of an x-axis emission speed, a y-axis emission speed, and a z-axis emission speed.

[0210] In some embodiments, when the x-axis emission speed of the particle is positive, the particle moves in the positive half-axis direction of the x-axis; when the x-axis emission speed of the particle is negative, the particle moves in the negative half-axis direction of the x-axis; when the y-axis emission speed of the particle is positive, the particle moves in the positive half-axis direction of the y-axis; when the y-axis emission speed of the particle is negative, the particle moves in the negative half-axis direction of the y-axis; when the z-axis emission speed of the particle is positive, the particle moves in the positive half-axis direction of the z-axis; when the z-axis emission speed of the particle is negative, the particle moves in the negative half-axis direction of the z-axis.

[0211] In some embodiments, at least one of an x-axis emission speed maximum value setting control, a y-axis emission speed maximum value setting control, a z-axis emission speed maximum value setting control, an x-axis emission speed minimum value setting control, a y-axis emission speed minimum value setting control, and a z-axis emission speed minimum value setting control is displayed on the editor interface.

[0212] In some embodiments, the maximum x-axis launch speed setting control includes at least one of a button control, an image button control, a slider bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0213] In some embodiments, the maximum y-axis launch speed setting control includes at least one of a button control, an image button control, a slider bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0214] In some embodiments, the maximum z-axis launch speed setting control includes at least one of a button control, an image button control, a slider bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0215] In some embodiments, the minimum x-axis launch speed setting control includes at least one of a button control, an image button control, a slider bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0216] In some embodiments, the minimum y-axis launch speed setting control includes at least one of a button control, an image button control, a slider bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0217] In some embodiments, the minimum z-axis launch speed setting control includes at least one of a button control, an image button control, a slider bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0218] In some embodiments, step 2231 can be implemented as at least one of steps 510 to 530, and step 2232 can be implemented as at least one of steps 540 to 560.

[0219] In some embodiments, such as Figure 6As shown, on the editor interface, there are an x-axis launch velocity maximum value setting control 1, a y-axis launch velocity maximum value setting control 3, a z-axis launch velocity maximum value setting control 5, an x-axis launch velocity minimum value setting control 2, and a y-axis launch velocity minimum value setting control 4. Each control corresponds to two operation methods, one is an input box and the other is a slider. Exemplarily, the x-axis launch velocity maximum value setting control 1 includes an x-axis launch velocity maximum value 1a and an x-axis launch velocity maximum value slider 1b. In response to a trigger operation on the input box, a numeric input box is displayed to determine the parameter range; in response to a drag operation on the slider, the parameter range is determined. Optionally, the attribute parameter values corresponding to the input box and the slider are the same, that is, when the slider is adjusted, the number displayed in the input box changes; when a number is entered in the input box, the progress of the slider changes.

[0220] Step 510: In response to an attribute setting operation for the x-axis launch velocity maximum value setting control, determine the maximum value of the x-axis launch velocity range of the particle;

[0221] In some embodiments, the minimum value of the x-axis launch velocity range is set by the user through the x-axis launch velocity minimum value setting control; or, the minimum value of the x-axis launch velocity range is a preset value. Exemplarily, the minimum value of the x-axis launch velocity range is a preset value of 0.

[0222] Step 520: In response to an attribute setting operation for the y-axis launch velocity maximum value setting control, determine the maximum value of the y-axis launch velocity range of the particle;

[0223] In some embodiments, the minimum value of the y-axis launch velocity range is set by the user through the y-axis launch velocity minimum value setting control; or, the minimum value of the y-axis launch velocity range is a preset value. Exemplarily, the minimum value of the y-axis launch velocity range is a preset value of 0.

[0224] Step 530: In response to an attribute setting operation for the z-axis launch velocity maximum value setting control, determine the maximum value of the z-axis launch velocity range of the particle;

[0225] In some embodiments, the minimum value of the z-axis launch velocity range is set by the user through the z-axis launch velocity minimum value setting control; or, the minimum value of the z-axis launch velocity range is a preset value. Exemplarily, the minimum value of the z-axis launch velocity range is a preset value of 0.

[0226] Step 540: In response to an attribute setting operation for the x-axis launch velocity minimum value setting control, determine the minimum value of the x-axis launch velocity range of the particle;

[0227] In some embodiments, the maximum value of the x-axis launch velocity range is set by the user through the x-axis launch velocity maximum value setting control; or, the maximum value of the x-axis launch velocity range is a preset value.

[0228] In some embodiments, the maximum value of the x-axis emission velocity range is greater than or equal to the minimum value of the x-axis emission velocity range.

[0229] In some embodiments, when the maximum value of the x-axis emission velocity range is equal to the minimum value of the x-axis emission velocity range, the randomly generated x-axis emission velocity value of the particle is always the maximum value or the minimum value of the x-axis emission velocity range.

[0230] Step 550: In response to an attribute setting operation on the control for setting the minimum value of the y-axis emission velocity, determine the minimum value of the y-axis emission velocity range of the particle;

[0231] In some embodiments, the maximum value of the y-axis emission velocity range is set by the user through the control for setting the maximum value of the y-axis emission velocity; or, the maximum value of the y-axis emission velocity range is a preset value.

[0232] In some embodiments, the maximum value of the y-axis emission velocity range is greater than or equal to the minimum value of the y-axis emission velocity range.

[0233] In some embodiments, when the maximum value of the y-axis emission velocity range is equal to the minimum value of the y-axis emission velocity range, the randomly generated y-axis emission velocity value of the particle is always the maximum value or the minimum value of the y-axis emission velocity range.

[0234] Step 560: In response to an attribute setting operation on the control for setting the minimum value of the z-axis emission velocity, determine the minimum value of the z-axis emission velocity range of the particle.

[0235] In some embodiments, the maximum value of the z-axis emission velocity range is set by the user through the control for setting the maximum value of the z-axis emission velocity; or, the maximum value of the z-axis emission velocity range is a preset value.

[0236] In some embodiments, the maximum value of the z-axis emission velocity range is greater than or equal to the minimum value of the z-axis emission velocity range.

[0237] In some embodiments, when the maximum value of the z-axis emission velocity range is equal to the minimum value of the z-axis emission velocity range, the randomly generated z-axis emission velocity value of the particle is always the maximum value or the minimum value of the z-axis emission velocity range.

[0238] In summary, the method provided by the embodiments of the present application determines the value range of the randomly generated emission velocity value of the particle by setting at least one of the maximum value and the minimum value of the emission velocity range. After using the above method, the user can make the particles generated by the particle generator have random initial emission velocities, and the emission velocity includes at least one of the x-axis emission velocity, the y-axis emission velocity, and the z-axis emission velocity. In this way, the particle special effect can include moving particles, making the user-defined particle special effect more abundant.

[0239] 2.2 Setting the Emission Position within the Range of Attribute Parameters

[0240] In some embodiments, the emission position is used to indicate the initial position of the particles generated by the particle generator.

[0241] In some embodiments, the form of the particle emission position is in coordinate form. Exemplarily, the emission position of the particle is (12, 31, 13); or, the emission position of the particle is (-12, 11, 0). Optionally, the coordinate is a coordinate in the world coordinate system; or, the coordinate is a coordinate in the local coordinate system. The world coordinate system is a three-dimensional rectangular coordinate system formed based on the origin of the virtual environment; the local coordinate system is a three-dimensional rectangular coordinate system relative to the particle generator. Exemplarily, the local coordinate system is a three-dimensional rectangular coordinate system with the center of the particle generator as the origin.

[0242] In some embodiments, the method further includes step 610, and step 223 can be implemented as step 620.

[0243] Step 610: In response to a trigger operation on the entry for setting the emission position of the particle generator, display an emission position control on the editor interface. The emission position control includes at least one of a spherical parameter control, a triangular parameter control, a cylindrical parameter control, and a custom parameter control;

[0244] In some embodiments, the emission position control includes at least one of a spherical parameter control, a triangular parameter control, a cylindrical parameter control, and a custom parameter control. Optionally, the emission position control further includes at least one of a pentagram parameter control, a conical parameter control, and a triangular pyramid parameter control.

[0245] In some embodiments, the emission position control includes at least one of a button control, an image button control, and a combo box control (ComboBox); the entry for setting the emission position includes at least one of a button control, an image button control, and a combo box control.

[0246] In some embodiments, the emission position is used to indicate the initial position of the particles, and the developer of the UGC editor can set at least one preset shape, such as at least one of the above-mentioned sphere, triangle, cylinder, pentagram, cone, and triangular pyramid. Optionally, the attributes of the preset shape are fixed; or, the user can adjust the preset shape through the attribute setting interface opened by the developer.

[0247] In summary, in the case where the method provided by the embodiments of the present application has multiple emission position controls, by first selecting the emission position control and then displaying some parameter setting controls corresponding to the emission position control, the entire editor interface can be made more concise and user-friendly.

[0248] Step 620: In response to a triggering operation on the emission position control, determine the emission position range of the particles. The emission position range is used to indicate the parameter range of the emission position values randomly generated by the particles. The emission position control is used to indicate the determination of the emission position range.

[0249] In some embodiments, in response to a triggering operation on the emission position control, determine the emission position range of the particles, that is, determine the coordinate range of the initial positions randomly generated by the particles.

[0250] In summary, the method provided by the embodiments of the present application can provide users with the setting of the emission position range of the particles, enabling users to customize the initial positions of the particles by setting the emission range of the particles, thereby obtaining particle special effects of various graphics and improving the richness of special effect generation.

[0251] In some embodiments, the emission position control includes a spherical parameter control, and the spherical parameter control includes a radius setting control. Step 620 can be implemented as Step 621 and Step 622.

[0252] In some embodiments, the spherical parameter control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0253] Step 621: In response to a setting operation on the radius setting control, determine the sphere radius;

[0254] In some embodiments, in response to a selection operation on the spherical parameter control, display the radius setting control.

[0255] In some embodiments, the radius setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0256] Step 622: Based on the sphere radius, determine the emission position range of the particles as a first spatial range. The first spatial range includes the spatial coordinate range on the sphere surface and inside the sphere. The sphere is a sphere with the sphere radius as the radius.

[0257] In some embodiments, the center of the sphere corresponding to the first spatial range is the center of the particle generator; or, the center of the sphere is the origin of the local coordinate system where the particle generator is located; or, the difference between the center coordinates of the sphere and the center coordinates of the particle generator is a first difference; or, the difference between the center coordinates of the sphere and the origin coordinates of the local coordinate system is a second difference.

[0258] Exemplarily, the center coordinates of the sphere are (0, 0, 0) and the radius of the sphere is r. Then the first spatial range includes a spatial coordinate interval that satisfies the first condition, and the first condition is x 2 +y 2 +z 2 ≤r 2 .

[0259] In summary, the method provided by the embodiments of the present application shows a setting method for a spherical emission position interval. The user only needs to correspondingly set the radius to obtain a particle special effect with an emission position interval within the sphere, making the setting of the particle special effect simpler and easier for the user to get started.

[0260] In some embodiments, the emission position control includes a triangular parameter control, and the triangular parameter control includes at least one of a side length setting control and a triangular prism height setting control. Step 620 can be implemented as steps 623 to 625.

[0261] In some embodiments, the triangular parameter control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0262] Step 623: In response to a setting operation on the side length setting control, determine the first side length;

[0263] In some embodiments, the side length setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0264] Step 624: In response to a setting operation on the triangular prism height setting control, determine the first height;

[0265] In some embodiments, in response to a selection operation on the triangular parameter control, at least one of the side length setting control and the triangular prism height setting control is displayed.

[0266] In some embodiments, the triangular prism height setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0267] Step 625: Based on at least one of the first side length and the first height, determine that the emission position interval of the particle is the second spatial range, and the second spatial range includes the spatial coordinate interval on the surface and inside the triangular prism.

[0268] In some embodiments, based on the first side length, the emission position interval of the particles is determined as a second spatial range, and the second spatial range includes the surface of a triangular prism and the spatial coordinate interval inside the triangular prism. The triangular prism has an equilateral triangle with the first side length as its side length and a preset column height as its height; or, based on the first column height, the emission position interval of the particles is determined as a second spatial range, and the second spatial range includes the surface of a triangular prism and the spatial coordinate interval inside the triangular prism. The triangular prism has an equilateral triangle with the preset side length as its side length and the first column height as its height; or, based on the first side length and the first column height, the emission position interval of the particles is determined as a second spatial range, and the second spatial range includes the surface of a triangular prism and the spatial coordinate interval inside the triangular prism. The triangular prism has an equilateral triangle with the first side length as its side length and the first column height as its height. Here, the preset side length is a preset value, and the preset column height is a preset value.

[0269] In some embodiments, the center of the triangular prism corresponding to the second spatial range is the center of the particle generator; or, the center of the triangular prism is the origin of the local coordinate system where the particle generator is located; or, the difference between the center coordinates of the triangular prism and the center coordinates of the particle generator is a first difference; or, the difference between the center coordinates of the triangular prism and the origin coordinates of the local coordinate system is a second difference.

[0270] In some embodiments, step 623 and step 624 can be exchanged in order or executed simultaneously. Step 623 and step 625 can be implemented as independent embodiments, and step 624 and step 625 can be implemented as independent embodiments.

[0271] In summary, the method provided by the embodiments of the present application provides a setting method for setting a corresponding emission position interval when the emission shape is a triangle. The user only needs to set at least one of the side length and the column height to obtain a particle special effect with an emission position interval inside a triangular prism, making the setting of the particle special effect simpler and easier for the user to get started.

[0272] In some embodiments, the emission position control includes a cylinder parameter control. The cylinder parameter control includes at least one of a cylinder radius setting control and a cylinder column height setting control. Step 620 can be implemented as steps 626 to 628.

[0273] In some embodiments, the cylinder parameter control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user creation control.

[0274] Step 626: In response to a setting operation for the cylinder radius setting control, determine the cylinder radius;

[0275] In some embodiments, the cylinder radius setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0276] Step 627: In response to a setting operation on the cylinder height setting control, determine the cylinder height.

[0277] In some embodiments, in response to a selection operation on the cylinder parameter control, at least one of the cylinder radius setting control and the cylinder height setting control is displayed.

[0278] In some embodiments, the cylinder height setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0279] Step 628: Based on at least one of the cylinder radius and the cylinder height, determine that the emission position range of the particles is a third spatial range, and the third spatial range is the spatial coordinate range on the cylinder surface and inside the cylinder.

[0280] In some embodiments, based on the cylinder radius, determine that the emission position range of the particles is a third spatial range, and the third spatial range includes the spatial coordinate range on the cylinder surface and inside the cylinder. The cylinder has the cylinder radius as the radius of the bottom circle and a preset cylinder height as the height; or, based on the cylinder height, determine that the emission position range of the particles is a third spatial range, and the third spatial range includes the spatial coordinate range on the cylinder surface and inside the cylinder. The cylinder has a preset radius as the radius of the bottom circle and the cylinder height as the height; or, based on the cylinder radius and the cylinder height, determine that the emission position range of the particles is a third spatial range, and the third spatial range includes the spatial coordinate range on the cylinder surface and inside the cylinder. The cylinder has the cylinder radius as the radius of the bottom circle and the cylinder height as the height. Here, the preset radius is a preset value, and the preset cylinder height is a preset value.

[0281] In some embodiments, the center of the cylinder corresponding to the third spatial range is the center of the particle generator; or, the center of the cylinder is the origin of the local coordinate system where the particle generator is located; or, the difference between the center coordinates of the cylinder and the center coordinates of the particle generator is a first difference; or, the difference between the center coordinates of the cylinder and the origin coordinates of the local coordinate system is a second difference.

[0282] In some embodiments, the order of Step 626 and Step 627 can be exchanged or they can be executed simultaneously. Step 626 and Step 628 can be implemented as independent embodiments, and Step 627 and Step 628 can be implemented as independent embodiments.

[0283] In summary, the method provided by the embodiments of the present application shows a way to set the emission position range of a cylinder. The user only needs to correspondingly set at least one of the radius and the cylinder height to obtain a particle effect with an emission position range inside the cylinder, making the setting of the particle effect simpler and easier for the user to get started.

[0284] In some embodiments, the emission position control includes a custom parameter control, and the custom parameter control includes at least one of an x-axis maximum value setting control, an x-axis minimum value setting control, a y-axis maximum value setting control, a y-axis minimum value setting control, a z-axis maximum value setting control, and a z-axis minimum value setting control. Step 620 can be implemented as at least one of steps 710 to 760.

[0285] In some embodiments, the custom parameter control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0286] In some embodiments, in response to a selection operation on the custom parameter control, at least one of an x-axis maximum value setting control, an x-axis minimum value setting control, a y-axis maximum value setting control, a y-axis minimum value setting control, a z-axis maximum value setting control, and a z-axis minimum value setting control is displayed on the editor interface.

[0287] In some embodiments, the x-axis maximum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0288] In some embodiments, the x-axis minimum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0289] In some embodiments, the y-axis maximum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0290] In some embodiments, the y-axis minimum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0291] In some embodiments, the z-axis maximum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0292] In some embodiments, the z-axis minimum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0293] Step 710: In response to an attribute setting operation for the x-axis maximum value setting control, determine the maximum value of the particle's position range on the x-axis;

[0294] In some embodiments, the emission position of the particle is represented as (x, y, z). In response to an attribute setting operation for the x-axis maximum value setting control, if the maximum value of the particle's position range on the x-axis is determined to be x1, then the randomly generated x of the particle is less than or equal to x1.

[0295] Step 720: In response to an attribute setting operation for the x-axis minimum value setting control, determine the minimum value of the particle's position range on the x-axis;

[0296] In some embodiments, the emission position of the particle is represented as (x, y, z). In response to an attribute setting operation for the x-axis minimum value setting control, if the minimum value of the particle's position range on the x-axis is determined to be x2, then the randomly generated x of the particle is greater than or equal to x2.

[0297] Step 730: In response to an attribute setting operation for the y-axis maximum value setting control, determine the maximum value of the particle's position range on the y-axis;

[0298] In some embodiments, the emission position of the particle is represented as (x, y, z). In response to an attribute setting operation for the y-axis maximum value setting control, if the maximum value of the particle's position range on the y-axis is determined to be y1, then the randomly generated y of the particle is less than or equal to y1.

[0299] Step 740: In response to an attribute setting operation for the y-axis minimum value setting control, determine the minimum value of the particle's position range on the y-axis;

[0300] In some embodiments, the emission position of the particle is represented as (x, y, z). In response to an attribute setting operation for the y-axis minimum value setting control, if the minimum value of the particle's position range on the y-axis is determined to be y2, then the randomly generated y of the particle is greater than or equal to y2.

[0301] Step 750: In response to an attribute setting operation for the z-axis maximum value setting control, determine the maximum value of the particle's position range on the z-axis;

[0302] In some embodiments, the emission position of the particle is represented as (x, y, z). In response to an attribute setting operation for the z-axis maximum value setting control, if the maximum value of the particle's position range on the z-axis is determined to be z1, then the randomly generated z of the particle is less than or equal to z1.

[0303] Step 760: In response to an attribute setting operation for the z-axis minimum value setting control, determine the minimum value of the particle's z-axis position range.

[0304] In some embodiments, the emission position of the particle is represented as (x, y, z). In response to an attribute setting operation for the z-axis minimum value setting control, if the minimum value of the particle's z-axis position range is determined to be z2, then the randomly generated z of the particle is greater than or equal to z2.

[0305] In summary, the method provided by the embodiments of the present application shows a way to set a custom emission position interval. Users can customize the range of randomly generated emission position values of the particle. By setting the x, y, and z coordinates respectively, the emission position of the particle can satisfy at least one of a point, a line, a plane, or a quadrangular prism, bringing more possibilities for users to set particle special effects.

[0306] 2.3 Set the rotation angle within the parameter range interval

[0307] In some embodiments, the rotation angle is used to indicate the initial rotation angle of the particle generated by the particle generator.

[0308] In some embodiments, the rotation angle is the rotation angle relative to the preset posture of the particle. The value range of the rotation angle is [0, 360]; or, the value range of the rotation angle is [-180, 180]. Exemplarily, when the value range of the rotation angle is [0, 360] and the rotation angle of the particle is 120 degrees, the particle rotates 120 degrees clockwise or counterclockwise relative to the preset posture of the particle; or, when the value range of the rotation angle is [-180, 180] and the rotation angle of the particle is 120 degrees, the particle rotates 120 degrees clockwise or counterclockwise relative to the preset posture of the particle; when the rotation angle of the particle is -60 degrees, the particle rotates 60 degrees counterclockwise or clockwise relative to the preset posture of the particle.

[0309] In some embodiments, at least one of a rotation angle maximum value setting control and a rotation angle minimum value setting control is displayed on the editor interface.

[0310] In some embodiments, the rotation angle maximum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0311] In some embodiments, the rotation angle minimum value setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0312] In some embodiments, step 2231 may be implemented as step 810, and step 2232 may be implemented as step 820.

[0313] Step 810: In response to an attribute setting operation on the control for setting the maximum rotation angle, determine the maximum value of the rotation angle range of the particle;

[0314] In some embodiments, the minimum value of the rotation angle range is set by the user through the control for setting the minimum rotation angle; or, the minimum value of the rotation angle range is a preset value. Exemplarily, the minimum value of the rotation angle range is the preset value 0.

[0315] Step 820: In response to an attribute setting operation on the control for setting the minimum rotation angle, determine the minimum value of the rotation angle range of the particle.

[0316] In some embodiments, the maximum value of the rotation angle range is set by the user through the control for setting the maximum rotation angle; or, the maximum value of the rotation angle range is a preset value. Exemplarily, the maximum value of the rotation angle range is the preset value 0.

[0317] In some embodiments, the maximum value of the rotation angle range is greater than or equal to the minimum value of the rotation angle range.

[0318] In some embodiments, when the maximum value of the rotation angle range is equal to the minimum value of the rotation angle range, the randomly generated rotation angle value of the particle is constantly the maximum value or the minimum value of the rotation angle range.

[0319] In summary, the method provided by the embodiments of the present application determines the value range of the randomly generated rotation angle value of the particle by setting at least one of the maximum value and the minimum value of the rotation angle range. After using the above method, the user can make the particles generated by the particle generator have random initial rotation angles, so that the particle special effects include particles at different angles, making the user-defined particle special effects more abundant.

[0320] 2.4 Setting the rotation speed within the parameter range interval

[0321] In some embodiments, the rotation speed is used to indicate the rotation speed of the particles generated by the particle generator. Optionally, the rotation speed is used to indicate the angular rotation speed of the particles generated by the particle generator; or, the rotation speed is used to indicate the linear rotation speed of the particles generated by the particle generator.

[0322] In some embodiments, at least one of the control for setting the maximum rotation speed and the control for setting the minimum rotation speed is displayed on the editor interface.

[0323] In some embodiments, the maximum rotation speed setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0324] In some embodiments, the minimum rotation speed setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0325] In some embodiments, step 2231 can be implemented as step 910, and step 2232 can be implemented as step 920.

[0326] Step 910: In response to an attribute setting operation for the maximum rotation speed setting control, determine the maximum value of the rotation speed range of the particle.

[0327] In some embodiments, the minimum value of the rotation speed range is set by the user through the minimum rotation speed setting control; or, the minimum value of the rotation speed range is a preset value. Exemplarily, the minimum value of the rotation speed range is the preset value 0.

[0328] Step 920: In response to an attribute setting operation for the minimum rotation speed setting control, determine the minimum value of the rotation speed range of the particle.

[0329] In some embodiments, the maximum value of the rotation speed range is set by the user through the maximum rotation speed setting control; or, the maximum value of the rotation speed range is a preset value. Exemplarily, the maximum value of the rotation speed range is the preset value 0.

[0330] In some embodiments, the maximum value of the rotation speed range is greater than or equal to the minimum value of the rotation speed range.

[0331] In some embodiments, when the maximum value of the rotation speed range is equal to the minimum value of the rotation speed range, the randomly generated rotation angle value of the particle is constantly the maximum value or the minimum value of the rotation speed range.

[0332] In summary, the method provided by the embodiments of the present application determines the value range of the randomly generated rotation speed value of the particle by setting at least one of the maximum value and the minimum value of the rotation speed range. After using the above method, the user can make the particles generated by the particle generator have a random rotation speed, so that the particle special effects include particles that do rotational motion, making the user-defined particle special effects more diverse.

[0333] Setting method three (directly setting attribute parameter values)

[0334] Based on Figure 3In an alternative embodiment, step 220 may be implemented as step 224.

[0335] Step 224: Determine the value of the particle's attribute parameter in response to an attribute setting operation for the particle generator.

[0336] In some embodiments, the user directly determines the value of the particle's attribute parameter through an attribute setting operation. The attribute parameter corresponding to all the particles generated by the particle generator is this value of the attribute parameter.

[0337] In summary, the method provided by the embodiments of the present application shows a method for setting an attribute parameter. It is set by simply setting a numerical value, which is simple and easy to operate, enabling the user to quickly customize the particle special effects based on the attribute setting operation interface provided by the developer.

[0338] In some embodiments, the particles generated by the particle generator include at least one attribute parameter, and the attribute parameter includes at least one of a color parameter, a scaling parameter, a transparency parameter, a brightness parameter, an emission speed, an emission position, a rotation angle, a rotation speed, a cycle period, a particle texture, a generation rate, and an acceleration.

[0339] The user can use setting method three to set one or more of the above several attribute parameters. Optionally, the attribute parameters set using setting method two include at least one of a cycle period, an emission position, a particle texture, a generation rate, and an acceleration.

[0340] The following will separately introduce the setting methods for setting attribute parameters using an attribute parameter range.

[0341] 3.1 Directly setting the cycle period

[0342] In some embodiments, the cycle period is used to indicate the existence time of the particles generated by the particle generator, that is, the time from the generation to the disappearance of the particles.

[0343] In some embodiments, a cycle period setting control is displayed on the editor interface.

[0344] In some embodiments, the cycle period setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0345] In some embodiments, step 224 may be implemented as step 2241.

[0346] Step 2241: Determine the cycle period value of the particle in response to an attribute setting operation for the cycle period setting control.

[0347] In some embodiments, the cycle period value of the particles is the cycle period value of all the particles generated by the particle generator. For example, if the cycle period value of particle generator a is 5 and the cycle period value of particle generator b is 2, then the cycle period value of all the particles generated by particle generator a is 5, and the cycle period value of all the particles generated by particle generator b is 2; or, the cycle period value of the particles is the maximum cycle period value of the particles. For example, if the cycle period value of particle generator a is 5 and the cycle period range of particle generator a is (0, 5], the cycle period values of particles a1 to a5 generated by the particle generator are 2, 4, 3, 2, and 5 respectively.

[0348] In summary, the method provided by the embodiments of the present application sets the cycle period of the particles generated by the particle generator by setting the cycle period value, which is simple and easy to operate, enabling users to quickly design particles with generation-to-disappearance animations.

[0349] 3.2 Directly set the emission position

[0350] In some embodiments, in response to a trigger operation on the emission position setting entry for the particle generator, an emission position control is displayed on the editor interface. The emission position control includes at least one of a spherical parameter control, a triangular parameter control, and a cylindrical parameter control. Optionally, the emission position control further includes at least one of a pentagram parameter control, a conical parameter control, and a triangular pyramid parameter control.

[0351] In some embodiments, the emission position setting entry includes at least one of a button control, an image button control, a combo box control, and a user-created control; the emission position control includes at least one of a button control, an image button control, a text control (Text), and a user-created control.

[0352] In some embodiments, the developer of the UGC editor can set at least one preset shape, such as at least one of the above-mentioned sphere, triangle, cylinder, pentagram, cone, and triangular pyramid. Optionally, the attributes of the preset shape are fixed; or, the user can adjust the preset shape through the attribute setting interface opened by the developer.

[0353] In some embodiments, step 224 can be implemented as at least one of steps 2242 to 2244.

[0354] Step 2242: In the case where the emission position control includes a spherical parameter control, in response to a selection operation on the spherical parameter control, determine that the emission position range of the particles is the fourth spatial range, and the fourth spatial range includes the spatial coordinate range on the surface of the sphere and inside the sphere, and the sphere is a sphere with the first radius as the radius.

[0355] In some embodiments, the spherical parameter control includes at least one of a button control, an image button control, a text control, and a user-created control.

[0356] In some embodiments, the center of the sphere corresponding to the fourth spatial range is the center of the particle generator; or, the center of the sphere is the origin of the local coordinate system where the particle generator is located; or, the difference between the center coordinates of the sphere and the center coordinates of the particle generator is a first difference; or, the difference between the center coordinates of the sphere and the origin coordinates of the local coordinate system is a second difference.

[0357] In some embodiments, the first radius is a preset value. Exemplarily, if the first radius is 2 and the center coordinates are (0, 0, 0), then the fourth spatial range includes the spatial coordinate interval that satisfies the second condition, and the second condition is x 2 +y 2 +z 2 ≤2 2 .

[0358] Step 2243: When the emission position control includes a triangular parameter control, in response to a selection operation on the triangular parameter control, determine that the emission position interval of the particles is the fifth spatial range, and the fifth spatial range includes the spatial coordinate interval on and inside the surface of a triangular prism, where the triangular prism has an equilateral triangle with the second side length as the side length and the second column height as the height.

[0359] In some embodiments, the triangular parameter control includes at least one of a button control, an image button control, a text control, and a user-created control.

[0360] In some embodiments, the center of the triangular prism corresponding to the fifth spatial range is the center of the particle generator; or, the center of the triangular prism is the origin of the local coordinate system where the particle generator is located; or, the difference between the center coordinates of the triangular prism and the center coordinates of the particle generator is a first difference; or, the difference between the center coordinates of the triangular prism and the origin coordinates of the local coordinate system is a second difference.

[0361] In some embodiments, the second side length is a preset value; the second column height is a preset value.

[0362] Step 2244: When the emission position control includes a cylindrical parameter control, in response to a selection operation on the cylindrical parameter control, determine that the emission position interval of the particles is the sixth spatial range, and the sixth spatial range includes the spatial coordinate interval on and inside the surface of a cylinder, where the cylinder has the second radius as the base radius and the third column height as the height.

[0363] In some embodiments, the cylindrical parameter control includes at least one of a button control, an image button control, a text control, and a user-created control.

[0364] In some embodiments, the center of the cylinder corresponding to the sixth spatial range is the center of the particle generator; or, the center of the cylinder is the origin of the local coordinate system where the particle generator is located; or, the difference between the center coordinates of the cylinder and the center coordinates of the particle generator is a first difference; or, the difference between the center coordinates of the cylinder and the origin coordinates of the local coordinate system is a second difference.

[0365] In some embodiments, the third side length is a preset value; the third cylinder height is a preset value.

[0366] In summary, the method provided by the embodiments of the present application shows a setting method for the emission position. The graphics corresponding to the emission position are all preset graphics, and their parameters are all designed by the developer of the UGC editor. The user only needs to select the graphic they want to use, making the setting of the particle special effect simpler and easier for the user to get started.

[0367] 3.3 Directly set the particle texture

[0368] In some embodiments, the particle texture is used to indicate the texture of the particles generated by the particle generator. The texture can be understood as the display effect of the particles in the virtual environment. Exemplarily, if the texture is a pentagram image, the particles generated by the particle generator are pentagrams; if the texture is a leaf image, the particles generated by the particle generator are leaves.

[0369] In some embodiments, a particle texture selection area is displayed on the editor interface. The particle texture selection area includes at least one particle texture control, and different particle texture controls correspond to different particle textures.

[0370] In some embodiments, the particle texture control includes at least one of a button control, an image button control, a text control, and a user-created control.

[0371] In some embodiments, step 224 can be implemented as step 2245.

[0372] Step 2245: Determine the particle texture of the particle in response to a selection operation on the particle texture control.

[0373] In some embodiments, as Figure 7 shown, the particle texture area 6 displays at least one particle texture control 7. Different particle texture controls correspond to different particle textures. The user can change the particle texture of the particle to the particle texture corresponding to the particle texture control by triggering the particle texture control.

[0374] In some embodiments, in response to a trigger operation on the particle texture selection area, at least one particle texture control displayed in the particle selection area is changed. Exemplarily, in response to a sliding operation on the particle texture selection area, at least one particle texture control displayed in the particle selection area is changed.

[0375] In some embodiments, the particle texture map is a preset texture map; or, the particle texture map is a texture map added by the user.

[0376] In summary, the method provided by the embodiments of the present application sets the particle texture map of the particle by triggering the particle texture map control, which is simple and easy to operate, enabling the user to quickly design particles with different particle texture maps.

[0377] 3.4 Directly setting the generation rate

[0378] In some embodiments, the generation rate is used to indicate the number of particles generated by the particle generator within the first unit of time.

[0379] In some embodiments, a generation rate setting control is displayed on the editor interface.

[0380] In some embodiments, the generation rate setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0381] In some embodiments, step 224 can be implemented as step 2246.

[0382] Step 2246: Determine the generation rate of the particle in response to an attribute setting operation on the generation rate setting control.

[0383] In some embodiments, the generation rate is used to indicate the number of particles generated by the particle generator within the first unit of time, and the first unit of time is a preset value; or, the first unit of time is a value set by the user.

[0384] Exemplarily, the first unit of time is 1 second, and the generation rate is used to indicate the number of particles generated by the particle generator within 1 second; or, the first unit of time is a value of 20 seconds set by the user, and the generation rate is used to indicate the number of particles generated by the particle generator within 20 seconds.

[0385] In summary, the method provided by the embodiments of the present application sets the generation rate of the particle, and the generation rate is used to indicate the number of particles generated within the first unit of time. This setting method is simple and easy to operate, enabling the user to quickly design the rate at which the particle generator generates particles, thereby designing various different particle effects.

[0386] 3.5 Directly setting the acceleration

[0387] In some embodiments, the acceleration is used to indicate the acceleration of the particles of the particle generator. The acceleration includes at least one of an x-axis acceleration, a y-axis acceleration, and a z-axis acceleration.

[0388] In some embodiments, when the x-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the x-axis; when the x-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the x-axis; when the y-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the y-axis; when the y-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the y-axis; when the z-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the z-axis; when the z-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the z-axis.

[0389] In some embodiments, step 224 may be implemented as at least one of steps 2247 to 2249.

[0390] Step 2247: Determine the x-axis acceleration value of the particle in response to an attribute setting operation for the x-axis acceleration setting control.

[0391] In some embodiments, the x-axis acceleration setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control. Exemplarily, when the x-axis launch velocity of the particle is positive and the x-axis acceleration is positive, the particle accelerates in the positive half-axis direction of the x-axis; when the x-axis launch velocity of the particle is positive and the x-axis acceleration is negative, the particle decelerates in the positive half-axis direction of the x-axis. When the velocity decreases to 0, the particle stops moving, or continues to calculate the particle velocity to obtain a negative particle velocity and accelerates in the negative half-axis direction of the x-axis; when the x-axis launch velocity of the particle is negative and the x-axis acceleration is negative, the particle accelerates in the negative half-axis direction of the x-axis; when the x-axis launch velocity of the particle is negative and the x-axis acceleration is positive, the particle decelerates in the negative half-axis direction of the x-axis. When the velocity decreases to 0, the particle stops moving, or continues to calculate the particle velocity to obtain a positive particle velocity and accelerates in the positive half-axis direction of the x-axis.

[0392] Step 2248: Determine the y-axis acceleration value of the particle in response to an attribute setting operation for the y-axis acceleration setting control.

[0393] In some embodiments, the y-axis acceleration setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0394] Exemplarily, when the particle's y-axis emission velocity is positive and the y-axis acceleration is positive, the particle accelerates along the positive y-axis; when the particle's y-axis emission velocity is positive and the y-axis acceleration is negative, the particle decelerates along the positive y-axis. When the velocity reduces to 0, the particle stops moving, or, continue to calculate the particle velocity to obtain a negative particle velocity and the particle accelerates along the negative y-axis; when the particle's y-axis emission velocity is negative and the y-axis acceleration is negative, the particle accelerates along the negative y-axis; when the particle's y-axis emission velocity is negative and the y-axis acceleration is positive, the particle decelerates along the negative y-axis. When the velocity reduces to 0, the particle stops moving, or, continue to calculate the particle velocity to obtain a positive particle velocity and the particle accelerates along the positive y-axis.

[0395] Step 2249: In response to an attribute setting operation on the z-axis acceleration setting control, determine the z-axis acceleration value of the particle.

[0396] In some embodiments, the z-axis acceleration setting control includes at least one of a button control, an image button control, a drag bar control, a progress bar control, a slider control, a text box control, a digital display box control, and a user-created control.

[0397] Exemplarily, when the particle's z-axis emission velocity is positive and the z-axis acceleration is positive, the particle accelerates along the positive z-axis; when the particle's z-axis emission velocity is positive and the z-axis acceleration is negative, the particle decelerates along the positive z-axis. When the velocity reduces to 0, the particle stops moving, or, continue to calculate the particle velocity to obtain a negative particle velocity and the particle accelerates along the negative z-axis; when the particle's z-axis emission velocity is negative and the z-axis acceleration is negative, the particle accelerates along the negative z-axis; when the particle's z-axis emission velocity is negative and the z-axis acceleration is positive, the particle decelerates along the negative z-axis. When the velocity reduces to 0, the particle stops moving, or, continue to calculate the particle velocity to obtain a positive particle velocity and the particle accelerates along the positive z-axis.

[0398] In summary, the method provided by the embodiments of the present application shows a method for setting the acceleration of particles. This method is simple and easy to use. After setting the acceleration, users can customize and design particle effects with various movement trajectories and movement speeds, making the particle effects that users can design more diverse.

[0399] In some embodiments, the editor interface includes a preview area and an editing area. The preview area is used to preview the particles generated by the particle generator, and the editing area is used to set the attribute parameters of the particle generator.

[0400] In some embodiments, step 230 can be implemented as step 231.

[0401] Step 231: In response to an attribute setting operation on the particle generator in the editing area, display, in the preview area, the particle special effects generated by the particle generator based on the attribute parameters.

[0402] In some embodiments, the preview area is used to preview the virtual environment screen of the particles generated by the particle generator in the virtual environment. The virtual environment screen is the screen obtained by collecting the three-dimensional virtual environment through the camera model. The user can control the camera model through the interactive operation on the touch screen to change the display effect of the virtual environment screen. Or, the preview area is used to preview the virtual screen of the particles generated by the particle generator. The virtual screen is the screen obtained by collecting the three-dimensional virtual environment through the camera model. The three-dimensional virtual environment includes the particle generator. The user can control the camera model through the interactive operation on the touch screen to change the display effect of the virtual screen.

[0403] In some embodiments, the particles generated by the particle generator include at least one attribute parameter, and the attribute parameter includes at least one of a color parameter, a scaling parameter, a transparency parameter, a brightness parameter, an emission speed, an emission position, a rotation angle, a rotation speed, a cycle period, a particle texture map, a generation rate, and an acceleration.

[0404] Next, the information of the particle special effects generated by the particle generator based on the attribute parameters displayed in the preview area after the user performs attribute setting operations on different attribute parameters in the editing area will be introduced separately.

[0405] 4.1 Generating Particle Special Effects Based on Color Parameters

[0406] In some embodiments, in response to a color parameter setting operation on the particle generator in the editing area, display, in the preview area, the particle special effects generated by the particle generator based on the color parameters. The color parameter includes at least two color keyframe controls, and different color keyframe controls correspond to the same or different color values. The particle special effects include an animation in which the color of the particles gradually changes or mutates between the color values corresponding to at least two color keyframe controls.

[0407] In some embodiments, as Figure 8 shown, the editor interface 10 includes a preview area 80 and an editing area 81. The preview area 80 includes a particle generator 82. The editing area 81 includes at least two color keyframe controls 83. In response to a parameter setting operation for setting the color parameter of the particle generator based on the color keyframe controls, display, in the preview area 80, an animation of the particle special effects generated by the particle generator. The particle special effects include an animation in which the particles gradually change or mutate according to the color values corresponding to at least two color keyframe controls 83 within the cycle period.

[0408] 4.2 Generating Particle Special Effects Based on Scaling Parameters

[0409] In some embodiments, in response to an operation of setting a scaling parameter for a particle generator in an editing area, a particle generator generates a particle special effect based on the scaling parameter and displays it in a preview area. The scaling parameter includes at least two scaling keyframe controls, and different scaling keyframe controls correspond to the same or different scaling parameter values. The particle special effect includes an animation in which the scaling degree of the particles gradually changes or mutates between the scaling parameter values corresponding to at least two scaling keyframe controls.

[0410] In some embodiments, as Figure 9 shown, an editor interface 10 includes a preview area 80 and an editing area 81. The preview area 80 includes a particle generator 82. The editing area 81 includes at least two scaling keyframe controls 84. In response to a parameter setting operation for setting a scaling parameter for the particle generator based on the scaling keyframe controls, the particle generator generates a particle special effect and displays it in the preview area. The particle special effect includes an animation in which the size of the particles gradually changes or mutates between the scaling parameter values corresponding to at least two color keyframe controls 83 within a cycle period.

[0411] 4.3 Generating Particle Special Effects Based on Transparency Parameters

[0412] In some embodiments, in response to an operation of setting a transparency parameter for a particle generator in an editing area, a particle generator generates a particle special effect based on the transparency parameter and displays it in a preview area. The transparency parameter includes at least two transparency keyframe controls, and different transparency keyframe controls correspond to the same or different transparency parameter values. The particle special effect includes an animation in which the transparency degree of the particles gradually changes or mutates between the transparency parameter values corresponding to at least two transparency keyframe controls.

[0413] In some embodiments, the transparency parameter is used to indicate the transparency degree of the particles generated by the particle generator within a cycle period. The value range of the transparency parameter is from 0 to 1. When the transparency is 0, the particles are displayed as completely opaque, and when the transparency is 1, the particles are displayed as completely transparent.

[0414] 4.4 Generating Particle Special Effects Based on Brightness Parameters

[0415] In some embodiments, in response to an operation of setting a brightness parameter for a particle generator in an editing area, a particle generator generates a particle special effect based on the brightness parameter and displays it in a preview area. The brightness parameter includes at least two brightness keyframe controls, and different brightness keyframe controls correspond to the same or different brightness parameter values. The particle special effect includes an animation in which the light and dark degree of the particles gradually changes or mutates between the brightness parameter values corresponding to at least two brightness keyframe controls.

[0416] In some embodiments, the brightness parameter is used to indicate the brightness and darkness of the particles generated by the particle generator during the cycle period. The value of the brightness parameter can be negative. When the absolute value of the brightness parameter value is a larger negative value, the particles appear darker, that is, closer to black; when the brightness parameter value is 0, no additional brightness is added to the particles, and the particle color is directly displayed; when the brightness parameter is a larger positive value, the particles appear brighter.

[0417] In some embodiments, the upper limit of the brightness parameter is a preset value. Exemplarily, the upper limit of the brightness parameter is 10.

[0418] In some embodiments, the lower limit of the brightness parameter is a preset value. Exemplarily, the upper limit of the brightness parameter is -10.

[0419] 4.5 Generating Particle Special Effects Based on Emission Speed

[0420] In some embodiments, the emission speed is used to indicate the initial movement speed of the particles generated by the particle generator. The emission speed includes at least one of the x-axis emission speed, the y-axis emission speed, and the z-axis emission speed.

[0421] In some embodiments, at least one of the x-axis emission speed maximum value setting control, the y-axis emission speed maximum value setting control, the z-axis emission speed maximum value setting control, the x-axis emission speed minimum value setting control, the y-axis emission speed minimum value setting control, and the z-axis emission speed minimum value setting control is displayed in the editing area.

[0422] In some embodiments, as Figure 6 shown, the x-axis emission speed maximum value setting control, the y-axis emission speed maximum value setting control, the z-axis emission speed maximum value setting control, the x-axis emission speed minimum value setting control, and the y-axis emission speed minimum value setting control are displayed in the editing area. Each control corresponds to two operation methods, one is an input box, and the other is a slider. In response to the triggering operation on the input box, a digital input box is displayed to determine the parameter range; in response to the dragging operation on the slider, the parameter range is determined. Optionally, the attribute parameter values corresponding to the input box and the slider are the same, that is, when the slider is adjusted, the number displayed in the input box changes; when a number is entered in the input box, the progress of the slider changes.

[0423] In some embodiments, in response to the x-axis emission speed setting operation for the particle generator in the editing area, the particle generator generates particle special effects based on the x-axis emission speed in the preview area. The x-axis emission speed includes at least one of the x-axis emission speed maximum value and the x-axis emission speed minimum value. The particle special effects include that the initial emission speed of the particles in the x-axis direction is a random value in the x-axis emission speed range, and the x-axis emission speed range is determined based on at least one of the x-axis emission speed minimum value and the x-axis emission speed maximum value.

[0424] In some embodiments, in response to an operation of setting the y-axis emission speed of a particle generator in an editing area, a particle effect generated by the particle generator based on the y-axis emission speed is displayed in a preview area. The y-axis emission speed includes at least one of a maximum y-axis emission speed and a minimum y-axis emission speed. The particle effect includes that the initial emission speed of the particle in the y-axis direction is a random value within a y-axis emission speed range, and the y-axis emission speed range is determined based on at least one of the minimum y-axis emission speed and the maximum y-axis emission speed.

[0425] In some embodiments, in response to an operation of setting the z-axis emission speed of a particle generator in an editing area, a particle effect generated by the particle generator based on the z-axis emission speed is displayed in a preview area. The z-axis emission speed includes at least one of a maximum z-axis emission speed and a minimum z-axis emission speed. The particle effect includes that the initial emission speed of the particle in the z-axis direction is a random value within a z-axis emission speed range, and the z-axis emission speed range is determined based on at least one of the minimum z-axis emission speed and the maximum z-axis emission speed.

[0426] In some embodiments, when the x-axis emission speed of a particle is positive, the particle moves in the positive x-axis direction; when the x-axis emission speed of the particle is negative, the particle moves in the negative x-axis direction; when the y-axis emission speed of the particle is positive, the particle moves in the positive y-axis direction; when the y-axis emission speed of the particle is negative, the particle moves in the negative y-axis direction; when the z-axis emission speed of the particle is positive, the particle moves in the positive z-axis direction; when the z-axis emission speed of the particle is negative, the particle moves in the negative z-axis direction.

[0427] 4.6 Generating Particle Effects Based on Emission Positions

[0428] In some embodiments, the emission position is used to indicate the initial position of the particles generated by the particle generator.

[0429] In some embodiments, the manifestation form of the particle emission position is in coordinate form. Exemplarily, the emission position of the particle is (12, 31, 13); or, the emission position of the particle is (-12, 11, 0). Optionally, the coordinate is a coordinate in a world coordinate system; or, the coordinate is a coordinate in a local coordinate system. The world coordinate system is a three-dimensional rectangular coordinate system formed based on the origin of the virtual environment; the local coordinate system is a three-dimensional rectangular coordinate system relative to the particle generator. Exemplarily, the local coordinate system is a three-dimensional rectangular coordinate system with the center of the particle generator as the origin.

[0430] In some embodiments, in response to an operation of setting an emission position of a particle generator in an editing area, a particle special effect generated by the particle generator based on the emission position is displayed in a preview area, where the emission position includes at least one of a spherical emission position, a triangular emission position, a cylindrical emission position, and a custom emission position, different emission positions correspond to different emission position intervals, and the particle special effect includes particles located in the emission position intervals.

[0431] 4.7 Generating Particle Special Effects Based on Rotation Angle

[0432] In some embodiments, the rotation angle is used to indicate the initial rotation angle of the particles generated by the particle generator.

[0433] In some embodiments, the rotation angle is the rotation angle relative to the preset posture of the particles. The value range of the rotation angle is [0, 360]; or, the value range of the rotation angle is [-180, 180]. Exemplarily, when the value range of the rotation angle is [0, 360] and the rotation angle of the particle is 120 degrees, the particle rotates 120 degrees clockwise or counterclockwise relative to the preset posture of the particle; or, when the value range of the rotation angle is [-180, 180] and the rotation angle of the particle is 120 degrees, the particle rotates 120 degrees clockwise or counterclockwise relative to the preset posture of the particle; when the rotation angle of the particle is -60 degrees, the particle rotates 60 degrees counterclockwise or clockwise relative to the preset posture of the particle.

[0434] In some embodiments, at least one of a rotation angle maximum value setting control and a rotation angle minimum value setting control is displayed in the editing area.

[0435] In some embodiments, in response to an operation of setting the rotation angle of the particle generator in the editing area, a particle special effect generated by the particle generator based on the rotation angle is displayed in the preview area, where the rotation angle includes at least one of a rotation angle maximum value and a rotation angle minimum value;

[0436] wherein, the particle special effect includes that the rotation angle of the particle is a random value in a rotation angle interval, and the rotation angle interval is determined based on at least one of the rotation angle minimum value and the rotation angle maximum value.

[0437] 4.8 Generating Particle Special Effects Based on Rotation Speed

[0438] In some embodiments, the rotation speed is used to indicate the rotation speed of the particles generated by the particle generator. Optionally, the rotation speed is used to indicate the angular rotation speed of the particles generated by the particle generator; or, the rotation speed is used to indicate the linear rotation speed of the particles generated by the particle generator.

[0439] In some embodiments, at least one of a rotation speed maximum value setting control and a rotation speed minimum value setting control is displayed in the editing area.

[0440] In some embodiments, in response to an operation of setting the rotation speed of a particle generator in an editing area, a particle special effect generated by the particle generator based on the rotation speed is displayed in a preview area, where the rotation speed includes at least one of a maximum rotation speed and a minimum rotation speed;

[0441] Wherein, the particle special effect includes that the rotation speed of the particle is a random value in a rotation speed range, and the rotation speed range is determined based on at least one of the minimum rotation speed and the maximum rotation speed.

[0442] 4.9 Generating Particle Special Effects Based on a Cycle Period

[0443] In some embodiments, the cycle period is used to indicate the existence time of the particles generated by the particle generator, that is, the time from the generation to the disappearance of the particles.

[0444] In some embodiments, in response to an operation of setting the cycle period of a particle generator in an editing area, a particle special effect generated by the particle generator based on the cycle period is displayed in a preview area.

[0445] In some embodiments, the cycle period value of the particles is the cycle period value of all the particles generated by the particle generator. For example, if the cycle period value of particle generator a is 5 and the cycle period value of particle generator b is 2, then the cycle period value of all the particles generated by particle generator a is 5, and the cycle period value of all the particles generated by particle generator b is 2; or, the cycle period value of the particles is the maximum cycle period value of the particles. For example, if the cycle period value of particle generator a is 5 and the cycle period range of particle generator a is (0, 5], the cycle period values of particles a1 to a5 generated by the particle generator are 2, 4, 3, 2, and 5 respectively.

[0446] 4.10 Generating Particle Special Effects Based on Particle Textures

[0447] In some embodiments, in response to an operation of setting a particle texture of a particle generator in an editing area, a particle special effect generated by the particle generator based on the particle texture is displayed in a preview area.

[0448] In some embodiments, the texture can be understood as the display effect of the particles in a virtual environment. Exemplarily, if the texture is a pentagram image, the particles generated by the particle generator are pentagrams; if the texture is a leaf image, the particles generated by the particle generator are leaves.

[0449] In some embodiments, a particle texture selection area is displayed in the editing area, and the particle texture selection area includes at least one particle texture control, and different particle texture controls correspond to different particle textures.

[0450] 4.11 Generating Particle Special Effects Based on a Generation Rate

[0451] In some embodiments, in response to an operation of setting the generation rate of a particle generator in an editing area, a particle special effect generated by the particle generator based on the generation rate is displayed in a preview area. The particle special effect includes the particle generator generating a first number of particles in a second unit time, and the generation rate is positively correlated with the first number.

[0452] In some embodiments, the generation rate is positively correlated with the first number. Exemplarily, in the first frame when the particle generator generates particles, one particle is generated; in the nth frame when the particle generator generates particles, a first number of particles are generated in a second unit time based on the generation rate.

[0453] 4.12 Generating Particle Special Effects Based on Acceleration

[0454] In some embodiments, acceleration is used to indicate the acceleration of the particles of a particle generator. The acceleration includes at least one of an x-axis acceleration, a y-axis acceleration, and a z-axis acceleration.

[0455] In some embodiments, when the x-axis acceleration of a particle is positive, the acceleration direction is the positive half-axis direction of the x-axis; when the x-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the x-axis; when the y-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the y-axis; when the y-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the y-axis; when the z-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the z-axis; when the z-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the z-axis.

[0456] In some embodiments, in response to an operation of setting the x-axis acceleration of a particle generator in an editing area, a particle special effect generated by the particle generator based on the x-axis acceleration is displayed in a preview area.

[0457] In some embodiments, in response to an operation of setting the y-axis acceleration of a particle generator in an editing area, a particle special effect generated by the particle generator based on the y-axis acceleration is displayed in a preview area.

[0458] In some embodiments, in response to an operation of setting the z-axis acceleration of a particle generator in an editing area, a particle special effect generated by the particle generator based on the z-axis acceleration is displayed in a preview area.

[0459] Exemplarily, when the particle's emission velocity along the x-axis is positive and the acceleration along the x-axis is positive, the particle moves with acceleration along the positive half-axis of the x-axis; when the particle's emission velocity along the x-axis is positive and the acceleration along the x-axis is negative, the particle moves with deceleration along the positive half-axis of the x-axis. When the velocity reduces to 0, the particle stops moving, or, the particle velocity is continuously calculated to obtain a negative particle velocity, and the particle moves with acceleration along the negative half-axis of the x-axis; when the particle's emission velocity along the x-axis is negative and the acceleration along the x-axis is negative, the particle moves with acceleration along the negative half-axis of the x-axis; when the particle's emission velocity along the x-axis is negative and the acceleration along the x-axis is positive, the particle moves with deceleration along the negative half-axis of the x-axis. When the velocity reduces to 0, the particle stops moving, or, the particle velocity is continuously calculated to obtain a positive particle velocity, and the particle moves with acceleration along the positive half-axis of the x-axis.

[0460] Exemplarily, when the particle's emission velocity along the x-axis is positive, the emission velocities along the y-axis and z-axis are both 0, the acceleration along the y-axis is positive, and the accelerations along the x-axis and z-axis are 0, the final motion trajectory of the particle is a curvilinear motion in the direction of the positive half-axis of the x-axis, and the curvature of this curve is positively correlated with the magnitude of the acceleration.

[0461] In some embodiments, the particle generator includes a base, and the base is used to identify the particle generator. As Figure 10 shown in the schematic diagram (3), the base 85 of the particle generator will be hidden in the playing interface of the UGC editor. As Figure 10 shown in the schematic diagrams (1) and (2), it will be displayed in the editor interface of the UGC editor.

[0462] Since in the UGC editor, users usually add at least one particle generator. In order to identify different particle generators, different particle generators can be distinguished by setting the base color.

[0463] In some alternative embodiments, the method further includes step 240.

[0464] Step 240: In response to an operation of setting the base color of the particle generator, set the base color of the particle generator. The base of the particle generator is used to indicate at least one of the position and angle of the particle generator in the virtual environment in the editor interface.

[0465] In some embodiments, the base of the particle generator is a simple graphic; or, the base is a graphic set by the user. Exemplarily, the base is a cuboid.

[0466] In some embodiments, the center of the base coincides with the center of the particle generator. The base will change its position as the particle generator moves, change its angle as the particle generator rotates, and change its size as the particle generator scales.

[0467] In some embodiments, the base color includes a base background color and a base top color, and step 240 can be implemented as step 241 or step 242.

[0468] In some embodiments, in response to a trigger operation on the base color setting entry for the particle generator, at least one of a base background color control, a base top color control, a base color selection tab page, and a base color selection operation control is displayed on the editor interface.

[0469] In some embodiments, the base color setting entry includes at least one of a button control, an image button control, a combo box control, and a user-created control; the base background color control includes at least one of a button control, an image button control, and a user-created control; the base top color control includes at least one of a button control, an image button control, and a user-created control; the base color selection tab page includes at least one of a tab layout control and a user-created control; the base color selection operation control includes at least one of a button control, an image button control, an image control, and an image view.

[0470] Step 241: When the base background color control is in a selected state, in response to a trigger operation on the base color selection operation control, determine that the base background color of the particle generator is the color value selected in the base color selection operation control.

[0471] Wherein, the base color selection tab page is used to indicate the color selection method; the base color selection tab page includes at least one of a color palette tab page, a color mixer tab page, and a history tab page; different base color selection tab pages correspond to different base color selection operation controls; the color palette tab page corresponds to a color palette color selection control; the color mixer tab page corresponds to a color mixer color selection control; the history tab page corresponds to a history color selection control; the base color selection operation control is used to select a color from at least one candidate color.

[0472] Step 242: When the base top color control is in a selected state, in response to a trigger operation on the second color selection operation control, determine that the base top color of the particle generator is the color value selected in the base color selection operation control.

[0473] In some embodiments, the method of setting the base background color and the base top color is similar to that of setting the particle color using the keyframe control in 1.1 above, and will not be elaborated here.

[0474] In some embodiments, the editor interface includes a preview area and an editing area. The preview area is used to preview the particles generated by the particle generator, and the editing area is used to set the attribute parameters of the particle generator.

[0475] In some embodiments, in response to an operation for setting the base color of the particle editor in the editing area, the set base color of the particle generator is displayed in the preview area. The base color includes a gradient color that gradually changes from the base bottom color to the base top color from bottom to top, or a gradient color that gradually changes from the base top color to the base bottom color from top to bottom.

[0476] In summary, the method provided by the embodiments of the present application sets the color for the base of the particle generator, so as to be able to identify multiple particle generators in the virtual environment on the editor interface, which is more convenient for the user to select different particle generators.

[0477] In some embodiments, the method further includes step 250 or step 260.

[0478] Step 250: In response to a selection operation on the particle generator, set the particle generator to the selected state, and add an indication box to the particle generator. The indication box is used to indicate the selected state.

[0479] In some embodiments, as Figure 10 shown in the schematic diagram (1), in response to a selection operation on the particle generator, set the particle generator to the selected state, and add an indication box 86 to the particle generator. The indication box 86 is used to indicate that the particle generator is in the selected state.

[0480] Step 260: In response to an editing operation on the particle generator, keep the particle generator in the selected state, and hide the indication box.

[0481] In some embodiments, as Figure 10 shown in the schematic diagram (2), in response to an editing operation on the particle generator, keep the particle generator in the selected state, and hide the indication box 86.

[0482] In summary, the method provided by the embodiments of the present application can display an indication box when the user selects a particle generator, indicating that the user has selected the particle generator; when the user edits the particle generator, the indication box is hidden, enabling the user to more conveniently observe the impact of the editing operation on the particles generated by the particle generator, and making it more convenient for the user to perform fine editing on the particles.

[0483] In some embodiments, the method further includes step 270.

[0484] Step 270: In response to an operation for setting the trigger signal of the particle generator, set the trigger signal of the particle generator.

[0485] Among them, the trigger signal includes at least one of an automatically generated signal, an open signal, and a close signal; the automatically generated signal is used to instruct the particle generator to automatically generate particles; the open signal is used to instruct the particle generator to start generating particles based on the open signal; the close signal is used to instruct the particle generator to stop generating particles based on the close signal.

[0486] In some embodiments, the particle generator is set not to play automatically, that is, the automatically generated signal is not set, and an open signal is set for the particle generator, so that the particle generator can generate particles only when the open signal is triggered; or, the particle generator is set not to play automatically, that is, the automatically generated signal is not set, and an open signal and a close signal are set for the particle generator, so that whether particles are generated can be freely controlled by triggering the open signal and the close signal of the particle generator; or, the particle generator is set to play automatically, that is, an automatically generated signal is set for the particle generator, and a close signal is set for the particle generator, so that when the close signal is triggered, the generation of particles stops.

[0487] In some embodiments, the trigger signal of the particle generator is bound to a signal trigger or a signal trigger control.

[0488] In some embodiments, the signal trigger is displayed in the virtual environment, or the signal trigger control is displayed in the editor interface.

[0489] In some embodiments, the signal trigger control includes at least one of a button control, an image button control, and a user-created control.

[0490] In some embodiments, a signal trigger is set for the particle generator in the virtual environment. In response to the signal trigger receiving a first trigger signal, the particle generator is controlled to generate particles. Exemplarily, the first trigger signal corresponds to the open signal of the particle generator, and the particle generator is controlled to start generating particles; or, the first trigger signal corresponds to the close signal of the particle generator, and the particle generator is controlled to stop generating particles.

[0491] In some embodiments, a signal trigger control is displayed in the editor interface. In response to the signal trigger control receiving a second trigger signal, the particle generator is controlled to generate particles. Exemplarily, the second trigger signal corresponds to the open signal of the particle generator, and the particle generator is controlled to start generating particles; or, the second trigger signal corresponds to the close signal of the particle generator, and the particle generator is controlled to stop generating particles.

[0492] In some embodiments, the signal trigger and the signal trigger control can be used simultaneously. Exemplarily, the first trigger signal corresponds to the open signal of the particle generator, and the particle generator is controlled to start generating particles; the second trigger signal corresponds to the close signal of the particle generator, and the particle generator is controlled to stop generating particles.

[0493] In summary, the method provided by the embodiments of the present application can set a trigger signal for the particle generator to control whether the particle generator generates particles. Only when the trigger signal is satisfied, the generation or stop of particles is performed, enabling the user to independently control whether the particle special effect is generated and increasing the freedom of generating the particle special effect.

[0494] In some embodiments, the method further includes step 280.

[0495] Step 280: Set the motion mode of the particle generator in response to a motion control operation for the particle generator;

[0496] Among them, the motion mode of the particle generator includes one of a full - scale motion mode, a one - way displacement mode, a reciprocating displacement, a one - way rotation mode, a swinging motion mode, and a waypoint motion mode.

[0497] Different motion modes correspond to different motion attributes. Optionally, the motion attributes include at least one of a motion start signal, a motion stop signal, a motion return signal, and a motion cycle form. After receiving the motion start signal, the motion unit switches to the active state. If the activation signal is empty, the motion unit is default in the active state after the game starts, otherwise it is in the paused state; after receiving the motion stop signal, the motion unit switches to the paused state, and the time calculation of the life cycle is not included in the paused state; the motion return signal is only allowed to be configured in the one - way motion mode, and reverse motion is activated after receiving the signal.

[0498] Among them, the waypoint motion mode is used to indicate that the virtual object moves along a motion path formed by at least two waypoints. The positions, rotations, and scalings of at least two waypoints are the same or different. The waypoint is used to indicate at least one of the position, rotation, and scaling of the virtual object when the virtual object moves to this waypoint; the one - way displacement mode is used to indicate a single - time uniform motion on a straight line and stops after the motion ends. The user can set the motion duration of the single - time motion, etc., to control the single - time motion; the reciprocating displacement is used to indicate a uniform round - trip motion on the same straight line; the one - way rotation mode is used to indicate that the virtual object performs a uniform rotation motion with an unchanged axis, and the axis is the center of the virtual object; the swinging motion mode is used to indicate a rotational swing with an unchanged axis, such as a pendulum, etc.; the full - scale motion mode is used to indicate motion according to the motion logic. In the full - scale motion mode, all motion performances can be achieved through settings, such as at least one of the above - mentioned one - way displacement mode, reciprocating displacement, one - way rotation mode, and swinging motion mode. The full - scale motion mode can also set variable - speed motion, etc.

[0499] In summary, the method provided by the embodiments of the present application can add motion control to the particle generator, and only simple graphical operations are required when adding motion control, enabling the particle generator to move in the virtual environment, thereby making the final particle special effects richer.

[0500] In order to more clearly understand the various display modes and operation modes of the embodiments of the present application, the following will be described in detail with reference to the schematic diagrams.

[0501] · The particle generator in the virtual environment displayed on the editor interface of the UGC editor

[0502] The particle generator is a component in the UGC editor. The particle generator can generate particles in the virtual environment, and through the particles, effects such as dust, sparks, smoke, raindrops, etc. can be simulated. Using the particle generator can add special effects to the virtual environment.

[0503] Figure 11 The figure shows a schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application.

[0504] The UGC editor includes an editor interface 10 and a gameplay interface. The editor interface 10 includes at least one of a virtual environment screen 11 and a control display area 12. The virtual environment screen 11 displays a particle generator 13 located in the virtual environment.

[0505] Among them, the virtual environment screen 11 is a screen obtained by collecting the three-dimensional virtual environment through a camera model. The user can control the camera model through interactive operations on the touch screen to change the display effect of the virtual environment screen 10; the control display area 12 is used to display the controls for editing the particle generator, including at least one of a movement control, a rotation control, a scaling control, a mirror control, a deletion control, and an editing control.

[0506] When the user selects the particle generator 13 through the editor interface 10, a details area 14 will be displayed in the right area of the editor interface 10; or, when the user selects the particle generator 13 and clicks on the editing control in the control display area 12, a details area 14 will be displayed in the right area of the editor interface 10. The user makes the details area 14 display an appearance area 16 through a click operation on the appearance editing control 15 in the details area 14.

[0507] The editor interface 10 also includes a details collapse control. Based on the user's click operation on the details collapse control, the details area 14 can be hidden from the editor interface 10.

[0508] When the particle generator 13 is selected, such as Figure 10As shown in the schematic diagram (1), the particle generator 13 is in the selected state, and the particle generator 13 has an indication box 17; when the user performs an editing operation on the particle generator 13, the particle generator 13 is in the selected state, but the indication box 17 is hidden, as Figure 10 shown in the schematic diagram (2).

[0509] · Edit the particle generator

[0510] 1. Set the base color

[0511] The base 18 of the particle generator is used to identify the particle generator. As Figure 10 shown in the schematic diagram (3), the base 18 of the particle generator will be hidden in the playing interface of the UGC editor and will be displayed in the editor interface 10 of the UGC editor.

[0512] The user can change the display form of the base of the particle generator in the skin setting area 19 of the appearance area 16. For example, change the color of the base 18. After the user clicks on the base color setting entry 20, the base color setting area 21 will be entered. The user can set different base colors for different particle generators through the base color setting area 21, so as to more conveniently and quickly distinguish different particle generators.

[0513] Among them, the user can set two colors for the particle generator, namely the base bottom color and the base top color. The base color shown in the editor interface 10 gradually transitions from the base bottom color to the base top color from bottom to top. In the base color setting entry 20, there are respectively displayed a base bottom color display control and a base top color display control.

[0514] As Figure 12As shown in the figure, the base color setting area 21 includes at least one of a base background color control 22, a base top color control 23, a color palette tab page 24, a color mixing palette tab page 25, a history tab page 26, a color selection operation control 27, a color storage area 28, and a color confirmation area 29. When the user triggers the base background color display control to enter the base color setting area 21, the base background color control 22 is in a selected state, that is, the color selection operation is performed on the base background color; when the user triggers the base top color display control to enter the base color setting area 21, the base top color control 23 is in a selected state, that is, the color selection operation is performed on the base top color. There are three color selection methods, each corresponding to a different tab page. The color storage area 28 includes a color storage control. When the color selection operation control is in a selected state, triggering the color storage control can store the color corresponding to the selected color selection operation control in the color storage area 28. The user can also determine whether to use the candidate color in the color confirmation area 29. After clicking the color confirmation control in the color confirmation area 29, the corresponding background color or top color of the base is modified to the currently selected color, and the base color setting area 21 is exited or the user still stays in the base color setting area 21.

[0515] As Figure 12 shown, the color palette tab page 24 includes 12 candidate colors, each candidate color corresponding to a color selection operation control. When the user selects a color selection operation control, the color selection operation control is in a selected state, and the color display control in the color confirmation area 29 also changes to the color consistent with the color corresponding to the color selection operation control and the color value corresponding to the color. The user can also select a color by entering a color value in the color display control. The color palette tab page 24 also includes a color palette selection control. The user can switch the color combination of the color selection controls displayed on the color palette tab page 24 by clicking the color palette selection control. The candidate palette colors in the color palette selection control are preset color combinations or user-defined color combinations.

[0516] As Figure 13As shown, when the user chooses to enter the color palette tab 25, the color wheel control 30, the brightness control 31, and the color selection operation control corresponding to the color wheel control 30 and the color selection operation control corresponding to the brightness control 31 are displayed. The color wheel control 30 is an RGB color wheel or an RYB color wheel, that is, a color selection interval obtained by mixing red, green, and blue or red, yellow, and blue as primary colors. The brightness control 31 is used to indicate the intensity of the color brightness. The brightness change displayed by the brightness control 31 is that the brightness increases from bottom to top, that is, gradually transitions from black to white, and the brightness decreases from left to right, that is, gradually changes from white to black. When the user performs a color selection operation on the color wheel control 30, the brightness control 31 displays the brightness change information corresponding to the color selected in the color wheel control. The color display control in the color determination area 29 will also change to a color consistent with the color corresponding to the color selection operation control and the color value corresponding to the color. The user can also select a color by entering a color value in the color display control.

[0517] If Figure 14 As shown in FIG. 2 , when the user chooses to enter the history tab page 26, a color selection operation control corresponding to at least one candidate color is displayed. Whenever the user triggers the color determination control in the color determination area 29, the color will be stored in the history tab page, and the earlier the color is selected, the lower the ranking. The user can also switch the displayed candidate colors by sliding.

[0518] 2. Set up particle map

[0519] If Figure 15 As shown in FIG. 1 , the appearance area 16 further includes a particle map selection area 32, which includes at least one candidate particle map control, and different particle map controls correspond to different particle maps. The particle map selection area 32 also includes a currently selected particle map display icon, which is used to indicate the particle map corresponding to the particle generated by the current particle generator. The particle map selection area 32 can collapse at least one candidate particle map control in the particle map selection area 32 by triggering a particle map collapse control.

[0520] In some embodiments, the user can add a custom particle texture component to the texture selection area by importing a texture.

[0521] If Figure 16 As shown in FIG. 1 , the detail area 14 further includes a special effect parameter area 33, which is used to set the property parameters of the particles generated by the particle generator. The special effect parameter area 33 can collapse at least one property setting control in the special effect parameter area 33 by triggering the special effect parameter collapse control.

[0522] Different property parameters correspond to different property setting controls. Different property parameters have different setting methods, which include the following three methods: ​​​​​​

[0523] Setting method 1: Set property parameters based on keyframe controls;

[0524] Setting method 2: Set the property parameter range based on the maximum value control and / or minimum value control;

[0525] Setting method 3: Directly set property parameters.

[0526] The above particle texture map also belongs to a type of property parameter, and the setting method adopted is setting method 3. The property parameters of the particles and their corresponding setting methods will be introduced one by one below.

[0527] 3. Set the loop period of the particles (loop period) (setting method 3)

[0528] The loop period is the lifespan of the particles, which is used to indicate the existence time of the particles generated by the particle generator, that is, the time from the generation to the disappearance of the particles generated by the particle generator.

[0529] As Figure 16 shown, the special effect parameter area 33 includes a loop period setting control 34. The user can manually enter a number by clicking on the loop period input box to set the loop period of the particles; the user can also set the loop period of the particles by dragging the loop period property bar. After clicking on the loop period input box, the input method application program will be called to input the loop period; or, as Figure 17 shown, an input control 35 is displayed on the editor interface 10 to input the loop period. The loop period corresponding to the loop period input box and the loop period property bar is the same. When the loop period of the particle generator is changed through the loop period input box, the length displayed by the loop period property bar will also change correspondingly; similarly, when the loop period of the particle generator is changed through the loop period property bar, the value displayed by the loop period input box will also change correspondingly.

[0530] In some embodiments, the loop period set through the loop period setting control 34 is the maximum loop period of the particles generated by the particle generator. For example, if the loop period set by the loop period setting control 34 is 5, then the loop period of the particles generated by this particle generator is a random value in (0, 5], for example, the particle generator generates particles a1 to a5, and the corresponding loop periods of particles a1 to a5 are 2, 4, 3, 2, 5 respectively.

[0531] 4. Set the particle color (setting method 1)

[0532] The user can control the color change of the particles generated by the particle generator during its loop period by setting the particle color.

[0533] As Figure 16As shown, the special effect parameter area 33 further includes a particle color setting entry 36. The particle color setting entry 36 displays a particle color preview control, which is used to indicate the color change of the particles generated by the particle generator during the cycle.

[0534] As Figure 18 shown, after the user clicks on the particle color setting entry 36, a particle color setting area 37 is displayed. The user can set the color change of the particles generated by the particle generator during the cycle through the particle color setting area 37. The particle color setting area 37 includes at least two color keyframe controls, a color coordinate axis 38, at least one of a keyframe addition control 39, a keyframe deletion control 40, a color wheel control 41, and a brightness control 42. The particle color initially includes two keyframe controls, namely a start frame control 43 and an end frame control 44. At least two keyframe controls included in the particle color are located in the color coordinate axis. The start frame control 43 is located at the leftmost side of the color coordinate axis, and the end frame control 44 is located at the rightmost side of the color coordinate axis.

[0535] The user can add a keyframe control in the color coordinate axis 38 by clicking on the keyframe addition control 39. The newly added keyframe control is located between the selected keyframe control and the first keyframe control on the right side of the keyframe control. As Figure 19 shown, in schematic diagram (1), the color coordinate axis includes a start frame control 43 and an end frame control 44. As Figure 19 shown in schematic diagram (2), the selected keyframe control is the start frame control 43. After the user clicks on the keyframe addition control, a new keyframe control 45 is added between the start frame control 43 and the end frame control 44. As Figure 19 shown in schematic diagram (3), the selected keyframe control is still the start frame control 43. After the user clicks on the keyframe addition control, a new keyframe control 46 is added between the start frame control 43 and the keyframe control 45. As Figure 19 shown in schematic diagram (4), the keyframe control 45 is selected. After the user clicks on the keyframe addition control, a new keyframe control 47 is added between the keyframe control 45 and the end frame control 44. When adding a new keyframe control between two keyframe controls, the new keyframe control is located at the midpoint of the two keyframe controls. The color coordinate axis 38 can include at most 5 keyframe controls. When the number of keyframe controls in the color coordinate axis 38 reaches 5, continuing to click on the keyframe addition control 39 will display a prompt message "The current number of keyframes has reached the maximum, and further addition is prohibited" in the editor interface.

[0536] As Figure 18As shown, the user can delete the selected keyframe control in the color coordinate axis 38 by clicking the keyframe deletion control 40. Among them, the start frame control 43 and the end frame control 44 cannot be deleted. When the user operates to delete the start frame control 43 or the end frame control 44, a prompt message "Deletion of the start frame is prohibited" or "Deletion of the end frame is prohibited" will be displayed on the editor interface.

[0537] It should be noted that the keyframe controls other than the start frame control 43 and the end frame control 44 can be moved on the color keyframe 38 to change their positions. As Figure 19 shown in the schematic diagram (5), after the keyframe control 45 is selected, it is moved to the left.

[0538] As Figure 18 shown, the particle color setting area 37 includes a color wheel control 41, a brightness control 42, and a color selection operation control corresponding to the color wheel control 41 and a color selection operation control corresponding to the brightness control 42. The color wheel control 41 is an RGB color wheel or an RYB color wheel, that is, a color selection range obtained by mixing red, green, and blue or red, yellow, and blue as primary colors respectively. The brightness control 42 is used to indicate the intensity of the color brightness. The brightness change shown by the brightness control 42 is that the brightness increases from bottom to top, that is, gradually transitions from black to white, and the brightness decreases from left to right, that is, gradually changes from white to black. When the user performs a color selection operation on the color wheel control 41, the brightness control 42 displays the brightness change information corresponding to the color selected in the color wheel control. The user selects the keyframe control 43 on the color coordinate axis 38, and selects the desired color by adjusting the color wheel control 41 and the brightness control 42, and adds this color to the selected keyframe control 43. The color coordinate axis 38 will display a gradient color that gradually changes from the color corresponding to the keyframe control 43 to the color corresponding to the keyframe control 44. In the case where the color coordinate axis includes more than two keyframe controls, as Figure 9 shown in the schematic Figure 3 diagram, the color coordinate axis 38 will display a gradient color that gradually changes one by one from the color corresponding to the keyframe control 43, the color corresponding to the keyframe control 46, the color corresponding to the keyframe control 45 to the color corresponding to the keyframe control 44.

[0539] As Figure 18 shown, the particle color setting area 37 also includes a color reset control 48. After the user clicks the color reset control 48, the color displayed in the color coordinate axis 38 returns to the state when first entering the particle color setting area 37; or, after the user clicks the color reset control 48, the color displayed in the color coordinate axis 38 changes to the color corresponding to the selected keyframe control.

[0540] As Figure 18As shown, the particle color setting area 37 further includes a color display control, which is used to display the currently selected color and its corresponding color value. The user can also select a color by entering a color value in the color display control.

[0541] It should be noted that the color selection operation for the particle color can also adopt any one of the color selection operations for the base as described in Figures 12 to 14 , that is, the particle color setting area 37 includes a color selection tab page, and the color selection tab page includes at least one of a color palette tab page, a color palette tab page, and a history tab page.

[0542] 5. Set the emission shape (emission position) (setting method 2)

[0543] Figure 20 The figure shows a schematic diagram of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application.

[0544] The emission position is used to indicate the initial position of the particles generated by the particle generator, and the emission position can also be called the emission shape. After the user clicks on the emission position entry 49, at least one emission position control is displayed. The emission position control includes a cylinder parameter control 50, a triangle parameter control 51, a sphere parameter control 52, and a custom parameter control 53.

[0545] As Figure 21 shown in the schematic diagram (1), when the user selects the cylinder parameter control 50, the particles generated by the particle generator are on the surface and inside the cylinder; as Figure 21 shown in the schematic diagram (2), when the user selects the triangle parameter control 51, the particles are on the surface and inside the triangular prism; as Figure 21 shown in the schematic diagram (3), when the user selects the sphere parameter control 51, the particles are on the surface and inside the sphere.

[0546] When the user selects the custom parameter control 53, the editor interface displays the custom parameter control, which includes at least one of an x-axis maximum value setting control 54, an x-axis minimum value setting control 55, a y-axis maximum value setting control 56, a y-axis minimum value setting control 57, a z-axis maximum value setting control, and a z-axis minimum value setting control.

[0547] The manifestation form of the emission position of the particles is (x, y, z), and the user can respectively set the maximum and minimum values of x, y, and z. The generation position of the particles will be randomly generated within the area set by the user.

[0548] 6. Set the particle transparency (setting method 1)

[0549] The transparency parameter is used to indicate the transparency of the particles generated by the particle generator during the cycle. The value range of the transparency parameter is from 0 to 1. When the transparency is 0, the particles are displayed as completely opaque; when the transparency is 1, the particles are displayed as completely transparent.

[0550] As Figure 22 shown, the special effect parameter area 33 further includes a transparency setting entry 59. The transparency setting entry 59 also displays the current set transparency trend. After clicking on the transparency setting entry 59, the transparency setting area 60 is entered. As Figure 23 shown, the transparency setting area 60 includes a transparency coordinate system 61 and at least two transparency key frame controls 62 located in the transparency coordinate system 61. The user can set the transparency change trend by dragging the transparency key frame controls.

[0551] The way for the user to operate the transparency key frames and adjust the transparency parameter is similar to that of adjusting the particle color described above, and will not be elaborated here.

[0552] 7. Set the particle brightness (Setting method 1)

[0553] The brightness parameter is used to indicate the brightness of the particles generated by the particle generator during the cycle. The value of the brightness parameter can be negative. When the absolute value of the brightness parameter value is larger and negative, the particles are displayed darker, that is, closer to black; when the brightness parameter value is 0, no brightness is added to the particles, and the particle color is directly displayed; when the brightness parameter is a larger positive value, the particles are displayed brighter.

[0554] In some embodiments, the upper limit of the brightness parameter is a preset value. Exemplarily, the upper limit of the brightness parameter is 10.

[0555] In some embodiments, the lower limit of the brightness parameter is a preset value. Exemplarily, the upper limit of the brightness parameter is -10.

[0556] The special effect parameter area 33 further includes a brightness setting entry 58. The brightness setting entry 58 also displays the current set brightness trend. After clicking on the brightness setting entry 58, the brightness setting area is entered. The brightness setting area is as Figure 5 shown in the schematic diagram (3), which will not be elaborated here.

[0557] 8. Set the particle scaling parameter (Setting method 1)

[0558] The scaling parameter of the particles is similar to the transparency and brightness. The scaling parameter is used to indicate the degree of scaling of the particles generated by the particle generator during the cycle period, and this degree of scaling is used to indicate the scaling ratio relative to the default particle size. The minimum value of the particle scaling parameter is 0. When the particle scaling parameter is 0, the particle size is 0 times the default particle size; when the particle scaling parameter is 1, the particle size is 1 times the default particle size; when the particle scaling parameter is 2.5, the particle size is 2.5 times the default particle size.

[0559] As Figure 22 shown, the special effect parameter area 33 further includes a scaling setting entry 60. After clicking on the scaling setting entry, the scaling setting area is entered. The scaling setting area is as shown in the schematic diagram (1) of Figure 5 and will not be elaborated here.

[0560] 9. Set the particle generation speed (Setting method three)

[0561] The particle generation speed is used to indicate the number of particles generated by the particle generator per unit time. The unit time is a preset value; or, the unit time is a value set by the user.

[0562] Exemplarily, the unit time is 1 second, and the generation rate is used to indicate the number of particles generated by the particle generator within 1 second; or, the unit time is a value of 20 seconds set by the user, and the generation rate is used to indicate the number of particles generated by the particle generator within 20 seconds.

[0563] 10. Set the particle emission speed (Setting method two)

[0564] The manifestation form of the particle emission speed is (x, y, z), which is used to indicate the initial speed of the particles in different directions. The emission speed includes at least one of the x-axis emission speed, the y-axis emission speed, and the z-axis emission speed. When setting the particle emission speed, the speed range in different directions can be set. For example, the speed range in the x-axis direction is set to [-10, 20], that is, the generated particles will randomly have a speed with a maximum value of 10 in the negative half-axis direction of the x-axis and a minimum value of 0, and a speed with a maximum value of 20 and a minimum value of 0 in the positive half-axis direction of the x-axis.

[0565] 11. Set the particle acceleration (Setting method two)

[0566] The manifestation form of the particle acceleration is (x, y, z), which is used to indicate the acceleration of the particles of the particle generator. The acceleration includes at least one of the x-axis acceleration, the y-axis acceleration, and the z-axis acceleration. The user can set the acceleration in different directions.

[0567] When the x-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the x-axis; when the x-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the x-axis; when the y-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the y-axis; when the y-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the y-axis; when the z-axis acceleration of the particle is positive, the acceleration direction is the positive half-axis direction of the z-axis; when the z-axis acceleration of the particle is negative, the acceleration direction is the negative half-axis direction of the z-axis.

[0568] 12. Set particle rotation parameters (Setting method 2)

[0569] The rotation parameter can also be called the rotation angle. The particle rotation parameter is used to indicate the initial rotation angle of the particle. The user can set the random value of the initial rotation angle of the particle by specifying the maximum and minimum values of the rotation parameter.

[0570] The rotation angle is the rotation angle relative to the preset posture of the particle. The value range of the rotation angle is [0, 360]; or, the value range of the rotation angle is [-180, 180]. Exemplarily, when the value range of the rotation angle is [0, 360] and the rotation angle of the particle is 120 degrees, the particle rotates 120 degrees clockwise or counterclockwise relative to the preset posture of the particle; or, when the value range of the rotation angle is [-180, 180] and the rotation angle of the particle is 120 degrees, the particle rotates 120 degrees clockwise or counterclockwise relative to the preset posture of the particle; when the rotation angle of the particle is -60 degrees, the particle rotates 60 degrees counterclockwise or clockwise relative to the preset posture of the particle.

[0571] 13. Set particle rotation rate (Setting method 2)

[0572] The rotation rate can also be called the rotation speed. The particle rotation rate is used to indicate the angular velocity of the particle. The user can set the random value of the angular velocity of the particle by specifying the maximum and minimum values of the rotation rate.

[0573] · Add signal control to the particle generator

[0574] The user can add a control signal to the particle generator to control the particle emission of the particle generator. Such as Figure 24As shown, the user can set control signals in the special effect preset area 64 of the basic area 63. The control signals include an automatically generated signal, an open signal, and a close signal, and different signals correspond to different controls respectively. The automatic play control 65 corresponds to the automatically generated signal and can only set to turn on or turn off the automatic generation. The open signal control 66 corresponds to the open signal, and the close signal control 67 corresponds to the close signal. The open signal is used to instruct the particle generator to start generating particles; the close signal is used to instruct the particle generator to stop generating particles. For example, set the particle generator not to play automatically, and then set an open signal for the particle generator, and the particle generator can generate particles only when the open signal is triggered; or, set the particle generator not to play automatically, set an open signal and a close signal for the particle generator, and the generation of particles can be freely controlled by triggering the open signal and the close signal of the particle generator; or, set the particle generator to play automatically, and set a close signal for the particle generator, and the generation of particles can be stopped when the close signal is triggered.

[0575] After setting the control signal, a corresponding signal trigger or signal trigger control needs to be set to trigger the control signal. For example, the signal trigger includes an induction switch. The signal control area of the induction switch is as Figure 25As shown, in the switch base area 68 of the induction switch, a component selection control 69, a switch-on trigger signal 70, and a switch-off trigger signal 71 are displayed. For example, when both the turn-on signal control 66 and the switch-on trigger signal 70 are set to "special effect start", and both the turn-off signal control 67 and the switch-off trigger signal 71 are set to "special effect off", by selecting a character class and a motion component class through the component selection control 69, when a component of the character class or the motion component class triggers the induction signal, the induction switch switches to the "on" state, and the corresponding particle generator starts generating particles. When a user designs a virtual environment using the UGC editor, the components provided by the UGC editor can be adopted. The components include at least one of various virtual objects pre-designed by developers, virtual objects designed and saved by users, basic components for designing virtual objects, and virtual characters for interaction. The components can also be referred to as components. The virtual object is, for example, a virtual tree or a virtual rock. The basic components are, for example, a cuboid, a cube, a sphere, a cylinder, etc. The virtual character can be a virtual character controlled by a player, a virtual character generated by a game program with interaction logic, or a virtual character without interaction logic. When the virtual character has no interaction logic, it can be regarded as a virtual object. The components that can trigger the induction switch include a character class, a motion component class, a physical component class, and a specified component. Among them, the character class is a virtual character controlled by a player or a virtual character existing in the virtual environment; the motion component class is a component with a motion mode set. After the component has a motion mode set, it will move in the virtual environment based on the motion logic corresponding to the motion mode; the physical component class is a component with physical properties added, for example, physical properties such as gravity and flammability are added to the component. Using this type of component can simulate the effects in the real environment in the virtual environment. For example, two sphere components are placed at a high place in the virtual environment at the same time. One sphere has gravity added, and the other sphere has no gravity added. When starting to play, the object with gravity added will fall freely, while the object without gravity added will still float in place; the specified component is a component or component type set by the user that can trigger the induction switch, for example, adding a component number that can trigger the induction switch to the induction switch.

[0576] · Add motion control to the particle generator

[0577] The user can set a motion unit mode for the particle generator to control the motion mode of the particle generator.

[0578] The motion unit mode includes at least one of a full-scale motion mode, a one-way displacement mode, a cyclic displacement, a one-way rotation mode, a swinging motion mode, and a waypoint motion mode.

[0579] For different motion unit modes, different motion attributes can be set.

[0580] Among them, the waypoint motion mode is used to indicate that a virtual object moves along a motion path formed by at least two waypoints. The positions, rotations, and scales of the at least two waypoints are the same or different. A waypoint is used to indicate at least one of the position, rotation, and scale of the virtual object when the virtual object moves to that waypoint; the one-way displacement mode is used to indicate a single uniform motion in a straight line, and it will stop after the motion ends. The user can set the motion duration of the single motion, etc. to control the single motion; the cyclic displacement is used to indicate a uniform reciprocating motion on the same straight line; the one-way rotation mode is used to indicate that the virtual object performs a uniform rotation motion with an unchanged axis, and the axis is the center of the virtual object; the swinging motion mode is used to indicate a rotational swing with an unchanged axis, such as a pendulum, etc.; the full motion mode is used to indicate motion according to the motion logic. In the full motion mode, all motion performances can be achieved through settings, such as at least one of the above one-way displacement mode, cyclic displacement, one-way rotation mode, and swinging motion mode. The full motion mode can also set variable-speed motion, etc.

[0581] In some embodiments, the particle generator includes at least one of a particle parameter editor, a particle signal manager, a particle parameter random manager, and a particle parameter keyframe manager.

[0582] The particle parameter editor is used to implement graphical editing of the attribute parameters of particles; the particle signal manager is used to add control signals to the particle generator; the particle parameter random manager is used to make the attribute parameter values of particles conform to the attribute parameter intervals set by the user; the particle parameter keyframe manager is used to support setting particle attribute parameters using keyframes, and when particles are generated, make the particle attributes conform to the attribute parameter requirements set by the keyframes.

[0583] In some embodiments, when the user sets a control signal for the particle generator, a particle signal manager is attached to the particle generator, enabling the particle generator to receive the corresponding control signal and realizing the opening or closing of the particle generator controlled by the control signal.

[0584] In some embodiments, when the particle generator does not have a particle parameter random manager, a particle parameter random manager is added to the particle generator. When the attribute parameter interval corresponding to the attribute parameter T is modified, the corresponding maximum value Max is uploaded. <t>and the minimum value Min <t>To the particle parameter random manager, the particle parameter random manager sets the maximum value Max according to the type of the attribute parameter T and the attribute parameter variable corresponding to the attribute parameter T <t>and minimum value Min <t>。

[0585] In some embodiments, when the particle generator does not have a particle parameter random manager, a particle parameter keyframe manager is added to the particle generator. The keyframe K includes a keyframe time T and an attribute parameter value V. All keyframes of each attribute parameter are saved in the keyframe array Array <k>Among them, the array is arranged in ascending order of time. When obtaining the attribute parameters corresponding to RT at a certain moment, the RT at this moment is used in the key frame array Array <k>Find the previous key frame K0 and the next key frame K1 corresponding to RT at that moment. Binary search, interpolation search and other search methods can be used to optimize the search efficiency during the search. After finding the previous key frame K0 and the next key frame K1, calculate the attribute parameter value corresponding to RT through interpolation. The interpolation formula is as follows.

[0586] RV = K0.V + (K1.V - K0.V) * ((RT - K0.T) / (K1.T - K0.T))

[0587] Among them, RV represents the attribute parameter value corresponding to the RT moment; K0.V represents the attribute parameter value corresponding to the previous key frame K0; K1.V represents the attribute parameter value corresponding to the next key frame K1; RT represents a known moment; K0.T represents the key frame moment corresponding to the previous key frame K0; K1.T represents the key frame moment corresponding to the next key frame K1.

[0588] Figure 26 The flowchart of the UGC special effect generation method in the game program provided by an exemplary embodiment of the present application is shown. This method is executed by a computer device, and the computer device can be a terminal device or a server such as Figure 1 or Figure 2 The method includes:

[0589] Step 1001: Parameter editing.

[0590] In some embodiments, the user edits the attribute parameters of the particle generator using the above method. According to different editing methods, parameter editing includes basic editing, range editing and key frame editing. Basic editing corresponds to the above setting method 1, directly setting the attribute parameters; range editing corresponds to the above setting method 2, setting the attribute parameters based on the attribute parameter interval; key frame editing corresponds to the above setting method 1, setting the attribute parameters based on the key frame.

[0591] Step 1002: Data saving.

[0592] In some embodiments, in response to the user's save operation on the attribute parameters, save the attribute parameters; or, in response to the user's save operation on the map data, save the map data and the attribute parameters of the particle generators existing in the map.

[0593] Step 1003: Parameter serialization.

[0594] In some embodiments, the computer device serializes the saved parameters. Exemplarily, the terminal device serializes the saved attribute parameters; or, the terminal device extracts the attribute parameters of the particle generators protected in the map data and serializes the attribute parameters.

[0595] Step 1004: Save the parameters of a single particle generator to the corresponding Actor.

[0596] In some embodiments, the attribute parameters of each particle generator are saved to the corresponding Actor. An Actor is a basic type of game object in a game engine, and any virtual object that can be added to a virtual environment needs to inherit from the Actor class. It can be understood that the Actor class is the base class for all virtual objects that can be added to a virtual environment.

[0597] Step 1005: Save all particle actor data to the corresponding map.

[0598] In some embodiments, all particle Actor data is saved to the map corresponding to the particle generator. A particle Actor is used to indicate the Actor corresponding to each particle generator, and the attribute parameters of the particle generator are saved in this Actor.

[0599] Step 1006: Write the map data to the database.

[0600] In some embodiments, the server writes the map data to the database, and the map data is uploaded by the terminal device. Optionally, the map data includes the map corresponding to the particle generator, and each particle generator added to the map and its attribute parameters are saved in this map.

[0601] In summary, the method provided by the embodiments of the present application shows that when saving map data, the particle generator and its corresponding attribute parameters are also saved together with the map data, so that the saved effect can also be achieved during subsequent editing or playing.

[0602] Figure 27 Shows a flowchart of a UGC special effect generation method in a game program provided by an exemplary embodiment of the present application. This method is executed by a terminal device, and the terminal device can be a terminal device such as Figure 1 or Figure 2 The terminal device in, and the method includes:

[0603] Step 1010: Parameter deserialization.

[0604] In some embodiments, the terminal device receives the map data transmitted by the server, extracts the map corresponding to the particle generator from the map data, extracts each particle generator and its corresponding attribute parameters in the map one by one, and deserializes the attribute parameters to obtain the deserialized attribute parameters.

[0605] Step 1011: Dynamically create attributes according to the deserialized parameters.

[0606] In some embodiments, the terminal device dynamically creates a particle generator instance according to the deserialized parameters, that is, instantiates the particle generator.

[0607] Step 1012: Initialize the particle component data.

[0608] In some embodiments, the particle generator is initialized based on the attribute parameters, and the attribute parameter values or attribute parameter ranges of the respective attribute parameters are obtained.

[0609] Step 1013: Determine whether to play automatically.

[0610] In some embodiments, it is determined whether the particle generator is set with an automatic generation signal. If so, step 1021 is executed; if not, step 1014 is executed.

[0611] Step 1014: Set the particle to the inactive state.

[0612] In some embodiments, the particle generator is not set with an automatic generation signal, that is, it does not play automatically, and the particle generator is set to the inactive state.

[0613] Step 1015: Determine whether there is a control signal.

[0614] In some embodiments, it is determined whether there is a control signal. If a control signal exists, step 1016 is executed; if no control signal exists, it is proved that the particle generator can neither play automatically nor generate particles according to the control signal, and the particle generator is invalid, and the calculation of the particle generator is ended.

[0615] Step 1016: Create a signal receiving component.

[0616] In some embodiments, in the presence of a control signal, a signal receiving component is created, and the signal receiving component is used to receive signal input.

[0617] Step 1017: Wait for signal input.

[0618] In some embodiments, wait for signal input. When a signal input is received, step 1018 is executed; otherwise, wait for signal input until the particle generator is deleted.

[0619] Step 1018: Signal input.

[0620] Step 1019: Determine whether it is an open signal.

[0621] In some embodiments, it is determined whether the input signal is an open signal. If so, step 1021 is executed; if not, step 1020 is executed.

[0622] Step 1020: Set the particle to the inactive state.

[0623] In some embodiments, the particle generator is kept in an inactive state.

[0624] Step 1021: Set the particle to an active state.

[0625] In some embodiments, setting the particle generator to an active state means starting to generate particles.

[0626] Step 1022: Create a corresponding manager for the parameter.

[0627] In some embodiments, corresponding managers are created according to different attribute parameters.

[0628] Step 1023: The manager updates the parameter.

[0629] In some embodiments, the attribute parameter values of the particles generated by the particle generator are updated based on the manager Tick.

[0630] In summary, the method provided by the embodiments of the present application shows a method for a terminal device to obtain a particle generator according to previously saved data and manage the particle generator during the running of a game program when performing virtual environment editing or playing in a virtual environment. This method ensures the implementation of the particle generator and the signal control function.

[0631] The following is an embodiment of the device of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the method embodiment of the present application.

[0632] Please refer to Figure 28 , which shows a structural block diagram of a UGC special effect generation device in a game program provided by an exemplary embodiment of the present application. This device has the function of implementing the example of the UGC special effect generation method in the above game program. The function can be implemented by hardware or by hardware executing corresponding software. As Figure 26 shown, the device 1100 may include: a first display module 1110, a first setting module 1120, and a first generation module 1130.

[0633] The first display module 1110 is configured to display a particle generator in the editor interface of the UGC editor;

[0634] The first setting module 1120 is configured to set the attribute parameters of the particles generated by the particle generator in response to an attribute setting operation for the particle generator;

[0635] The first generation module 1130 is configured to generate a particle special effect based on the attribute parameters in response to a triggering operation for the particle generator, where the particle special effect includes at least one particle generated by the particle generator.

[0636] In some embodiments, the first setting module 1120 includes a first display sub-module and a first determination sub-module.

[0637] The first display sub-module is configured to display at least two key frame controls on the editor interface in response to an attribute setting operation for the particle generator.

[0638] The first determination sub-module is configured to determine that the attribute parameter value of the particle at the i-th key frame moment is the attribute parameter value corresponding to the i-th key frame control in response to a triggering operation for the i-th key frame control among the at least two key frame controls.

[0639] In some embodiments, the first display sub-module includes a first display unit, and the first determination sub-module includes a first determination unit.

[0640] The first display unit is configured to display at least one of at least two color key frame controls, a color coordinate axis, a particle color selection tab page, and a particle color selection operation control on the editor interface in response to a triggering operation for the color setting entry of the particle generator.

[0641] The first determination unit is configured to determine that the attribute parameter value of the particle at the i-th key frame moment is the color value selected by the particle color selection operation control in response to a triggering operation for the particle color selection operation control when the i-th color key frame control among the at least two color key frame controls is in a selected state.

[0642] In some embodiments, the first display sub-module includes a second display unit, and the first determination sub-module includes a second determination unit.

[0643] The second display unit is configured to display an attribute coordinate system and at least two key frame controls located in the attribute coordinate system on the editor interface in response to a triggering operation for the attribute setting entry of the particle generator, where the first coordinate axis of the attribute coordinate system is used to indicate the cycle period, and the second coordinate axis of the attribute coordinate system is used to indicate the attribute parameters.

[0644] The second determination unit is configured to determine that the attribute parameter value of the particle at the i-th key frame moment is the attribute parameter value corresponding to the i-th key frame control in the attribute coordinate system in response to a dragging operation for the i-th key frame control when the i-th key frame control among the at least two key frame controls is in a selected state, where i is a positive integer.

[0645] In some embodiments, the second display unit includes a third display unit, and the second determination unit includes a third determination unit.

[0646] The third display unit is configured to, in response to a trigger operation on the zoom setting entry for the particle generator, display a zoom coordinate system and at least two zoom keyframe controls located in the zoom coordinate system on the editor interface, where the first coordinate axis of the zoom coordinate system is used to indicate the cycle period, and the second coordinate axis of the zoom coordinate system is used to indicate the zoom parameter;

[0647] The third determination unit is configured to, when the i-th zoom keyframe control among the at least two zoom keyframe controls is in a selected state, in response to a drag operation on the i-th zoom keyframe control, determine that the attribute parameter value of the particle at the i-th keyframe moment is the zoom parameter value corresponding to the i-th zoom keyframe control in the zoom coordinate system, where i is a positive integer.

[0648] In some embodiments, the second display unit includes a fourth display unit, and the second determination unit includes a fourth determination unit.

[0649] The fourth display unit is configured to, in response to a trigger operation on the transparency setting entry for the particle generator, display a transparency coordinate system and at least two transparency keyframe controls located in the transparency coordinate system on the editor interface, where the first coordinate axis of the transparency coordinate system is used to indicate the cycle period, and the second coordinate axis of the transparency coordinate system is used to indicate the transparency parameter;

[0650] The fourth determination unit is configured to, when the i-th transparency keyframe control among the at least two transparency keyframe controls is in a selected state, in response to a drag operation on the i-th transparency keyframe control, determine that the attribute parameter value of the particle at the i-th keyframe moment is the transparency parameter value corresponding to the i-th transparency keyframe control in the transparency coordinate system, where i is a positive integer.

[0651] In some embodiments, the second display unit includes a fifth display unit, and the second determination unit includes a fifth determination unit.

[0652] The fifth display unit is configured to, in response to a trigger operation on the brightness setting entry for the particle generator, display a brightness coordinate system and at least two brightness keyframe controls located in the brightness coordinate system on the editor interface, where the first coordinate axis of the brightness coordinate system is used to indicate the cycle period, and the second coordinate axis of the brightness coordinate system is used to indicate the brightness parameter;

[0653] A fifth determination unit, configured to, when the i-th brightness key frame control among the at least two brightness key frame controls is in a selected state, in response to a dragging operation on the i-th brightness key frame control, determine that the attribute parameter value of the particle at the i-th key frame moment is the brightness parameter value corresponding to the i-th brightness key frame control in the brightness coordinate system, where i is a positive integer.

[0654] In some embodiments, the apparatus 1100 further includes a key frame adding module.

[0655] The key frame adding module is configured to, when the i-th key frame control is in a selected state, in response to a key frame adding operation, when there are n key frame controls corresponding to the attribute parameter, insert a new key frame control between the i-th key frame control and the (i + 1)-th key frame control to obtain n + 1 key frame controls corresponding to the attribute parameter, where i is a positive integer and n is a positive integer.

[0656] In some embodiments, the apparatus 1100 further includes a key frame deleting module.

[0657] The key frame deleting module is configured to, when the i-th key frame control is in a selected state, in response to a key frame deleting operation, delete the i-th key frame control, where i is a positive integer.

[0658] In some embodiments, the first setting module 1120 includes a second determination sub-module.

[0659] The second determination sub-module is configured to, in response to an attribute setting operation on the particle generator, determine an attribute parameter range of the particle, where the attribute parameter range is used to indicate a parameter range of attribute parameter values randomly generated by the particle.

[0660] In some embodiments, the apparatus 1100 further includes a second display module, and the second determination sub-module further includes at least one of a first maximum value unit and a first minimum value unit.

[0661] The second display module is configured to display at least one of a maximum value setting control and a minimum value setting control on the editor interface.

[0662] The first maximum value unit is configured to, in response to an attribute setting operation on the maximum value setting control, determine a maximum value of the parameter range of the particle;

[0663] The first minimum value unit is configured to, in response to an attribute setting operation on the minimum value setting control, determine a minimum value of the parameter range of the particle.

[0664] In some embodiments, the first maximum value unit includes at least one of a second maximum value unit, a third maximum value unit, and a fourth maximum value unit; the first minimum value unit includes at least one of a second minimum value unit, a third minimum value unit, and a fourth minimum value unit.

[0665] The second maximum value unit is configured to determine the maximum value of the x-axis emission velocity range of the particle in response to an attribute setting operation for the control for setting the maximum value of the x-axis emission velocity.

[0666] The third maximum value unit is configured to determine the maximum value of the y-axis emission velocity range of the particle in response to an attribute setting operation for the control for setting the maximum value of the y-axis emission velocity.

[0667] The fourth maximum value unit is configured to determine the maximum value of the z-axis emission velocity range of the particle in response to an attribute setting operation for the control for setting the maximum value of the z-axis emission velocity.

[0668] The second minimum value unit is configured to determine the minimum value of the x-axis emission velocity range of the particle in response to an attribute setting operation for the control for setting the minimum value of the x-axis emission velocity.

[0669] The third minimum value unit is configured to determine the minimum value of the y-axis emission velocity range of the particle in response to an attribute setting operation for the control for setting the minimum value of the y-axis emission velocity.

[0670] The fourth minimum value unit is configured to determine the minimum value of the z-axis emission velocity range of the particle in response to an attribute setting operation for the control for setting the minimum value of the z-axis emission velocity.

[0671] In some embodiments, the second determination sub-module further includes a sixth determination unit.

[0672] The sixth determination unit is configured to determine the emission position interval of the particle in response to a trigger operation for the emission position control. The emission position interval is used to indicate the parameter range of the emission position value randomly generated by the particle, and the emission position control is used to indicate the determination of the emission position interval.

[0673] In some embodiments, the apparatus 1100 further includes a sixth display unit.

[0674] The sixth display unit is configured to display the emission position control on the editor interface in response to a trigger operation for the emission position setting entry of the particle generator. The emission position control includes at least one of a spherical parameter control, a triangular parameter control, a cylindrical parameter control, and a custom parameter control.

[0675] In some embodiments, the sixth determination unit further includes a seventh determination unit and an eighth determination unit.

[0676] A seventh determination unit, configured to determine the sphere radius in response to a setting operation on the radius setting control.

[0677] An eighth determination unit, configured to determine, based on the sphere radius, that the emission position range of the particle is a first spatial range, where the first spatial range includes the spatial coordinate range on the sphere surface and inside the sphere, and the sphere is a sphere with the sphere radius as the radius.

[0678] In some embodiments, the sixth determination unit further includes at least one of a ninth determination unit and a tenth determination unit, and the sixth determination unit further includes an eleventh determination unit.

[0679] A ninth determination unit, configured to determine a first side length in response to a setting operation on the side length setting control.

[0680] A tenth determination unit, configured to determine a first column height in response to a setting operation on the triangular prism column height setting control.

[0681] An eleventh determination unit, configured to determine, based on at least one of the first side length and the first column height, that the emission position range of the particle is a second spatial range, where the second spatial range includes the spatial coordinate range on the triangular prism surface and inside the triangular prism.

[0682] In some embodiments, the sixth determination unit further includes at least one of a twelfth determination unit and a thirteenth determination unit, and the sixth determination unit further includes a fourteenth determination unit.

[0683] A twelfth determination unit, configured to determine a cylinder radius in response to a setting operation on the cylinder radius setting control.

[0684] A thirteenth determination unit, configured to determine a cylinder column height in response to a setting operation on the cylinder column height setting control.

[0685] A fourteenth determination unit, configured to determine, based on at least one of the cylinder radius and the cylinder column height, that the emission position range of the particle is a third spatial range, where the third spatial range includes the spatial coordinate range on the cylinder surface and inside the cylinder.

[0686] In some embodiments, the sixth determination unit includes at least one of a fifteenth determination unit, a sixteenth determination unit, a seventeenth determination unit, an eighteenth determination unit, a nineteenth determination unit, and a twentieth determination unit.

[0687] A fifteenth determination unit, configured to determine the maximum value of the particle's position range on the x-axis in response to an attribute setting operation on the x-axis maximum value setting control.

[0688] A sixteenth determination unit is further configured to determine a minimum value of the particle in the x-axis position range in response to an attribute setting operation on the control for setting the minimum value of the x-axis.

[0689] A seventeenth determination unit is further configured to determine a maximum value of the particle in the y-axis position range in response to an attribute setting operation on the control for setting the maximum value of the y-axis.

[0690] An eighteenth determination unit is further configured to determine a minimum value of the particle in the y-axis position range in response to an attribute setting operation on the control for setting the minimum value of the y-axis.

[0691] A nineteenth determination unit is further configured to determine a maximum value of the particle in the z-axis position range in response to an attribute setting operation on the control for setting the maximum value of the z-axis.

[0692] A twentieth determination unit is further configured to determine a minimum value of the particle in the z-axis position range in response to an attribute setting operation on the control for setting the minimum value of the z-axis.

[0693] In some embodiments, the first maximum value unit further includes a fifth maximum value unit, and the first minimum value unit further includes a fifth minimum value unit.

[0694] A second display module is further configured to display at least one of a control for setting the maximum rotation angle and a control for setting the minimum rotation angle on the editor interface.

[0695] The fifth maximum value unit is configured to determine a maximum value of the rotation angle range of the particle in response to an attribute setting operation on the control for setting the maximum rotation angle.

[0696] The fifth minimum value unit is configured to determine a minimum value of the rotation angle range of the particle in response to an attribute setting operation on the control for setting the minimum rotation angle.

[0697] In some embodiments, the first maximum value unit further includes a sixth maximum value unit, and the first minimum value unit further includes a sixth minimum value unit.

[0698] A second display module is further configured to display at least one of a control for setting the maximum rotation speed and a control for setting the minimum rotation speed on the editor interface.

[0699] The sixth maximum value unit is configured to determine a maximum value of the rotation speed range of the particle in response to an attribute setting operation on the control for setting the maximum rotation speed.

[0700] The sixth minimum value unit is configured to determine a minimum value of the rotation speed range of the particle in response to an attribute setting operation on the control for setting the minimum rotation speed.

[0701] In some embodiments, the first determination module further includes a third determination sub-module.

[0702] The third determination sub-module is configured to determine the value of the attribute parameter of the particle in response to an attribute setting operation for the particle generator.

[0703] In some embodiments, the apparatus 1100 further includes a third display module, and the third determination sub-module includes a twenty-first determination unit.

[0704] The third display module is configured to display a cycle period setting control on the editor interface;

[0705] The twenty-first determination unit is configured to determine the cycle period value of the particle in response to an attribute setting operation for the cycle period setting control.

[0706] In some embodiments, the third determination sub-module includes at least one of a twenty-second determination unit, a twenty-third determination unit, and a twenty-fourth determination unit.

[0707] The third display module is further configured to display an emission position control on the editor interface in response to a trigger operation for an emission position setting entry of the particle generator, where the emission position control includes at least one of a spherical parameter control, a triangular parameter control, and a cylindrical parameter control;

[0708] The twenty-second determination unit is configured to determine that the emission position range of the particle is a fourth space range in the case that the emission position control includes a spherical parameter control, where the fourth space range includes the space coordinate range on and inside the surface of a sphere, and the sphere is a sphere with a first radius;

[0709] The twenty-third determination unit is configured to determine that the emission position range of the particle is a fifth space range in the case that the emission position control includes a triangular parameter control, where the fifth space range includes the space coordinate range on and inside the surface of a triangular prism, and the triangular prism is a triangular prism with an equilateral triangle side length of a second side length and a height of a second column height;

[0710] The twenty-fourth determination unit is configured to determine that the emission position range of the particle is a sixth space range in the case that the emission position control includes a cylindrical parameter control, where the sixth space range includes the space coordinate range on and inside the surface of a cylinder, and the cylinder is a cylinder with a second radius as the base radius and a third column height as the height.

[0711] In some embodiments, the third determination sub-module includes a twenty-fifth determination unit.

[0712] The third display module is further configured to display a particle texture map selection area on the editor interface, where the particle texture map selection area includes at least one particle texture map control, and different particle texture map controls correspond to different particle texture maps;

[0713] The twenty-fifth determination unit is configured to determine the particle texture map of the particle in response to a selection operation on the particle texture map control.

[0714] In some embodiments, the apparatus 1100 further includes a change module.

[0715] The change module is configured to change the at least one particle texture map control displayed in the particle selection area in response to a trigger operation on the particle texture map selection area.

[0716] In some embodiments, the third determination sub-module includes a twenty-sixth determination unit.

[0717] The third display module is further configured to display a generation rate setting control on the editor interface;

[0718] The twenty-sixth determination unit is configured to determine the generation rate of the particle in response to an attribute setting operation on the generation rate setting control.

[0719] In some embodiments, the third determination sub-module includes at least one of a twenty-seventh determination unit, a twenty-eighth determination unit, and a twenty-ninth determination unit.

[0720] The third display module is further configured to display at least one of an x-axis acceleration setting control, a y-axis acceleration setting control, and a z-axis acceleration setting control on the editor interface;

[0721] The twenty-seventh determination unit is configured to determine the x-axis acceleration value of the particle in response to an attribute setting operation on the x-axis acceleration setting control;

[0722] The twenty-eighth determination unit is configured to determine the y-axis acceleration value of the particle in response to an attribute setting operation on the y-axis acceleration setting control;

[0723] The twenty-ninth determination unit is configured to determine the z-axis acceleration value of the particle in response to an attribute setting operation on the z-axis acceleration setting control.

[0724] In some embodiments, the first generation module includes a first generation sub-module.

[0725] The first generation sub-module is configured to, in response to an attribute setting operation on the particle generator in the editing area, display in the preview area a particle special effect generated by the particle generator based on the attribute parameters.

[0726] In some embodiments, the first generation sub-module includes a first generation unit.

[0727] The first generation unit is configured to, in response to a color parameter setting operation on the particle generator in the editing area, display in the preview area a particle special effect generated by the particle generator based on the color parameters. The color parameters include at least two color keyframe controls, and different color keyframe controls correspond to the same or different color values. The particle special effect includes an animation in which the color of the particle gradually changes or mutates between the color values corresponding to the at least two color keyframe controls.

[0728] In some embodiments, the first generation sub-module further includes a second generation unit.

[0729] The second generation unit is configured to, in response to a scaling parameter setting operation on the particle generator in the editing area, display in the preview area a particle special effect generated by the particle generator based on the scaling parameters. The scaling parameters include at least two scaling keyframe controls, and different scaling keyframe controls correspond to the same or different scaling parameter values. The particle special effect includes an animation in which the scaling degree of the particle gradually changes or mutates between the scaling parameter values corresponding to the at least two scaling keyframe controls.

[0730] In some embodiments, the first generation sub-module further includes a third generation unit.

[0731] The third generation unit is configured to, in response to a transparency parameter setting operation on the particle generator in the editing area, display in the preview area a particle special effect generated by the particle generator based on the transparency parameters. The transparency parameters include at least two transparency keyframe controls, and different transparency keyframe controls correspond to the same or different transparency parameter values. The particle special effect includes an animation in which the transparency degree of the particle gradually changes or mutates between the transparency parameter values corresponding to the at least two transparency keyframe controls.

[0732] In some embodiments, the first generation sub-module further includes a fourth generation unit.

[0733] A fourth generating unit, configured to, in response to a brightness parameter setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the brightness parameter, where the brightness parameter includes at least two brightness key frame controls, and different brightness key frame controls correspond to the same or different brightness parameter values, and the particle special effect includes an animation in which the brightness of the particles gradually changes or mutates with the brightness parameter values corresponding to the at least two brightness key frame controls.

[0734] In some embodiments, the first generating sub-module further includes at least one of a fifth generating unit, a sixth generating unit, and a seventh generating unit.

[0735] A fifth generating unit, configured to, in response to an x-axis emission speed setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the x-axis emission speed, where the x-axis emission speed includes at least one of a maximum x-axis emission speed and a minimum x-axis emission speed, and the particle special effect includes that the initial emission speed of the particles in the x-axis direction is a random value within an x-axis emission speed range, and the x-axis emission speed range is determined based on at least one of the minimum x-axis emission speed and the maximum x-axis emission speed;

[0736] A sixth generating unit, configured to, in response to a y-axis emission speed setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the y-axis emission speed, where the y-axis emission speed includes at least one of a maximum y-axis emission speed and a minimum y-axis emission speed, and the particle special effect includes that the initial emission speed of the particles in the y-axis direction is a random value within a y-axis emission speed range, and the y-axis emission speed range is determined based on at least one of the minimum y-axis emission speed and the maximum y-axis emission speed;

[0737] A seventh generating unit, configured to, in response to a z-axis emission speed setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the z-axis emission speed, where the z-axis emission speed includes at least one of a maximum z-axis emission speed and a minimum z-axis emission speed, and the particle special effect includes that the initial emission speed of the particles in the z-axis direction is a random value within a z-axis emission speed range, and the z-axis emission speed range is determined based on at least one of the minimum z-axis emission speed and the maximum z-axis emission speed.

[0738] In some embodiments, the first generating sub-module further includes an eighth generating unit.

[0739] An eighth generation unit, configured to, in response to an emission position setting operation for the particle generator in the editing area, display in the preview area the particle generator generating a particle special effect based on the emission position, where the emission position includes at least one of a spherical emission position, a triangular emission position, a cylindrical emission position, and a custom emission position, different emission positions corresponding to different emission position intervals, and the particle special effect including the particles being located in the emission position intervals.

[0740] In some embodiments, the first generation sub-module further includes a ninth generation unit.

[0741] The ninth generation unit is configured to, in response to a rotation angle setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the rotation angle, where the rotation angle includes at least one of a maximum rotation angle and a minimum rotation angle;

[0742] Wherein, the particle special effect includes the rotation angle of the particles being a random value in a rotation angle interval, and the rotation angle interval is determined based on at least one of the minimum rotation angle and the maximum rotation angle.

[0743] In some embodiments, the first generation sub-module further includes a tenth generation unit.

[0744] The tenth generation unit is configured to, in response to a rotation speed setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the rotation speed, where the rotation speed includes at least one of a maximum rotation speed and a minimum rotation speed;

[0745] Wherein, the particle special effect includes the rotation speed of the particles being a random value in a rotation speed interval, and the rotation speed interval is determined based on at least one of the minimum rotation speed and the maximum rotation speed.

[0746] In some embodiments, the first generation sub-module further includes an eleventh generation unit.

[0747] The eleventh generation unit is configured to, in response to a cycle period setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the cycle period.

[0748] In some embodiments, the first generation sub-module further includes a twelfth generation unit.

[0749] The twelfth generation unit is configured to, in response to a particle texture mapping setting operation for the particle generator in the editing area, display in the preview area the particle generator generating the particle special effect based on the particle texture mapping.

[0750] In some embodiments, the first generation sub-module further includes a thirteenth generation unit.

[0751] The thirteenth generation unit is configured to, in response to an operation of setting the generation rate of the particle generator in the editing area, display in the preview area the particle special effect generated by the particle generator based on the generation rate, where the particle special effect includes the particle generator generating a first number of particles within the second unit time, and the generation rate is positively correlated with the first number.

[0752] In some embodiments, the first generation sub-module further includes at least one of a fourteenth generation unit, a fifteenth generation unit, and a sixteenth generation unit.

[0753] The fourteenth generation unit is configured to, in response to an operation of setting the x-axis acceleration of the particle generator in the editing area, display in the preview area the particle special effect generated by the particle generator based on the x-axis acceleration;

[0754] The fifteenth generation unit is configured to, in response to an operation of setting the y-axis acceleration of the particle generator in the editing area, display in the preview area the particle special effect generated by the particle generator based on the y-axis acceleration;

[0755] The sixteenth generation unit is configured to, in response to an operation of setting the z-axis acceleration of the particle generator in the editing area, display in the preview area the particle special effect generated by the particle generator based on the z-axis acceleration.

[0756] In some embodiments, the apparatus 1100 further includes a second setting module.

[0757] The second setting module is configured to, in response to an operation of setting the base color of the particle generator, set the base color of the particle generator, where the base of the particle generator is used to indicate at least one of the position and angle of the particle generator in the virtual environment in the editor interface.

[0758] In some embodiments, the apparatus 1100 further includes a fourth display module, and the second setting module includes at least one of a fourth determination sub-module and a fifth determination sub-module.

[0759] The fourth display module is configured to, in response to a triggering operation on the base color setting entry of the particle generator, display at least one of a base background color control, a base top color control, a base color selection tab page, and a base color selection operation control in the editor interface;

[0760] A fourth determination sub-module, configured to, when the base color control is in a selected state, in response to a trigger operation on the base color selection operation control, determine that the base color of the particle generator is the color value selected in the base color selection operation control;

[0761] A fifth determination sub-module, configured to, when the top color control of the base is in a selected state, in response to a trigger operation on the second color selection operation control, determine that the top color of the base of the particle generator is the color value selected in the base color selection operation control;

[0762] Wherein, the base color selection tab page is used to indicate a color selection method; the base color selection tab page includes at least one of a color palette tab page, a color mixing palette tab page, and a history tab page; different base color selection tab pages correspond to different base color selection operation controls; the color palette tab page corresponds to a color palette color selection control; the color mixing palette tab page corresponds to a color mixing palette color selection control; the history tab page corresponds to a history color selection control; the base color selection operation control is used to select a color from at least one candidate color.

[0763] In some embodiments, the apparatus 1100 further includes a fourth display module.

[0764] The fourth display module is configured to, in response to a base color setting operation on the particle editor in the editing area, display the set base color of the particle generator in the preview area, where the base color includes a gradient color that gradually changes from the base color to the top color of the base from bottom to top, or a gradient color that gradually changes from the top color of the base to the base color from top to bottom.

[0765] In some embodiments, the apparatus 1100 further includes at least one of a first selection module and a second selection module.

[0766] The first selection module is configured to, in response to a selection operation on the particle generator, set the particle generator to a selected state, and add an indication box to the particle generator, where the indication box is used to indicate the selected state;

[0767] The second selection module is configured to, in response to an editing operation on the particle generator, maintain the particle generator in the selected state, and hide the indication box.

[0768] In some embodiments, the apparatus 1100 further includes a signal setting module.

[0769] The signal setting module is configured to, in response to a setting operation on the trigger signal of the particle generator, set the trigger signal of the particle generator;

[0770] Wherein, the trigger signal includes at least one of an automatically generated signal, an open signal, and a close signal; the automatically generated signal is used to instruct the particle generator to automatically generate the particles; the open signal is used to instruct the particle generator to start generating the particles based on the open signal; the close signal is used to instruct the particle generator to stop generating the particles based on the close signal.

[0771] In some embodiments, the apparatus 1100 further includes a first control module and a second control module.

[0772] The first control module is configured to set a signal trigger for the particle generator in the virtual environment, and in response to the signal trigger receiving a first trigger signal, control the particle generator to generate the particles;

[0773] The second control module is configured to display a signal trigger control on the editor interface, and in response to the signal trigger control receiving a second trigger signal, control the particle generator to generate the particles.

[0774] In some embodiments, the apparatus 1100 further includes a motion setting module.

[0775] The motion setting module is configured to set a motion mode of the particle generator in response to a motion control operation on the particle generator;

[0776] Wherein, the motion mode of the particle generator includes one of a full motion mode, a one-way displacement mode, a reciprocating displacement, a one-way rotation mode, a swinging motion mode, and a waypoint motion mode.

[0777] It should be noted that: when the apparatus provided in the above embodiments realizes its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the apparatus provided in the above embodiments and the method embodiments belong to the same concept, and the specific implementation process can be seen in the method embodiments, which will not be elaborated here.

[0778] Figure 29 The structural block diagram of a computer device provided by an exemplary embodiment of the present application is shown.

[0779] The computer device 1200 may be a portable mobile terminal, which is also referred to as a mobile terminal in this embodiment. For example: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players. The computer device 1200 may also be referred to by other names such as user equipment, portable terminal, etc.

[0780] Generally, the computer device 1200 includes a processor 1201 and a memory 1202.

[0781] The processor 1201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0782] The memory 1202 may include one or more computer-readable storage media, and the computer-readable storage media may be tangible and non-transitory. The memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1202 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1201 to implement the UGC special effect generation method in the game program provided in the embodiments of the present application.

[0783] In some embodiments, the computer device 1200 may further optionally include: a peripheral device interface 1203 and at least one peripheral device. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1204, a touch display screen 1205, a camera 1206, an audio circuit 1207, and a power supply 1208.

[0784] The peripheral device interface 1203 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.

[0785] The radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1204 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, etc. The radio frequency circuit 1204 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, each generation of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1204 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.

[0786] The touch display screen 1205 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1205 also has the ability to collect touch signals on or above the surface of the touch display screen 1205. The touch signals can be input as control signals to the processor 1201 for processing. The touch display screen 1205 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 1205, which is provided on the front panel of the computer device 1200; in other embodiments, there may be at least two touch display screens 1205, which are respectively provided on different surfaces of the computer device 1200 or are in a foldable design; in some embodiments, the touch display screen 1205 may be a flexible display screen, which is provided on a curved surface or a folding surface of the computer device 1200. Even further, the touch display screen 1205 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The touch display screen 1205 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0787] The camera module 1206 is used to collect images or videos. Optionally, the camera module 1206 includes a front camera and a rear camera. Generally, the front camera is used to implement video calls or selfies, and the rear camera is used to take photos or videos. In some embodiments, there are at least two rear cameras, which are respectively any one of a main camera, a depth-of-field camera, and a wide-angle camera, so as to implement the function of background blurring by fusing the main camera and the depth-of-field camera, and implement panoramic shooting and VR (Virtual Reality) shooting functions by fusing the main camera and the wide-angle camera. In some embodiments, the camera module 1206 may further include a flash. The flash can be a single-color-temperature flash or a dual-color-temperature flash. A dual-color-temperature flash refers to a combination of a warm-light flash and a cold-light flash, which can be used for light compensation under different color temperatures.

[0788] The audio circuit 1207 is used to provide an audio interface between the user and the computer device 1200. The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1201 for processing, or input to the radio frequency circuit 1204 to achieve voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1200. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1207 may further include a headphone jack.

[0789] The power supply 1208 is used to supply power to each component in the computer device 1200. The power supply 1208 may be alternating current, direct current, a disposable battery or a rechargeable battery. When the power supply 1208 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0790] In some embodiments, the computer device 1200 further includes one or more sensors 1209. The one or more sensors 1209 include but are not limited to: an acceleration sensor 1210, a gyroscope sensor 1211, a pressure sensor 1212, an optical sensor 1213, and a proximity sensor 1214.

[0791] The acceleration sensor 1210 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the computer device 1200. For example: the acceleration sensor 1210 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1201 can control the touch display screen 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1210. The acceleration sensor 1210 can also be used for collecting game or user movement data.

[0792] The gyroscope sensor 1211 can detect the body direction and rotation angle of the computer device 1200. The gyroscope sensor 1211 can cooperate with the acceleration sensor 1210 to collect the 3D actions of the user on the computer device 1200. Based on the data collected by the gyroscope sensor 1211, the processor 1201 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0793] The pressure sensor 1212 can be disposed on the side frame of the computer device 1200 and / or the lower layer of the touch display screen 1205. When the pressure sensor 1212 is disposed on the side frame of the computer device 1200, it can detect the holding signal of the user on the computer device 1200, and perform left / right hand recognition or shortcut operations according to the holding signal. When the pressure sensor 1212 is disposed on the lower layer of the touch display screen 1205, it can control the operable controls on the UI interface according to the pressure operation of the user on the touch display screen 1205. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0794] The optical sensor 1213 is used to collect the ambient light intensity. In one embodiment, the processor 1201 can control the display brightness of the touch display screen 1205 according to the ambient light intensity collected by the optical sensor 1213. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1205 is decreased. In another embodiment, the processor 1201 can also dynamically adjust the shooting parameters of the camera module 1206 according to the ambient light intensity collected by the optical sensor 1213.

[0795] The proximity sensor 1214, also known as the distance sensor, is usually disposed on the front of the computer device 1200. The proximity sensor 1214 is used to collect the distance between the user and the front of the computer device 1200. In one embodiment, when the proximity sensor 1214 detects that the distance between the user and the front of the computer device 1200 is gradually decreasing, the processor 1201 controls the touch display screen 1205 to switch from the lit state to the off state; when the proximity sensor 1214 detects that the distance between the user and the front of the computer device 1200 is gradually increasing, the processor 1201 controls the touch display screen 1205 to switch from the off state to the lit state.

[0796] Those skilled in the art can understand that Figure 27 the structure shown in

[0797] In an exemplary embodiment, the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement the UGC special effect generation method in the game program provided by the above method embodiment.

[0798] The present application provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement the UGC special effect generation method in the game program provided by the above method embodiment.

[0799] The present application provides a computer program product or a computer program, which includes computer instructions. The computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the processor of the computer device is loaded and executed to implement the UGC special effect generation method in the game program provided by the above method embodiment.

[0800] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0801] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. The computer-readable storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disc, etc.

[0802] Those skilled in the art should be able to realize that in the above one or more examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, where communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0803] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.< / k> < / k> < / t> < / t> < / t> < / t>

Claims

1. A method for generating UGC special effects in a game program, characterized in that: The method is executed by a terminal, the terminal runs the game program, and the game program has a UGC editor. The method includes: Displaying a particle generator in an editor interface of the UGC editor; In response to an attribute setting operation for the particle generator, setting attribute parameters of particles generated by the particle generator; In response to a trigger operation on the particle generator, a particle special effect is generated based on the attribute parameter, and the particle special effect includes at least one particle generated by the particle generator.

2. The method according to claim 1, characterized in that The step of setting the attribute parameters of the particles generated by the particle generator in response to the attribute setting operation for the particle generator comprises: In response to a property setting operation for the particle generator, displaying at least two keyframe controls in the editor interface; In response to a trigger operation on an i-th key frame control among the at least two key frame controls, determining that the attribute parameter value of the particle at the i-th key frame moment is the attribute parameter value corresponding to the i-th key frame control; Among them, the at least two key frame controls are used to edit the attribute parameter values ​​of the particle at at least two key frame moments in the cycle; the cycle is used to indicate the time from the generation to the disappearance of the particle; each of the key frame controls corresponds to the key frame moment one by one, the key frame moment is the moment corresponding to the key frame control in the cycle, and i is a positive integer.

3. The method according to claim 2, characterized in that The attribute parameter includes at least one of a color parameter, a scaling parameter, a transparency parameter, and a brightness parameter.

4. The method according to claim 2 or 3, characterized in that: The attribute parameters include color parameters, and the color parameters are used to indicate the color of the particles generated by the particle generator in a cycle; In response to the property setting operation for the particle generator, at least two keyframe controls are displayed in the editor interface, including: In response to a trigger operation on a color setting entry of the particle generator, displaying at least one of at least two color keyframe controls, a color coordinate axis, a particle color selection tab, and a particle color selection operation control on the editor interface; The step of determining, in response to a trigger operation on an i-th key frame control among the at least two key frame controls, that the attribute parameter value of the particle at the i-th key frame moment is the attribute parameter value corresponding to the i-th key frame control comprises: When the i-th color key frame control among the at least two color key frame controls is in a selected state, in response to a trigger operation on the particle color selection operation control, determining that the attribute parameter value of the particle at the i-th key frame moment is the color value selected by the particle color selection operation control; Among them, the at least two color keyframe controls are located in the color coordinate axis; the color coordinate axis is used to indicate the color change of the particle in the cycle; the particle color selection tab is used to indicate the color selection method; the particle color selection tab includes at least one of a color plate tab, a color palette tab, and a history tab; different particle color selection tabs correspond to different particle color selection operation controls; the color plate tab corresponds to a color plate color selection control; the color palette tab corresponds to a color palette color selection control; the history tab corresponds to the history color selection control; the particle color selection operation control is used to select a color from at least one candidate color, and i is a positive integer.

5. The method according to claim 2 or 3, characterized in that: The attribute parameter includes at least one of a scaling parameter, a transparency parameter, and a brightness parameter; In response to the property setting operation for the particle generator, at least two keyframe controls are displayed in the editor interface, including: In response to a triggering operation on a property setting entry of the particle generator, displaying a property coordinate system and at least two keyframe controls located in the property coordinate system on the editor interface, wherein a first coordinate axis of the property coordinate system is used to indicate a cycle period, and a second coordinate axis of the property coordinate system is used to indicate a property parameter; The step of determining, in response to a trigger operation on an i-th key frame control among the at least two key frame controls, that the attribute parameter value of the particle at the i-th key frame moment is the attribute parameter value corresponding to the i-th key frame control comprises: When the ith key frame control among the at least two key frame controls is in a selected state, in response to a drag operation on the ith key frame control, the attribute parameter value of the particle at the ith key frame moment is determined to be the attribute parameter value corresponding to the ith key frame control in the attribute coordinate system, where i is a positive integer.

6. The method according to claim 5, characterized in that The attribute parameters of the particles include a scaling parameter, and the scaling parameter is used to indicate the scaling degree of the particles generated by the particle generator in a cycle; In response to a triggering operation on a property setting entry of the particle generator, displaying a property coordinate system and at least two keyframe controls located in the property coordinate system on the editor interface, wherein a first coordinate axis of the property coordinate system is used to indicate a cycle period, and a second coordinate axis of the property coordinate system is used to indicate a property parameter, including: In response to a triggering operation on a zoom setting entry of the particle generator, a zoom coordinate system and at least two zoom keyframe controls located in the zoom coordinate system are displayed in the editor interface, wherein a first coordinate axis of the zoom coordinate system is used to indicate a cycle period, and a second coordinate axis of the zoom coordinate system is used to indicate a zoom parameter; When the i-th key frame control among the at least two key frame controls is in a selected state, in response to a drag operation on the i-th key frame control, determining the attribute parameter value of the particle at the i-th key frame moment as the attribute parameter value corresponding to the i-th key frame control in the attribute coordinate system, comprises: When the ith scaling keyframe control among the at least two scaling keyframe controls is in a selected state, in response to a drag operation on the ith scaling keyframe control, the attribute parameter value of the particle at the ith keyframe moment is determined to be the scaling parameter value corresponding to the ith scaling keyframe control in the scaling coordinate system, where i is a positive integer.

7. The method according to claim 5, characterized in that The property parameters of the particles include a transparency parameter, and the transparency parameter is used to indicate the transparency of the particles generated by the particle generator in a cycle; In response to a triggering operation on a property setting entry of the particle generator, displaying a property coordinate system and at least two keyframe controls located in the property coordinate system on the editor interface, wherein a first coordinate axis of the property coordinate system is used to indicate a cycle period, and a second coordinate axis of the property coordinate system is used to indicate a property parameter, including: In response to a triggering operation on a transparency setting entry of the particle generator, a transparency coordinate system and at least two transparency keyframe controls located in the transparency coordinate system are displayed in the editor interface, wherein a first coordinate axis of the transparency coordinate system is used to indicate a cycle period, and a second coordinate axis of the transparency coordinate system is used to indicate a transparency parameter; When the i-th key frame control among the at least two key frame controls is in a selected state, in response to a drag operation on the i-th key frame control, determining the attribute parameter value of the particle at the i-th key frame moment as the attribute parameter value corresponding to the i-th key frame control in the attribute coordinate system, comprises: When the ith transparency keyframe control among the at least two transparency keyframe controls is in a selected state, in response to a drag operation on the ith transparency keyframe control, the attribute parameter value of the particle at the ith keyframe moment is determined to be the transparency parameter value corresponding to the ith transparency keyframe control in the transparency coordinate system, where i is a positive integer.

8. The method according to claim 5, characterized in that The attribute parameters of the particles include a brightness parameter, and the brightness parameter is used to indicate the brightness of the particles generated by the particle generator in a cycle; In response to a triggering operation on a property setting entry of the particle generator, displaying a property coordinate system and at least two keyframe controls located in the property coordinate system on the editor interface, wherein a first coordinate axis of the property coordinate system is used to indicate a cycle period, and a second coordinate axis of the property coordinate system is used to indicate a property parameter, including: In response to a triggering operation on a brightness setting entry of the particle generator, displaying a brightness coordinate system and at least two brightness keyframe controls located in the brightness coordinate system on the editor interface, wherein a first coordinate axis of the brightness coordinate system is used to indicate a cycle period, and a second coordinate axis of the brightness coordinate system is used to indicate a brightness parameter; When the i-th key frame control among the at least two key frame controls is in a selected state, in response to a drag operation on the i-th key frame control, determining the attribute parameter value of the particle at the i-th key frame moment as the attribute parameter value corresponding to the i-th key frame control in the attribute coordinate system, comprises: When the ith brightness keyframe control among the at least two brightness keyframe controls is in a selected state, in response to a drag operation on the ith brightness keyframe control, the attribute parameter value of the particle at the ith keyframe moment is determined to be the brightness parameter value corresponding to the ith brightness keyframe control in the brightness coordinate system, where i is a positive integer.

9. The method according to any one of claims 2 to 8, characterized in that: The method further comprises: When the i-th keyframe control is in a selected state, in response to an add keyframe operation, when the property parameter corresponds to n keyframe controls, a new keyframe control is inserted between the i-th keyframe control and the (i+1)-th keyframe control to obtain n+1 keyframe controls corresponding to the property parameter, where i is a positive integer and n is a positive integer.

10. The method according to any one of claims 2 to 8, characterized in that: The method further comprises: When the i-th key frame control is in a selected state, in response to a key frame deletion operation, the i-th key frame control is deleted, where i is a positive integer.

11. The method according to any one of claims 1 to 8, characterized in that: The step of setting the attribute parameters of the particles generated by the particle generator in response to the attribute setting operation for the particle generator comprises: In response to an attribute setting operation for the particle generator, an attribute parameter interval of the particle is determined, where the attribute parameter interval is used to indicate a parameter range of attribute parameter values ​​randomly generated by the particle.

12. The method according to claim 11, characterized in that The attribute parameter includes at least one of a launch speed, a launch position, a rotation angle, and a rotation speed.

13. The method according to claim 11, characterized in that The method further comprises: Displaying at least one of a maximum value setting control and a minimum value setting control on the editor interface; The step of determining the attribute parameter interval of the particle in response to the attribute setting operation for the particle generator comprises at least one of the following: In response to a property setting operation for the maximum value setting control, determining a maximum value of the parameter range of the particle; In response to a property setting operation for the minimum value setting control, a minimum value of the parameter range of the particle is determined.

14. The method according to claim 13, characterized in that The attribute parameters include an emission speed, which is used to indicate an initial movement speed of particles generated by the particle generator, and the emission speed includes at least one of an x-axis emission speed, a y-axis emission speed, and a z-axis emission speed; The method further comprises: Displaying at least one of an x-axis emission speed maximum value setting control, a y-axis emission speed maximum value setting control, a z-axis emission speed maximum value setting control, an x-axis emission speed minimum value setting control, a y-axis emission speed minimum value setting control, and a z-axis emission speed minimum value setting control on the editor interface; The step of determining the maximum value of the parameter range of the particle in response to the property setting operation for the maximum value setting control comprises: In response to a property setting operation for setting the maximum value of the x-axis emission speed control, determining a maximum value of the x-axis emission speed range of the particle; In response to a property setting operation for setting the maximum value of the y-axis emission speed control, determining a maximum value of the y-axis emission speed range of the particle; In response to a property setting operation for setting the maximum value of the z-axis emission speed control, determining a maximum value of the z-axis emission speed range of the particle; The step of determining the minimum value of the parameter range of the particle in response to the property setting operation for the minimum value setting control comprises: In response to a property setting operation for the x-axis emission speed minimum setting control, determining a minimum value of the x-axis emission speed range of the particle; In response to a property setting operation for the y-axis emission speed minimum setting control, determining a minimum value of the y-axis emission speed range of the particle; In response to a property setting operation for the z-axis emission speed minimum setting control, a minimum value of the z-axis emission speed range of the particle is determined.

15. The method according to claim 11, characterized in that The attribute parameters include an emission position, and the emission position is used to indicate an initial position of particles generated by the particle generator; In response to the attribute setting operation for the particle generator, determining the attribute parameter interval of the particle, the attribute parameter interval is used to indicate the parameter range of the attribute parameter value randomly generated by the particle, including: In response to a trigger operation on the emission position control, an emission position interval of the particle is determined, the emission position interval is used to indicate a parameter range of emission position values ​​randomly generated by the particle, and the emission position control is used to indicate the determination of the emission position interval.

16. The method according to claim 15, characterized in that The method further comprises: In response to a triggering operation for setting an emission position entrance for the particle generator, an emission position control is displayed in the editor interface, and the emission position control includes at least one of a spherical parameter control, a triangle parameter control, a cylindrical parameter control, and a custom parameter control.

17. The method according to claim 15 or 16, characterized in that The launch position control includes a spherical parameter control, and the spherical parameter control includes a radius setting control; The step of determining the emission position interval of the particle in response to a trigger operation on the emission position control comprises: In response to a setting operation on the radius setting control, determining a sphere radius; Based on the sphere radius, the emission position interval of the particles is determined as a first spatial range, the first spatial range is a spatial coordinate interval of the surface and the interior of the sphere, and the sphere includes a sphere with the sphere radius as a radius.

18. The method according to claim 15 or 16, characterized in that The launch position control includes a triangle parameter control, and the triangle parameter control includes at least one of a side length setting control and a triangular prism height setting control; The step of determining the emission position interval of the particle in response to a trigger operation on the emission position control comprises: In response to a setting operation on the side length setting control, determining a first side length; In response to a setting operation on a control for setting the height of the triangular prism, determining a first height; Based on at least one of the first side length and the first column height, the emission position interval of the particles is determined to be a second spatial range, and the second spatial range includes a spatial coordinate interval of the triangular prism surface and the interior of the triangular prism.

19. The method according to claim 15 or 16, characterized in that The launch position control includes a cylinder parameter control, and the cylinder parameter control includes at least one of a cylinder radius setting control and a cylinder height setting control; The step of determining the emission position interval of the particle in response to a trigger operation on the emission position control comprises: In response to a setting operation on the cylinder radius setting control, determining a cylinder radius; In response to a setting operation on the cylinder height setting control, determining the cylinder height; Based on at least one of the cylinder radius and the cylinder height, the emission position interval of the particles is determined to be a third spatial range, and the third spatial range includes a spatial coordinate interval of the cylinder surface and the interior of the cylinder.

20. The method according to claim 15 or 16, characterized in that The launch position control includes a custom parameter control, and the custom parameter control includes at least one of an x-axis maximum value setting control, an x-axis minimum value setting control, a y-axis maximum value setting control, a y-axis minimum value setting control, a z-axis maximum value setting control, and a z-axis minimum value setting control; The step of determining the emission position interval of the particle in response to a trigger operation on the emission position control comprises: In response to a property setting operation for the x-axis maximum value setting control, determining a maximum value of the particle in the x-axis position range; In response to a property setting operation for the x-axis minimum value setting control, determining a minimum value of the particle in the x-axis position range; In response to a property setting operation for the y-axis maximum value setting control, determining a maximum value of the particle in the y-axis position range; In response to a property setting operation for the y-axis minimum value setting control, determining a minimum value of the particle in the y-axis position range; In response to a property setting operation for the z-axis maximum value setting control, determining a maximum value of the particle in the z-axis position range; In response to a property setting operation for the z-axis minimum value setting control, a minimum value of the particle's z-axis position range is determined.

21. The method according to claim 13, characterized in that The attribute parameters include a rotation angle, and the rotation angle is used to indicate an initial rotation angle of particles generated by the particle generator; The method further comprises: Displaying at least one of a maximum rotation angle setting control and a minimum rotation angle setting control on the editor interface; The step of determining the maximum value of the parameter range of the particle in response to the property setting operation for the maximum value setting control comprises: In response to a property setting operation for setting the maximum rotation angle value control, determining a maximum value of the rotation angle range of the particle; The step of determining the minimum value of the parameter range of the particle in response to the property setting operation for the minimum value setting control comprises: In response to a property setting operation for the rotation angle minimum value setting control, a minimum value of the rotation angle range of the particle is determined.

22. The method according to claim 14, characterized in that The attribute parameter includes a rotation speed, and the rotation speed is used to indicate the rotation speed of the particles generated by the particle generator; The method further comprises: Displaying at least one of a maximum rotation speed setting control and a minimum rotation speed setting control on the editor interface; The step of determining the maximum value of the parameter range of the particle in response to the property setting operation for the maximum value setting control comprises: In response to a property setting operation for the rotation speed maximum value setting control, determining a maximum value of the rotation speed range of the particle; The step of determining the minimum value of the parameter range of the particle in response to the property setting operation for the minimum value setting control comprises: In response to a property setting operation for the rotation speed minimum setting control, a minimum value of the rotation speed range of the particle is determined.

23. The method according to any one of claims 1 to 8, characterized in that: The step of setting the attribute parameters of the particles generated by the particle generator in response to the attribute setting operation for the particle generator comprises: In response to an attribute setting operation for the particle generator, an attribute parameter value of the particle is determined.

24. The method according to claim 23, characterized in that The attribute parameters include at least one of a cycle period, an emission position, a particle map, a generation rate, and an acceleration.

25. The method according to claim 23, characterized in that The attribute parameters include a cycle period, and the cycle period is used to indicate the existence time of the particles generated by the particle generator; The method further comprises: Displaying a cycle setting control in the editor interface; The step of determining the attribute parameter value of the particle in response to the attribute setting operation for the particle generator comprises: In response to a property setting operation on the cycle setting control, a cycle value of the particle is determined.

26. The method according to claim 23, characterized in that The attribute parameters of the particles include an emission position, and the emission position is used to indicate an initial position of the particles generated by the particle generator; The method further comprises: In response to a triggering operation for setting an entry for an emission position of the particle generator, displaying an emission position control on the editor interface, the emission position control comprising at least one of a spherical parameter control, a triangular parameter control, and a cylindrical parameter control; The step of determining the attribute parameter value of the particle in response to the attribute setting operation for the particle generator comprises at least one of the following: In the case where the emission position control includes a spherical parameter control, in response to a selection operation on the spherical parameter control, determining the emission position interval of the particle to be a fourth spatial range, the fourth spatial range being a spatial coordinate interval of a surface of a sphere and an interior of a sphere, the sphere including a sphere with a first radius as a radius; In the case where the emission position control includes a triangle parameter control, in response to a selection operation on the triangle parameter control, determining the emission position interval of the particle to be a fifth spatial range, the fifth spatial range being a spatial coordinate interval of a triangular prism surface and an interior of the triangular prism, the triangular prism including a triangular prism having a second side length as a side length of an equilateral triangle and a second prism height as a height; In the case where the emission position control includes a cylinder parameter control, in response to a selection operation on the cylinder parameter control, the emission position interval of the particle is determined to be a sixth spatial range, the sixth spatial range is a spatial coordinate interval of the cylinder surface and the interior of the cylinder, and the cylinder includes a cylinder with the second radius as the base radius and the third cylinder height as the height.

27. The method according to claim 23, characterized in that The attribute parameters include a particle map, and the particle map is used to indicate a map of particles generated by the particle generator; The method further comprises: Displaying a particle map selection area on the editor interface, the particle map selection area including at least one particle map control, and different particle map controls corresponding to different particle maps; The step of determining the attribute parameter value of the particle in response to the attribute setting operation for the particle generator comprises: In response to a selection operation on the particle map control, a particle map of the particle is determined.

28. The method according to claim 27, characterized in that The method further comprises: In response to a trigger operation on the particle map selection area, the at least one particle map control displayed in the particle selection area is changed.

29. The method according to claim 23, characterized in that The attribute parameters of the particles include a generation rate, and the generation rate is used to indicate the number of particles generated by the particle generator in a first unit time; The method further comprises: Displaying a generation rate setting control in the editor interface; The step of determining the attribute parameter value of the particle in response to the attribute setting operation for the particle generator comprises: In response to a property setting operation on the generation rate setting control, a generation rate of the particles is determined.

30. The method according to claim 23, characterized in that The property parameter of the particle includes acceleration, the acceleration is used to indicate the acceleration of the particle of the particle generator, and the acceleration includes at least one of x-axis acceleration, y-axis acceleration and z-axis acceleration; The method further comprises: Displaying at least one of an x-axis acceleration setting control, a y-axis acceleration setting control, and a z-axis acceleration setting control on the editor interface; The step of determining the attribute parameter value of the particle in response to the attribute setting operation for the particle generator comprises: In response to a property setting operation on the x-axis acceleration setting control, determining an x-axis acceleration value of the particle; In response to a property setting operation on the y-axis acceleration setting control, determining a y-axis acceleration value of the particle; In response to a property setting operation for the z-axis acceleration setting control, a z-axis acceleration value of the particle is determined.

31. The method according to any one of claims 1 to 30, characterized in that: The editor interface includes a preview area and an editing area, wherein the preview area is used to preview particles generated by the particle generator, and the editing area is used to set attribute parameters of the particle generator; The step of generating a particle effect based on the attribute parameters in response to a trigger operation on the particle generator comprises: In response to a property setting operation on the particle generator in the editing area, the particle generator generates a particle effect based on the property parameters in the preview area.

32. The method according to claim 31, characterized in that The attribute parameters include color parameters, and the color parameters are used to indicate the color of the particles generated by the particle generator in a cycle; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a color parameter setting operation for the particle generator in the editing area, the particle generator generates the particle special effect based on the color parameter, the color parameter includes at least two color key frame controls, different color key frame controls correspond to the same or different color values, and the particle special effect includes an animation in which the color of the particle changes gradually or suddenly between the color values ​​corresponding to the at least two color key frame controls.

33. The method according to claim 31, characterized in that The attribute parameters include a scaling parameter, and the scaling parameter is used to indicate the scaling degree of the particles generated by the particle generator in a cycle; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a scaling parameter setting operation for the particle generator in the editing area, the particle generator generates the particle special effect based on the scaling parameter, the scaling parameter includes at least two scaling key frame controls, different scaling key frame controls correspond to the same or different scaling parameter values, and the particle special effect includes an animation in which the scaling degree of the particle changes gradually or suddenly between the scaling parameter values ​​corresponding to the at least two scaling key frame controls.

34. The method according to claim 31, characterized in that The attribute parameters include a transparency parameter, and the transparency parameter is used to indicate the transparency of the particles generated by the particle generator in a cycle; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a transparency parameter setting operation for the particle generator in the editing area, the particle generator generates the particle special effect based on the transparency parameter, the transparency parameter includes at least two transparency key frame controls, different transparency key frame controls correspond to the same or different transparency parameter values, and the particle special effect includes an animation in which the transparency degree of the particles changes gradually or suddenly between the transparency parameter values ​​corresponding to the at least two transparency key frame controls.

35. The method according to claim 31, characterized in that The attribute parameters include a brightness parameter, and the brightness parameter is used to indicate the brightness of the particles generated by the particle generator in a cycle; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a brightness parameter setting operation for the particle generator in the editing area, the particle generator generates the particle special effect based on the brightness parameter, the brightness parameter includes at least two brightness key frame controls, different brightness key frame controls correspond to the same or different brightness parameter values, and the particle special effect includes an animation in which the brightness of the particles changes gradually or suddenly between the brightness parameter values ​​corresponding to the at least two brightness key frame controls.

36. The method according to claim 31, characterized in that The attribute parameters include an emission speed, which is used to indicate an initial movement speed of particles generated by the particle generator, and the emission speed includes at least one of an x-axis emission speed, a y-axis emission speed, and a z-axis emission speed; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to an operation of setting an x-axis emission speed of the particle generator in the editing area, displaying in the preview area that the particle generator generates the particle special effect based on the x-axis emission speed, the x-axis emission speed including at least one of a maximum x-axis emission speed and a minimum x-axis emission speed, the particle special effect including that an initial emission speed of the particle in the x-axis direction is a random value in an x-axis emission speed interval, the x-axis emission speed interval being determined based on at least one of the minimum x-axis emission speed and the maximum x-axis emission speed; In response to a setting operation for the y-axis emission speed of the particle generator in the editing area, displaying in the preview area that the particle generator generates the particle special effect based on the y-axis emission speed, the y-axis emission speed includes at least one of a maximum y-axis emission speed and a minimum y-axis emission speed, the particle special effect includes that an initial emission speed of the particle in the y-axis direction is a random value in a y-axis emission speed interval, and the y-axis emission speed interval is determined based on at least one of the minimum y-axis emission speed and the maximum y-axis emission speed; In response to a z-axis emission speed setting operation for the particle generator in the editing area, the particle generator is displayed in the preview area to generate the particle special effect based on the z-axis emission speed, the z-axis emission speed includes at least one of a maximum z-axis emission speed and a minimum z-axis emission speed, the particle special effect includes an initial emission speed of the particle in the z-axis direction as a random value in a z-axis emission speed interval, and the z-axis emission speed interval is determined based on at least one of the minimum z-axis emission speed and the maximum z-axis emission speed.

37. The method according to claim 36, characterized in that When the x-axis emission speed of the particle is positive, the particle moves in the positive semi-axis direction of the x-axis; When the x-axis emission velocity of the particle is negative, the particle moves in the negative semi-axis direction of the x-axis; When the y-axis emission speed of the particle is positive, the particle moves in the positive half-axis direction of the y-axis; When the y-axis emission speed of the particle is negative, the particle moves in the negative half-axis direction of the y-axis; When the z-axis emission speed of the particle is positive, the particle moves in the positive half-axis direction of the z-axis; When the z-axis emission velocity of the particle is negative, the particle moves in the negative half-axis direction of the z-axis.

38. The method according to claim 31, characterized in that The attribute parameters include an emission position, and the emission position is used to indicate an initial position of particles generated by the particle generator; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to an emission position setting operation for the particle generator in the editing area, a particle special effect generated by the particle generator based on the emission position is displayed in the preview area, the emission position includes at least one of a spherical emission position, a triangular emission position, a cylindrical emission position and a custom emission position, different emission positions correspond to different emission position intervals, and the particle special effect includes the particle being located in the emission position interval.

39. The method according to claim 31, characterized in that The attribute parameters include a rotation angle, and the rotation angle is used to indicate an initial rotation angle of particles generated by the particle generator; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a rotation angle setting operation for the particle generator in the editing area, displaying in the preview area that the particle generator generates the particle special effect based on the rotation angle, wherein the rotation angle includes at least one of a maximum rotation angle value and a minimum rotation angle value; The particle special effect includes that the rotation angle of the particle is a random value in a rotation angle interval, and the rotation angle interval is determined based on at least one of the minimum rotation angle value and the maximum rotation angle value.

40. The method according to claim 31, characterized in that The attribute parameter includes a rotation speed, and the rotation speed is used to indicate the rotation angular speed of the particles generated by the particle generator; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a rotation speed setting operation for the particle generator in the editing area, displaying in the preview area that the particle generator generates the particle special effect based on the rotation speed, wherein the rotation speed includes at least one of a maximum rotation speed value and a minimum rotation speed value; The particle special effect includes that the rotation speed of the particle is a random value in a rotation speed interval, and the rotation speed interval is determined based on at least one of the minimum rotation speed value and the maximum rotation speed value.

41. The method according to claim 31, characterized in that The attribute parameters include a cycle period, and the cycle period is used to indicate the time from generation to disappearance of particles generated by the particle generator; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to an operation of setting a cycle period of the particle generator in the editing area, the particle generator is displayed in the preview area to generate the particle special effect based on the cycle period.

42. The method according to claim 31, characterized in that The attribute parameters include a particle map, and the particle map is used to indicate a map of particles generated by the particle generator; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a particle map setting operation for the particle generator in the editing area, the particle generator is displayed in the preview area to generate the particle special effect based on the particle map.

43. The method according to claim 31, characterized in that The attribute parameter includes a generation rate, and the generation rate is used to indicate the number of particles generated by the particle generator in a second unit time; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area the particle generator generating particle special effects based on the property parameters, comprises: In response to a generation rate setting operation for the particle generator in the editing area, the particle generator is displayed in the preview area to generate the particle special effect based on the generation rate, the particle special effect including the particle generator generating a first number of particles within the second unit time, and the generation rate is positively correlated with the first number.

44. The method according to claim 31, characterized in that The attribute parameter includes acceleration, the acceleration is used to indicate the acceleration of the particles of the particle generator, and the acceleration includes at least one of x-axis acceleration, y-axis acceleration and z-axis acceleration; In response to the property setting operation for the particle generator in the editing area, displaying in the preview area that the particle generator generates particle effects based on the property parameters includes at least one of the following: In response to an operation of setting an x-axis acceleration of the particle generator in the editing area, displaying in the preview area that the particle generator generates the particle special effect based on the x-axis acceleration; In response to a setting operation of a y-axis acceleration of the particle generator in the editing area, displaying in the preview area that the particle generator generates the particle special effect based on the y-axis acceleration; In response to a z-axis acceleration setting operation for the particle generator in the editing area, the particle generator is displayed in the preview area to generate the particle effect based on the z-axis acceleration.

45. The method according to any one of claims 1 to 44, characterized in that The method further comprises: In response to a base color setting operation for the particle generator, a base color of the particle generator is set, and the base of the particle generator is used to indicate at least one of a position and an angle of the particle generator in the virtual environment in the editor interface.

46. ​​The method according to claim 45, characterized in that The method further comprises: In response to a trigger operation on a base color setting entry of the particle generator, displaying at least one of a base bottom color control, a base top color control, a base color selection tab, and a base color selection operation control on the editor interface; In response to the base color setting operation for the particle generator, setting the base color of the particle generator includes at least one of the following: When the base background color control is in a selected state, in response to a trigger operation on the base color selection operation control, determining the base background color of the particle generator to be the color value selected in the base color selection operation control; When the base top color control is in a selected state, in response to a trigger operation on the second color selection operation control, determining the base top color of the particle generator to be the color value selected in the base color selection operation control; Among them, the base color selection tab is used to indicate the color selection method; the base color selection tab includes at least one of a color palette tab, a color palette tab, and a history tab; different base color selection tabs correspond to different base color selection operation controls; the color palette tab corresponds to a color palette color selection control; the color palette tab corresponds to a color palette color selection control; the history tab corresponds to a history color selection control; the base color selection operation control is used to select a color from at least one candidate color.

47. The method according to claim 45, characterized in that The editor interface includes a preview area and an editing area, wherein the preview area is used to preview particles generated by the particle generator, and the editing area is used to set attribute parameters of the particle generator; The method further comprises: In response to a base color setting operation for the particle editor in the editing area, the set base color of the particle generator is displayed in the preview area, and the base color includes a gradient color from a base bottom color to a base top color from bottom to top, or a gradient color from a base top color to a base bottom color from top to bottom.

48. The method according to any one of claims 1 to 44, characterized in that The method further comprises at least one of the following: In response to a selection operation on the particle generator, setting the particle generator to a selected state, and adding an indication box to the particle generator, the indication box being used to indicate the selected state; In response to an editing operation on the particle generator, the particle generator is kept in the selected state, and the indication box is hidden.

49. The method according to any one of claims 1 to 44, characterized in that The method further comprises: In response to a setting operation for a trigger signal of the particle generator, setting a trigger signal of the particle generator; Wherein, the trigger signal includes at least one of an automatic generation signal, an open signal and a closed signal; the automatic generation signal is used to instruct the particle generator to automatically generate the particles; the open signal is used to instruct the particle generator to start generating the particles based on the open signal; and the closed signal is used to instruct the particle generator to stop generating the particles based on the closed signal.

50. The method according to claim 49, characterized in that The method further comprises at least one of the following: A signal trigger is provided for the particle generator in the virtual environment, and in response to the signal trigger receiving a first trigger signal, the particle generator is controlled to generate the particles; A signal trigger control is displayed on the editor interface, and in response to the signal trigger control receiving a second trigger signal, the particle generator is controlled to generate the particles.

51. The method according to any one of claims 1 to 44, characterized in that The method further comprises: In response to a motion control operation on the particle generator, setting a motion mode of the particle generator; The motion mode of the particle generator includes one of a full motion mode, a one-way displacement mode, a cyclic reciprocating displacement mode, a unidirectional rotation mode, a swing motion mode and a waypoint motion mode.

52. A UGC special effect generating device in a game program, characterized in that: The device comprises: A first display module, used for displaying a particle generator in an editor interface of the UGC editor; A first setting module, configured to set attribute parameters of particles generated by the particle generator in response to an attribute setting operation on the particle generator; The first generating module is used to generate a particle special effect based on the attribute parameters in response to a triggering operation on the particle generator, wherein the particle special effect includes at least one particle generated by the particle generator.

53. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the UGC special effect generation method in the game program as described in any one of claims 1 to 51.

54. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating UGC special effects in a game program as described in any one of claims 1 to 51 is implemented.

55. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the UGC special effect generation method in the game program as described in any one of claims 1 to 51.