Particle animation display method and apparatus, device, medium and program product
By displaying particle animation elements and their parameter adjustment areas in the virtual scene of electronic games, users can customize animation parameters, solving the data storage overhead problem caused by the fixed animation elements in the prior art, and achieving the effect of flexible selection and reducing storage burden.
Patent Information
- Application Number
- PCT/CN2024/104728
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-13
- Filing Date
- 2024-07-10
- Publication Date
- 2025-03-20
AI Technical Summary
In the prior art, since the animation elements are preset fixed elements in electronic games, a variety of different styles of animation elements need to be preset, which increases the data storage overhead of the device and cannot meet the user's flexible selection needs.
A method for displaying particle animation is provided. By displaying particle animation elements and their corresponding parameter adjustment areas in a virtual scene, the user can adjust parameters in the parameter adjustment area, and the computer device plays particle animation according to the adjusted parameters.
It realizes that users' flexible selection needs for animation elements are met without increasing data storage overhead, and reduces the data storage burden of computer equipment.
Smart Images

Figure CN2024104728_20032025_PF_FP_ABST
Abstract
Description
Particle animation display method, device, equipment, medium and program product
[0001] This application claims priority to Chinese patent application No. 202311184345.2, filed on September 13, 2023, entitled “Display method, device, equipment, medium and program product for particle animation”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of animation generation, and in particular to a method, device, equipment, medium and program product for displaying particle animation. Background Art
[0003] With the rapid development of computer technology and the diversification of terminals, electronic games are becoming increasingly popular. In electronic games, virtual scenes are usually displayed on terminals, and players can perform role activities in the virtual scenes by controlling virtual objects and virtual objects controlled by other accounts.
[0004] In related technologies, players can freely set animation elements in a virtual scene for playback, wherein an animation element library is displayed in the virtual scene, and players select animation elements from the animation element library and place them in the virtual scene for display.
[0005] However, in the related art, since the animation elements are pre-set fixed elements, in order to meet the player's selection needs, it is necessary to pre-set a variety of animation elements of different styles, which increases the data storage overhead of the device.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a method, apparatus, device, medium, and program product for displaying particle animations, which can reduce data storage overhead while meeting user element selection requirements. The technical solution is as follows.
[0008] In one aspect, a method for displaying particle animation is provided, which is performed by a computer device, and the method includes:
[0009] Displaying particle animation elements in a virtual scene, wherein the virtual scene also includes a master virtual object controlled by a master account, wherein the master account has editing authority for the virtual scene, and the master virtual object is used to be controlled to participate in scene activities in the virtual scene;
[0010] Displaying a parameter adjustment area corresponding to the particle animation element, wherein the parameter adjustment area includes display parameters corresponding to the particle animation element;
[0011] receiving a parameter adjustment operation in the parameter adjustment area, wherein the parameter adjustment operation is used to instruct adjustment of display parameters of the particle animation element in the virtual scene image;
[0012] The particle animation corresponding to the particle animation element is played based on the parameter adjustment operation.
[0013] In another aspect, a device for displaying particle animation is provided, the device comprising:
[0014] A display module, configured to display particle animation elements in a virtual scene, wherein the virtual scene also includes a master virtual object controlled by a master account, wherein the master account has editing authority for the virtual scene, and the master virtual object is configured to be controlled to participate in scene activities in the virtual scene;
[0015] The display module is further configured to display a parameter adjustment area corresponding to the particle animation element, wherein the parameter adjustment area includes display parameters corresponding to the particle animation element;
[0016] A receiving module, configured to receive a parameter adjustment operation in the parameter adjustment area, wherein the parameter adjustment operation is used to instruct adjustment of display parameters of the particle animation element in the virtual scene image;
[0017] A playing module is used to play the particle animation corresponding to the particle animation element based on the parameter adjustment operation.
[0018] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the particle animation display method as described in any of the above-mentioned embodiments of the present application.
[0019] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement a method for displaying particle animation as described in any of the above-mentioned embodiments of the present application.
[0020] In another aspect, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the particle animation display method described in any of the above embodiments.
[0021] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0022] If the master account has editing privileges for the virtual scene, a particle animation element and a corresponding parameter adjustment area are displayed in the virtual scene. When a user triggers a parameter adjustment operation in the parameter adjustment area, the computer device plays the modified particle animation corresponding to the particle animation element in accordance with the parameter adjustment operation. In other words, the parameter adjustment process of the particle animation element is visualized through the parameter adjustment area, making it easier for the user to freely adjust the display parameters of the particle animation element. This not only meets the particle animation selection needs of different users, but also avoids the computer having to pre-select and store multiple styles of particle animation elements, thereby reducing the computer's data storage overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] FIG1 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0024] FIG2 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application;
[0025] FIG3 is a flow chart of a method for displaying particle animation provided by an exemplary embodiment of the present application;
[0026] FIG4 is a flow chart of a method for displaying particle animation provided by another exemplary embodiment of the present application;
[0027] FIG5 is a schematic diagram of a parameter adjustment area provided by an exemplary embodiment of the present application;
[0028] FIG6 is a schematic diagram of a site selection sequence provided by an exemplary embodiment of the present application;
[0029] FIG7 is a flow chart of a key frame array generation process provided by an exemplary embodiment of the present application;
[0030] FIG8 is a flow chart of a particle animation display process provided by an exemplary embodiment of the present application;
[0031] FIG9 is a schematic diagram showing a particle animation after parameter adjustment provided by another exemplary embodiment of the present application;
[0032] FIG10 is a schematic diagram showing a particle animation after parameter adjustment according to an exemplary embodiment of the present application;
[0033] FIG11 is a schematic diagram showing a particle animation after parameter adjustment according to an exemplary embodiment of the present application;
[0034] FIG12 is a flow chart of a particle animation display method provided by an exemplary embodiment of the present application;
[0035] FIG13 is a schematic diagram of a selected state box provided by an exemplary embodiment of the present application;
[0036] FIG14 is a schematic diagram of a motion adjustment area provided by an exemplary embodiment of the present application;
[0037] FIG15 is a schematic diagram of a parameter adjustment method provided by an exemplary embodiment of the present application;
[0038] FIG16 is a schematic diagram of a parameter adjustment method provided by an exemplary embodiment of the present application;
[0039] FIG17 is a schematic diagram of a parameter adjustment method provided by an exemplary embodiment of the present application;
[0040] FIG18 is a schematic diagram of a parameter adjustment method provided by an exemplary embodiment of the present application;
[0041] FIG19 is a schematic diagram of a parameter adjustment method provided by an exemplary embodiment of the present application;
[0042] FIG20 is a schematic diagram of a parameter adjustment method provided by an exemplary embodiment of the present application;
[0043] FIG21 is a schematic diagram of a motion unit mode superposition display provided by an exemplary embodiment of the present application;
[0044] FIG22 is a schematic diagram of a waypoint motion mode provided by an exemplary embodiment of the present application;
[0045] FIG23 is a schematic diagram of a motion parameter adjustment method provided by an exemplary embodiment of the present application;
[0046] FIG24 is a schematic diagram of basic parameter adjustment provided by an exemplary embodiment of the present application;
[0047] FIG25 is a schematic diagram of a display method of a particle animation provided by an exemplary embodiment of the present application;
[0048] FIG26 is a structural diagram of a display device for particle animation provided by an exemplary embodiment of the present application;
[0049] FIG27 is a structural diagram of a display device for particle animation provided by another exemplary embodiment of the present application;
[0050] FIG28 is a structural block diagram of a terminal provided by another exemplary embodiment of the present application. DETAILED DESCRIPTION
[0051] First, a brief introduction is given to the terms involved in the embodiments of this application.
[0052] A virtual environment refers to the virtual environment displayed (or provided) when an application is running on a terminal. This virtual environment can be a simulation of the real world, a semi-simulated, semi-imaginary three-dimensional environment, or a purely imaginary three-dimensional environment. The virtual environment can be any of two-dimensional, 2.5-dimensional, and three-dimensional. The following embodiments illustrate a two-dimensional virtual environment, but this is not a limitation.
[0053] Virtual objects are movable objects in a virtual environment. These can include virtual chess pieces, virtual people, virtual animals, and animated characters. Examples include people, animals, plants, oil drums, walls, and rocks displayed in a virtual environment. Alternatively, virtual objects can be three-dimensional models created using animation skeletal technology. Each virtual object has its own unique shape and volume within the virtual environment and occupies a portion of the virtual space.
[0054] User-generated content (UGC) refers to content created by users online and shared with other users. When applying UGC to gaming scenarios, designers can encourage user participation in the design of game content, including level maps, gameplay, and ecosystems, by providing UGC editing mechanisms and corresponding UGC editor capabilities within the game program.
[0055] The implementation environment of this application is introduced. Figure 1 shows a schematic diagram of the implementation environment provided by an exemplary embodiment of this application. The implementation environment includes: a terminal 110, a server 120 and a communication network 130, wherein the terminal 110 and the server 120 are connected via the communication network 130.
[0056] A target application 111 is installed and running in the terminal 110, wherein the target application 111 is an application that supports a two-dimensional virtual environment or a three-dimensional virtual environment. The target application 111 can be any one of a virtual reality application, a three-dimensional map program, an auto chess game, a strategy game, a puzzle game, a massively multiplayer online role-playing game (MMORPG), a third-person shooter (TPS), a first-person shooter (FPS), a multiplayer online battle arena (MOBA), a multiplayer gunfight survival game, a sports game, a casual game, and a sandbox game. In one achievable embodiment, the target application 111 can be a stand-alone application, such as a stand-alone strategy game program, or a networked application.
[0057] Optionally, when the target application 111 is implemented as a stand-alone application, the terminal displays the particle animation elements in the virtual scene and displays the parameter adjustment area corresponding to the particle animation elements. When the terminal receives a parameter adjustment operation in the parameter adjustment area, the particle animation corresponding to the particle animation element is played according to the parameter adjustment operation (it is worth noting that the above situation is not shown in Figure 1).
[0058] Optionally, when the target application 111 is implemented as a networked application, as shown in FIG1 , taking the target application 111 as an educational game as an example, the terminal 110 displays a particle animation element in a virtual scene and displays a parameter adjustment area corresponding to the particle animation element, wherein the parameter adjustment area includes multiple display parameters corresponding to the particle animation element. When the terminal 110 receives a parameter adjustment operation in the parameter adjustment area, it generates a parameter adjustment request and sends it to the server 120, wherein the parameter adjustment request is used to request adjustment of the display parameters of the particle animation element. After receiving the parameter adjustment request, the server 120 adjusts the display parameters of the particle animation element, obtains a parameter adjustment result for the particle animation element, and feeds the parameter adjustment result back to the terminal 110, wherein the parameter adjustment result includes multiple adjusted display parameters corresponding to the particle animation element. After receiving the parameter adjustment result, the terminal 110 renders the virtual scene and displays the particle animation corresponding to the particle animation element.
[0059] The above-mentioned terminal 110 may be optional, and the terminal may be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a smart TV, a smart car, and other terminal devices in various forms, and the embodiments of the present application are not limited to this.
[0060] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Optionally, server 120 performs primary computing tasks, and terminal 110 performs secondary computing tasks; alternatively, server 120 performs secondary computing tasks, and terminal 110 performs primary computing tasks; alternatively, server 120 and terminal 110 utilize a distributed computing architecture for collaborative computing.
[0061] It is worth noting that the above-mentioned servers can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), as well as big data and artificial intelligence platforms.
[0062] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data calculation, storage, processing and sharing.
[0063] In some embodiments, the above-mentioned server can also be implemented as a node in a blockchain system.
[0064] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions.
[0065] FIG2 shows a block diagram of an electronic device provided by an exemplary embodiment of the present application. The electronic device 200 includes an operating system 220 and an application 222 .
[0066] The operating system 220 is the underlying software that provides application programs 222 with secure access to the computer's hardware.
[0067] Application 222 is an application that supports a virtual environment. Optionally, application 222 is an application that supports a three-dimensional virtual environment. Application 222 can be any of a virtual reality application, a three-dimensional map application, an MMORPG, a TPS game, an FPS game, a MOBA game, a multiplayer shooter survival game, a social game, a puzzle game, a strategy game, a sports game, a casual game, or a sandbox game. Application 222 can be a stand-alone application, such as a stand-alone game program, or a networked application.
[0068] In this embodiment, application 222 includes a UGC editor, which is used to provide users with editing permissions for virtual scenes. Optionally, editing permissions include the ability to build virtual scenes, build components displayed in virtual scenes, and set the display characteristics of components (e.g., size, color, special effects, etc.). This allows users to control virtual objects and other virtual objects in the built virtual scenes to perform scene activities, such as virtual games and level-breaking activities. Furthermore, the virtual scenes built by users can also be shared with other users, providing them with a virtual experience.
[0069] That is, setting up a UGC editor in the application allows users to have the ability to independently edit virtual scenes, which increases users' creative enthusiasm for scene editing and enables users to have not only activity experience but also creative experience during the game. Moreover, users can edit and build virtual scenes and then share them with other users, which can promote communication between users during the game, improve user satisfaction, and enrich the playability of the game.
[0070] In combination with the above introduction, the display method of particle animation provided by the present application is explained. The method is executed by a computer device. Optionally, the method can be executed by a server or a terminal, or can be executed by a server and a terminal together. In the embodiment of the present application, the method is explained by taking the execution of the method by the terminal as an example. As shown in Figure 3, the method includes the following steps.
[0071] Step 310: Display the particle animation elements in the virtual scene.
[0072] The virtual scene also includes a master virtual object controlled by a master account. The master account has editing authority over the virtual scene. The master virtual object is used to be controlled to participate in scene activities in the virtual scene.
[0073] In some embodiments, the terminal runs a target application, wherein the target application is an application with a virtual scene display function. That is, a virtual scene is displayed during the running of the target application.
[0074] Schematically, a particle animation element refers to an animation element that displays particle animation within a virtual scene. Particle animation is an animation composed of a large number of randomly generated particles within a certain range, and is widely used to simulate weather systems, smoke, and lighting effects. For example, if the particle animation element is a tornado, the particle animation will play an animation of the tornado's movement.
[0075] Optionally, the particle animation element is an animation element that is fixedly displayed in the virtual scene, that is, when the virtual scene is displayed, the particle animation element is already included in the virtual scene; or, the particle animation element is an animation element that is automatically displayed in the virtual scene when the display of the virtual scene meets the preset display requirements, for example: when the display time of the virtual scene reaches a preset time threshold, the particle animation element is automatically displayed in the virtual scene; or, the particle animation element is an animation element displayed in the virtual scene based on user selection, for example: in the process of displaying the virtual scene, an element material library is displayed, and after the user selects the particle animation element in the element material library, the particle animation element is displayed in the virtual scene; or, the particle animation element is an animation element generated after user design, for example: in the process of displaying the virtual scene, an element creation area is displayed, and the user obtains the particle animation element by creating in the element creation area, thereby displaying the example animation element created by the user in the virtual scene.
[0076] Illustratively, the terminal runs a target application, and a first account is logged in during the running of the target application. Therefore, the master virtual object is a virtual object controlled by the first account.
[0077] Illustratively, the virtual scene is displayed in a target interface of a target application, where the target interface is a setup interface provided by a user-generated content editor within a game program running on a terminal. Exemplarily, the user-generated content editor is used to create a custom virtual environment by creating or editing virtual components within the setup interface. Within the custom virtual environment, a virtual character can be controlled to perform at least one of the following scene activities: movement, jumping, lying down, climbing, running, and so on.
[0078] Optionally, the editing permission includes at least one of the following capabilities: building a virtual scene, building components in the virtual scene, and adjusting the performance characteristics of components in the virtual scene. Components in the virtual scene are particle animation elements.
[0079] Optionally, the scene activity includes at least one of the following activity types: the master virtual object plays a virtual game with other virtual objects, the master virtual object performs different actions in a virtual scene, the master virtual object socializes with other virtual objects, or the master virtual object completes a specified task with other virtual objects. This embodiment of the present application is not limited to this.
[0080] Optionally, a single particle animation element is displayed in the virtual scene; or, a plurality of particle animation elements are displayed in the virtual scene.
[0081] Step 320: Display the parameter adjustment area corresponding to the particle animation element.
[0082] The parameter adjustment area includes a plurality of display parameters corresponding to the particle animation element. Optionally, the plurality of display parameters may be different types of display parameters.
[0083] Schematically, the parameter adjustment area is an area in the virtual scene used to adjust display parameters of particle animation elements.
[0084] Optionally, the parameter adjustment area is a display area in the virtual scene; or, the parameter adjustment area is a display area superimposed on a scene image corresponding to the virtual scene.
[0085] Optionally, the parameter adjustment area of the particle animation element is displayed when the master account is editing the virtual scene; or when the master account is controlling the master virtual object to perform virtual activities, the parameter adjustment area of the particle animation element is displayed.
[0086] Optionally, the display method of the parameter adjustment area includes at least one of the following methods: 1. When the user selects a particle animation element for display parameter adjustment in the virtual scene, the parameter adjustment area is displayed; 2. When an element selection library area is displayed in the virtual scene, when the user drags the particle animation element from the element selection library area to the virtual scene for display, the element selection library area is switched to be displayed as the parameter adjustment area; 3. When a parameter adjustment control is displayed in the virtual scene, the parameter adjustment area is displayed after receiving the parameter adjustment control. It is worth noting that the above-mentioned display method of the parameter adjustment area is only an illustrative example and is not limited to this embodiment of the present application.
[0087] In one feasible case, when multiple particle animation elements are displayed in a virtual scene, parameter adjustment areas corresponding to the multiple particle animation elements are displayed in the virtual scene; or, when multiple particle animation elements are displayed in the virtual scene, only the parameter adjustment area corresponding to one of the particle animation elements is displayed in the virtual scene, and upon receiving a selection operation for a specified particle animation element, the parameter adjustment area is switched to the parameter adjustment area corresponding to the specified particle animation element.
[0088] Optionally, the parameter adjustment area is a parameter adjustment area corresponding to a randomly selected particle animation element; or, the parameter adjustment area is a parameter adjustment area corresponding to a specified particle animation element selected by the user.
[0089] Optionally, the display parameters include at least one of an appearance type parameter and a motion mode parameter. Appearance type parameters refer to the appearance of the particle animation element displayed in the virtual scene, including at least one of the following display characteristics: color, size, direction, transparency, etc. Motion mode parameters refer to at least one of the following parameter types: the position, movement speed, movement direction, rotation direction, rotation speed, display starting position, display end position, dwell position during display, and movement angular velocity of the particle animation element displayed in the virtual scene.
[0090] Step 330: Receive a parameter adjustment operation in the parameter adjustment area.
[0091] Illustratively, the parameter adjustment operation is used to indicate adjustment of display parameters of the particle animation element in the virtual scene image, that is, the parameter adjustment operation refers to an operation of adjusting the display parameters of the particle animation element.
[0092] Optionally, the particle animation element has initial display parameters during the virtual scene display process, and adjusting the initial display parameters serves as a parameter adjustment operation. Optionally, multiple display parameters can be input in the parameter adjustment area as a parameter adjustment operation. Optionally, parameter adjustment operations can be performed on only a single particle animation element at a time; alternatively, parameter adjustment operations can be performed on multiple particle animation elements simultaneously.
[0093] Optionally, the parameter adjustment operation includes at least one of the following operation modes: 1. Entering a parameter value in the parameter adjustment area as a parameter adjustment operation; 2. Displaying candidate parameter options in the parameter adjustment area and receiving a selection operation of a target parameter option as a parameter adjustment operation; 3. Adjusting parameters through voice input as a parameter adjustment operation. It is worth noting that the above-mentioned parameter adjustment operation modes are merely illustrative examples and are not limited to these in the embodiments of the present application.
[0094] Step 340 : Play the particle animation corresponding to the particle animation element based on the parameter adjustment operation.
[0095] Illustratively, the target display parameters of the particle animation element are determined through the parameter adjustment operation, so that the particle animation of the particle animation element in the virtual scene is displayed according to the target display parameters.
[0096] In some embodiments, the particle animation is an animation generated by continuously playing multiple video frames corresponding to the particle animation elements.
[0097] Optionally, the operation number of the parameter adjustment operation is 1, so the particle animation is played directly according to the target display parameter corresponding to the parameter adjustment operation; or, in the case of multiple parameter adjustment operations, the particle animation is played according to the operation order of the parameter adjustment operations.
[0098] In summary, the particle animation display method provided in the embodiments of the present application displays a particle animation element and a parameter adjustment area corresponding to the particle animation element in the virtual scene, provided that the master account has editing privileges for the virtual scene. After a user triggers a parameter adjustment operation in the parameter adjustment area, the computer device plays the modified particle animation corresponding to the particle animation element in accordance with the parameter adjustment operation. In other words, the parameter adjustment process of the particle animation element is visualized through the parameter adjustment area, facilitating the user's free adjustment of the display parameters of the particle animation element. This not only satisfies the particle animation selection needs of different users, but also avoids the computer having to pre-select and store a variety of particle animation elements, thereby reducing the computer's data storage overhead.
[0099] In some embodiments, the parameter adjustment operation of the appearance type parameter is described in detail. For example, please refer to Figure 4, which shows a particle animation display method provided by an exemplary embodiment of the present application, that is, step 330 also includes steps 331 to 332, and step 330 also includes steps 3301 to 3303, and step 340 also includes steps 341 to 344. As shown in Figure 4, the method includes the following steps.
[0100] Step 331 : In response to receiving a selection operation on a parameter type option in a parameter adjustment area, displaying an adjustment area corresponding to the parameter type option.
[0101] The adjustment area includes various adjustment parameter contents under the parameter type option.
[0102] In some embodiments, the parameter adjustment area includes multiple parameter type options. Schematically, the parameter type options include three types of options: basic type options, appearance type options, and motion type options. The basic type options include basic parameters such as the element size, movement distance, rotation direction, and scaling of the particle animation elements. The appearance type options include appearance parameters such as color, the number of keyframes in the particle animation, and the keyframe position. The motion type options include motion parameters such as the motion mode within a single unit, the motion cycle mode, the start time of the motion, the end time of the motion, the starting position of the motion, the end position of the motion, the motion mode, the position where the motion is stopped, the motion delay time, and the speed type.
[0103] Illustratively, when a selection operation for a parameter type option is received in the parameter adjustment area, an adjustment area corresponding to the parameter type option is displayed, wherein the adjustment area is an adjustment sub-area corresponding to the parameter type option in the parameter adjustment area.
[0104] In this embodiment, when a selection operation is received for an appearance type option in the parameter adjustment area, the appearance adjustment area corresponding to the appearance type option is displayed. For example, please refer to FIG. 5 , which shows a schematic diagram of a parameter adjustment area provided by an exemplary embodiment of the present application. As shown in FIG. 5 , the parameter adjustment area is currently displayed, and when a selection operation is received for an appearance type option 501 in the parameter adjustment area, the appearance adjustment area 510 is displayed.
[0105] In this embodiment, parameter type options are provided to the user so that the user can select different type options to implement parameter adjustment, making it easier for the user to find the parameters that need to be adjusted, thereby improving the efficiency of parameter adjustment operations and enhancing user experience.
[0106] Step 332: Receive a parameter adjustment operation in the adjustment area.
[0107] Schematically, the parameter type option includes an appearance type option, the adjustment area includes an appearance adjustment area, the appearance adjustment area includes multiple candidate position options, and the candidate position options are used to indicate the element display position of the particle animation element during the display process.
[0108] In this embodiment, the parameter type option is implemented as an appearance type option, and the adjustment area is implemented as an appearance adjustment area.
[0109] Illustratively, the candidate position options refer to element display locations corresponding to the particle animation elements during particle animation playback, such as: the top, middle, and bottom of the element; for example: particle animation elements are displayed in layers, including the first layer, the second layer, the third layer, and the fourth layer.
[0110] Schematically, as shown in FIG5 , a plurality of candidate position options 520 are displayed in the appearance adjustment area 510 , wherein the special effect parameter 1 represents the position option corresponding to the element display position 1 .
[0111] In some embodiments, in response to receiving a selection operation for a first position option among multiple candidate position options in the appearance adjustment region, an adjustment subregion corresponding to the first position option is displayed, the adjustment subregion including multiple parameter content options; and an adjustment operation for the parameter content option is received in the adjustment subregion as a parameter adjustment operation. The first position option corresponds to a first display portion, and the first display portion corresponds to a first color.
[0112] Illustratively, when a selection operation for a first position option is received in the appearance adjustment area, an adjustment sub-area corresponding to the first position option is displayed, wherein the adjustment sub-area is used to adjust parameters of the first display portion of the particle animation element.
[0113] Illustratively, multiple parameter content options correspond to different types of parameter types. When an adjustment operation on a target parameter content option is received in the adjustment sub-area, it is regarded as a parameter adjustment operation.
[0114] Illustratively, as shown in FIG. 5 , when a selection operation on the first position option 521 is received in the appearance adjustment area 510 , an adjustment sub-area 530 of the first position option 521 is displayed.
[0115] In this embodiment, the adjustment subarea 530 includes a reset function option 531, a color change bar option 532, a color adjustment function option 533, a keyframe add option 534, and a delete current frame option 535. Reset function option 531 is used to reset the color of the first display portion after being triggered, restoring the preset initial color. The color change bar option 532 refers to the keyframes (circled) corresponding to the particle animation element within the animation playback cycle. The particle animation consists of multiple video frames played continuously, each of which includes a start frame identifier (the leftmost video frame), an end frame identifier (the rightmost video frame), and a keyframe identifier. The start frame, end frame, and keyframe are used to control the color change of the particle animation element, that is, the first display portion of the particle animation element can display a color change at that frame. The start frame and end frame cannot be moved or deleted. They are also keyframes. Keyframes can be added and deleted between the start and end frames using the keyframe add option 534 and the delete current frame option 535, respectively. That is, if the key frame adding option 534 is triggered, a circle mark is added to the color changing over time bar option 532, indicating that a key frame is added. The color adjustment function option 533 is used to adjust the color of the first display part.
[0116] In this embodiment, the playback duration between the start frame and the end frame can be called the "life cycle" of the particle animation.
[0117] In some embodiments, in response to receiving a selection operation on a first key frame in the adjustment sub-area, a color adjustment sub-interface corresponding to the first key frame is displayed, and the first key frame is used to indicate the display moment of the first display part of the particle animation element during the particle animation playback process.
[0118] Schematically, first, a selection operation of the first key frame among multiple key frames is received in the adjustment sub-interface, and the first key frame that needs to be color adjusted is determined, so that the color adjustment sub-interface corresponding to the first key frame is displayed in the adjustment sub-interface, wherein the color adjustment sub-interface displays the color adjustment result corresponding to the first key frame.
[0119] As shown in Figure 5, when a selection operation for the starting frame identifier (the leftmost video frame) is received in the adjustment sub-interface 530, the color adjustment function option 533 corresponding to the starting frame is updated and displayed as a color adjustment sub-interface, wherein the color adjustment function option 533 is implemented as a color palette, and a color adjustment position point 536 is displayed in the color palette to indicate the current color corresponding to the starting frame. If a selection operation for other key frames is received, the color adjustment position point 536 will change accordingly, and the changed position corresponds to the color of the other key frames.
[0120] In some embodiments, a color adjustment operation is received in the color adjustment sub-interface as a parameter adjustment operation, where the color adjustment operation is used to instruct to adjust a first color corresponding to a first display portion to a second color at a first key frame.
[0121] Illustratively, after the first key frame is currently selected, the first display portion corresponding to the first key frame presents a first color, and the color adjustment operation is to adjust the first color to a second color through the color adjustment function option.
[0122] As shown in FIG. 5 , by moving the color adjustment position point 536 , the color corresponding to the first key frame is changed, thereby adjusting the first color corresponding to the first key frame to the second color.
[0123] In some embodiments, in response to receiving a key frame adding operation in the adjustment sub-area, a color adjustment sub-interface corresponding to the second key frame is displayed, wherein the key frame adding operation is used to indicate adding the second key frame.
[0124] Schematically, by triggering the keyframe adding option in the adjustment sub-interface, a second keyframe can be added between the start frame and the end frame, as shown in FIG5 , when a trigger operation for the keyframe adding option 534 is received. A keyframe identifier corresponding to the second keyframe is added at any position between the start frame identifier and the end frame identifier in the color changing over time bar option 532, and the keyframe identifier corresponding to the second keyframe can be moved to adjust the position of the second keyframe between the start frame and the end frame, thereby controlling the display time of the second keyframe in the particle animation. For example, if the second keyframe is shifted to the left, it means that the display time of the second keyframe in the particle animation is advanced, and if the second keyframe is shifted to the right, it means that the display time of the second keyframe in the particle animation is delayed. In this embodiment, a single particle animation element can add up to five keyframes (including the start frame and the end frame).
[0125] In this embodiment, multiple key frames can be added (or deleted) between the start frame and the end frame in the progress bar whose color changes over time, and the color corresponding to each key frame can be adjusted independently, so that the final particle animation element has multiple color changes during the process of playing the particle animation. The more key frames there are, the richer the color change is. That is, the user can not only adjust the color parameters of the entire particle animation element, but also adjust the color parameters of the particle animation element at a certain moment during the process of playing the particle animation, which enriches the user's adjustment methods for animation element parameters.
[0126] In some embodiments, since a particle animation element includes multiple element display locations, parameter adjustments are performed separately for each element display location during parameter adjustment. Therefore, a location selection sequence is displayed in the appearance adjustment area based on the order in which the first position option is selected, indicating the order in which the user adjusts the parameters of the multiple element display locations during the entire parameter adjustment process. In this embodiment, if a particle animation element includes multiple element display locations, only the first element display location is adjusted, or multiple element display locations may be adjusted.
[0127] For illustration, please refer to Figure 6, which shows a schematic diagram of a part selection sequence provided by an exemplary embodiment of the present application. As shown in Figure 6, the appearance adjustment area 610 corresponding to the smoke animation element and the appearance adjustment area 620 corresponding to the tornado animation element are currently displayed. The appearance adjustment area 610 includes position options 611 corresponding to the display part of a single element for performing parameter adjustment operations, and the appearance adjustment area 620 includes position options 621 corresponding to the display parts of multiple elements for performing parameter adjustment operations.
[0128] Optionally, the number of element display locations is preset and fixed; or, the number of element display locations can be determined by the user.
[0129] In some embodiments, a template generation operation is received, the template operation being used to generate a display template according to the adjusted display parameters; in response to receiving a selection operation for a first animation element, the first animation element is displayed in the virtual scene based on the display template, the first animation element being different from the particle animation element.
[0130] In this embodiment, after the adjustment of the display parameters is completed, the adjusted display parameters are stored through the template generation operation, thereby obtaining a display template corresponding to the adjusted display parameters. Therefore, after selecting the first animation element subsequently, the first animation element can be automatically displayed according to the adjusted display parameters, and there is no need to adjust the display parameters corresponding to the animation element again, thereby improving the parameter adjustment efficiency.
[0131] Step 3301: Obtain the playback positions of multiple candidate key frames in the particle animation.
[0132] Illustratively, the adjustment subregion includes multiple candidate keyframes. Parameter adjustment is performed to determine the multiple candidate keyframes corresponding to the particle animation element. Furthermore, the display positions of the multiple candidate keyframes during playback are determined based on the particle animation. The display positions of the multiple candidate keyframes during playback are stored using the Alpha (A channel) of the RGBA four-color channels.
[0133] Step 3302: Obtain color parameters corresponding to multiple candidate key frames based on the color adjustment operation.
[0134] In this embodiment, the color parameters corresponding to the multiple candidate keyframes are determined based on the color adjustment operation in the parameter adjustment operation. The color parameters are stored using the RGB channels of the RGBA four-color channel. The R channel represents the red channel, the G channel represents the green channel, and the B channel represents the blue channel. Therefore, the A channel needs to convert integers between 0 and 255 and floating-point numbers between 0 and 1.
[0135] Step 3303 : Generate a key frame color array based on the playback positions and color parameters of the multiple candidate key frames in the particle animation.
[0136] In this embodiment, multiple candidate key frames are sorted according to their display positions during the particle animation playback process to obtain a key frame sorting result. After the key frame sorting result is serialized, a key frame sequence is generated. The key frame sequence and color parameters are combined to generate a key frame color array and stored in a parameter file corresponding to the particle element animation.
[0137] Schematically, please refer to FIG7 , which shows a flowchart of a key frame array generation process provided by an exemplary embodiment of the present application. As shown in FIG7 , first, a particle animation element instance 701 is created, and the color parameters 702 corresponding to the particle animation element are initialized, wherein initialization refers to setting the color corresponding to the start frame and the color corresponding to the end frame of the particle animation element, and the color parameters corresponding to the display parts of each element in the particle animation element are the same (or different). Then, the color parameters obtained according to the color adjustment operation are recorded through the RGB three channels, and the key frame position is recorded through the A channel 703. Optionally, a key frame is added to the particle animation element 704 or a key frame is deleted 705, thereby arranging all key frames in ascending order according to the display position of the key frame 706, and then all key frames are serialized and stored in a parameter file 707 with the color parameters. The serialized key frames and color parameters are used as a key frame color array.
[0138] Step 341 : Read the key frame color array and determine the color parameters corresponding to the multiple candidate key frames.
[0139] Schematically, during the playing of particle animation, the key frame color array is first read, and the color parameters in the key frame color array are deserialized to the particle animation element, thereby obtaining the color parameters corresponding to the particle animation element at multiple candidate key frames.
[0140] Step 342: traverse multiple candidate key frames to obtain the corresponding arrangement order of the multiple candidate key frames.
[0141] In this embodiment, a key frame array corresponding to the current particle animation is created, and the multiple candidate key frames contained in the current key frame array are traversed to determine the order in which the multiple candidate key frames are arranged in the particle animation.
[0142] Step 343 : Based on the color parameters corresponding to two adjacent candidate key frames in the multiple candidate key frames, a color interpolation operation is performed on the two adjacent candidate key frames to obtain the color transformation corresponding to the particle animation.
[0143] In this embodiment, after determining the color parameters corresponding to multiple frames of candidate key frames, for the i-th frame of video corresponding to the current particle animation, two adjacent candidate key frames corresponding to the i-th frame of video are obtained, and color interpolation operations are performed on the color parameters corresponding to these two frames of video, so as to obtain the color parameters corresponding to the i-th frame of video, and finally obtain the color parameters corresponding to all video frames in the particle animation as the color change corresponding to the particle animation.
[0144] Color interpolation involves calculating the color parameters of the video frames between the two candidate keyframes based on the color parameters corresponding to each other, thereby achieving a color transition between the two candidate keyframes. For example, if keyframe 1 is set to red and keyframe 2 is set to blue, a color gradient from red to blue will appear from keyframe 1 to keyframe 2, thereby calculating the color parameters corresponding to the video frames during the color gradient process. Color interpolation allows the particle animation to adopt a color gradient when changing colors, making the displayed color changes less abrupt and providing a better rendering effect.
[0145] Step 344 : Display the particle animation based on the playback positions and color changes of the multiple candidate key frames in the particle animation.
[0146] During particle animation playback, the completion time of the target keyframe is determined based on the time relationship between the current moment and its adjacent target keyframe moment, thereby displaying the particle animation. If the current moment is less than the target keyframe moment, it indicates that the target keyframe has not yet been completed. If the current moment is greater than the target keyframe moment, it indicates that the target keyframe has been completed, and the next candidate keyframe is used as the target keyframe.
[0147] For illustration, please refer to Figure 8, which shows a flow chart of the particle animation display process provided by an exemplary embodiment of the present application. As shown in Figure 8, first, the color parameters in the key frame array are deserialized to the particle element animation 801, and a key frame array corresponding to the particle animation is created 802. Multiple candidate key frames are traversed in the key frame array 803, and the color parameters of the video frames between the two key frames are calculated by interpolation 804. If the current time is greater than the display time of the target key frame, the completion time of the key frame is refreshed 805. If the current time is less than the display time of the target key frame, the playback ends.
[0148] Illustratively, the parameter adjustment operations for three different appearance type parameters are described below.
[0149] Schematically, please refer to Figures 9, 10, and 11, which illustrate a schematic diagram of a particle animation display after parameter adjustment according to an exemplary embodiment of the present application. As shown in Figure 9, an appearance adjustment area 911 and a particle animation element 901 in a virtual scene are currently displayed. After parameter adjustment is performed in appearance adjustment area 911, particle animation 920 is displayed in the virtual scene, wherein the appearance of particle animation 920 is different from the appearance of particle animation element 901.
[0150] As shown in Figure 10, the appearance adjustment area 1011 and the particle animation element 1001 in the virtual scene are currently displayed. After the parameter adjustment operation is performed in the appearance adjustment area 1011, the particle animation 1020 is displayed in the virtual scene, wherein the appearance of the particle animation 1020 is different from the appearance of the particle animation element 1001.
[0151] As shown in Figure 11, the appearance adjustment area 1111 and the particle animation element 1101 in the virtual scene are currently displayed. After the parameter adjustment operation is performed in the appearance adjustment area 1111, the particle animation 1120 is displayed in the virtual scene, wherein the appearance of the particle animation 1120 is different from the appearance of the particle animation element 1101.
[0152] In some embodiments, in response to receiving a long press operation on a particle animation element in a virtual scene, and the operation duration reaches a preset duration threshold, a parameter introduction area is displayed at the element position corresponding to the particle animation element, and the parameter introduction area includes the adjusted display parameters. The element position is used to indicate a location associated with the particle animation element. Optionally, the element position can be a position around the particle animation element, such as above, below, left, or right, or can be a position suspended above the particle animation element.
[0153] In this implementation, during the process of displaying the particle animation corresponding to a particle animation element in a virtual scene, if a long press operation on the particle animation element is received and the operation duration meets the preset duration threshold, a parameter introduction area corresponding to the particle animation element is displayed above the particle animation element, which is used to show the player the adjusted display parameters corresponding to the current particle animation element, making it easier for other players to obtain the parameter information corresponding to the particle animation element, thereby improving information interoperability.
[0154] In summary, the particle animation display method provided in the embodiments of the present application displays a particle animation element and a parameter adjustment area corresponding to the particle animation element in the virtual scene, provided that the master account has editing privileges for the virtual scene. A user triggers a parameter adjustment operation in the parameter adjustment area, and the computer device plays the modified particle animation corresponding to the particle animation element in accordance with the parameter adjustment operation. In other words, the parameter adjustment process of the particle animation element is visualized through the parameter adjustment area, facilitating the user's free adjustment of the display parameters of the particle animation element. This not only satisfies the particle animation selection needs of different users, but also avoids the computer having to pre-select and store a variety of particle animation elements, thereby reducing the computer's data storage overhead.
[0155] In this embodiment, by selecting a parameter type option, a parameter adjustment operation is performed in the adjustment area corresponding to the parameter type option, so that the user can centrally adjust the display parameters of the same parameter type, thereby improving the parameter adjustment efficiency.
[0156] In this embodiment, when the parameter type option is implemented as an appearance type option, the particle animation element is divided into multiple element display parts, thereby enabling adjustment of appearance parameters of different element display parts, thereby increasing the diversity of appearance parameter adjustment.
[0157] In this embodiment, by selecting key frames in the adjustment sub-area and performing color adjustment operations on the first display portion, the display parameters of the particle animation elements in the virtual scene can be further refined, thereby increasing the types of parameter adjustment.
[0158] In this embodiment, by adding keyframes, the number of color changes of the particle animation element can be increased during the display of the particle animation, and the color change rules are implemented according to the keyframe addition operations triggered by the user, thereby enriching the display method of the particle animation and making the color changes of the generated particle animation more diverse.
[0159] In this embodiment, by generating a key frame color array based on the playback position and color parameters of the candidate key frames in the particle animation, the storage security and orderliness of the color display parameters of the particle animation elements can be improved, the display accuracy of the particle animation can be improved, and the loss or error of color information during the particle animation playback process can be avoided. Moreover, the ordered key frame color array can enhance the logic and consistency of the particle animation color transformation, thereby ensuring the smoothness and visual effect of the generated particle animation.
[0160] In some embodiments, the parameter adjustment operation of the motion type parameter is described in detail. For example, please refer to Figure 12, which shows a flowchart of a particle animation display method provided by an exemplary embodiment of the present application, that is, step 310 also includes step 3101 before step 310, step 320 also includes step 321, and step 330 also includes step 3311. As shown in Figure 12, the method includes the following steps.
[0161] Step 3101: In response to receiving an element selection operation, a selected state box is displayed at an element position corresponding to a particle animation element.
[0162] Schematically, the element selection operation is used to determine the particle animation element for which display parameters are adjusted.
[0163] In some embodiments, the selected state box is used to indicate that the particle animation element is currently in a selected state.
[0164] For illustration, please refer to Figure 13, which shows a schematic diagram of a selected status box provided by an exemplary embodiment of the present application. As shown in Figure 13, a virtual scene 1300 is currently displayed, and the virtual scene 1300 includes an element selection area 1310. The element selection area 1310 includes a variety of particle elements. When a selection operation for a particle animation element 1311 (tornado) is received in the element selection area 1310, it is used as an element selection operation, and the particle animation element 1311 is displayed in the virtual scene 1300, and a selected status box 1312 is displayed at the position where the particle animation element 1311 is located.
[0165] Step 321 : In response to receiving an element editing operation on a particle animation element, canceling the display of the selected state box and displaying a parameter adjustment area corresponding to the particle animation element.
[0166] Illustratively, the element editing operation is used to indicate whether to adjust display parameters of a particle animation element.
[0167] As shown in FIG13 , an editing control 1313 is displayed in a virtual scene 1300 . When a trigger operation of the editing control 1313 is received, the selected state box 1312 is canceled and a parameter adjustment area 1314 corresponding to the particle animation 1311 is displayed.
[0168] Step 3311 , in response to receiving a selection operation on a first motion parameter in a motion adjustment area as a parameter adjustment operation.
[0169] The parameter type option includes a motion type option, and the adjustment area includes a motion adjustment area.
[0170] Illustratively, the parameter type option also includes a motion type option, which is used to adjust the motion parameters corresponding to the particle animation element when playing the particle animation in the virtual scene. Therefore, the motion adjustment area includes a variety of candidate motion parameters.
[0171] Optionally, the motion type option includes a variety of candidate motion parameters, which are described in detail below. 1. Motion unit mode: full motion mode, one-way displacement mode, cyclic reciprocating displacement, one-way rotation mode, swing motion mode, waypoint motion mode; 2. Motion cycle form: one-way motion, continuous one-way, cyclic reciprocating; 3. Start motion signal: after receiving the signal, the motion unit switches to the active state. If the activation signal is empty, the activity unit is activated by default after the virtual activity starts, otherwise it is considered to be in a paused state; 4. Stop motion signal: after receiving the signal, the motion unit switches to the paused state. The display duration of the particle animation is not included in the paused state; 5. Return motion signal: only configured in the one-way motion form, and moves in the opposite direction after receiving the signal excitation; 6. Whether to perform duration management: after turning on the duration management, the display duration is exposed for configuration. When it is off, the default display duration is infinite; 7. Motion mode: linear motion, rotational motion; 8. Based on the world coordinate system: when the local coordinate system is selected, the motion direction changes with the rotation direction. Except for the full motion mode, the other All remaining motion modes refer to the local coordinate system; 9. Initial delay time: During the display of the virtual scene, a delay is required before the particle animation element begins to move; 10. One-way motion time: The duration of a one-way motion; 11. Pause time after arrival: The time the particle animation element pauses after reaching the target position before executing subsequent motion; 12. Pause time after return: The time the particle animation element pauses after returning to the starting position before executing subsequent motion; 13. Speed type: Uniform, Acceleration, Deceleration, Smooth, Swing; 14. Sub-direction speed: X-direction speed: The speed of movement along the X-axis (in meters per second), Y-direction speed: The speed of movement along the Y-axis (in meters per second), Z-direction speed: The speed of movement along the Z-axis (in meters per second); 15. Sub-direction angular velocity: Angular velocity along the X-axis: The angular velocity along the X-axis (in degrees per second), Angular velocity along the Y-direction: The angular velocity along the Y-axis (in degrees per second), Angular velocity along the Z-direction: The angular velocity along the Z-axis (in degrees per second).
[0172] For illustration, please refer to Figure 14, which shows a schematic diagram of the motion adjustment area provided by an exemplary embodiment of the present application. As shown in Figure 14, the motion adjustment area 1400 corresponding to the particle element animation is currently displayed, and the motion adjustment area 1400 includes multiple candidate motion unit modes: full motion mode, one-way displacement mode, cyclic reciprocating displacement, unidirectional rotation mode, swing motion mode, and waypoint motion mode.
[0173] When a selection operation for the full motion mode is received, as shown in FIG15 , the motion adjustment sub-area 1500 corresponding to the full motion mode is currently displayed, wherein the motion unit mode selects the full motion mode, the motion cycle form selects reciprocating, the motion mode selects straight line, the one-way motion time is 2 seconds, the speed type is smooth, and the Z direction speed is 2 m / s. The final particle animation is displayed as the particle animation element 1501 performing a smooth reciprocating motion along the Z axis.
[0174] As shown in FIG16 , if the motion mode is selected as rotation, the speed type is selected as acceleration, and the angular velocity along the Z direction is selected as 360 degrees / second in the motion adjustment sub-area 1600 , the final particle animation is displayed as the particle animation element 1601 performing a 360-degree circular rotation motion around the Z axis.
[0175] When the selection operation for the one-way displacement mode is received, as shown in Figure 17, the motion adjustment sub-area 1700 corresponding to the one-way displacement mode is currently displayed, wherein the motion unit mode is selected as the one-way displacement mode, the one-way motion time is set to 5 seconds, and the Z direction speed is 1 meter / second. The final particle animation is displayed as the particle animation element 1701 moving upward for a period of time and then stopping.
[0176] When a selection operation for the unidirectional rotation mode is received, as shown in FIG18 , the motion adjustment sub-area 1800 corresponding to the unidirectional rotation mode is currently displayed, wherein the motion unit mode is selected as the unidirectional rotation mode, the one-way motion time is set to 2 seconds, and the angular velocity along the Z direction is 60 degrees / second. The final particle animation is displayed as the particle animation element 1801 rotating along the Z axis for a certain angle and then stopping.
[0177] When a selection operation for the swinging motion mode is received, as shown in FIG19 , the motion adjustment sub-area 1900 corresponding to the swinging motion mode is currently displayed, wherein the motion unit mode is selected as the swinging motion mode, the swinging angle is 60 degrees, and the swinging period is 1 second, then the final particle animation is displayed as the particle animation element 1901 swinging left and right within a certain angle.
[0178] When a selection operation for cyclic reciprocating movement is received, as shown in FIG20 , the motion adjustment sub-area 2000 corresponding to the cyclic reciprocating movement is currently displayed, wherein the motion unit mode is selected as cyclic reciprocating movement, the one-way motion time is 1 second, and the Z direction speed is 1 m / s. The final particle animation is displayed as the particle animation element 2001 moving up and down along the Z axis.
[0179] Schematically, the motion unit modes can be displayed in a superimposed manner. Please refer to Figure 21, which shows a schematic diagram of the superimposed display of motion unit modes provided by an exemplary embodiment of the present application. As shown in Figure 21, the particle animation 2100 is currently displayed. The swinging motion mode and the cyclic reset motion mode are superimposed and run. It can be seen that under the interference of the two effects, the particle animation is more vivid. After copying more particle animation elements, the copied particle animation elements inherit all motion parameter effects.
[0180] The waypoint motion mode is described in detail below. A waypoint refers to a key point on the path of a particle animation element as it moves within a virtual scene. When the waypoint motion mode is selected, the first motion parameter in the waypoint motion mode is a motion position parameter, which indicates the display position (i.e., the key point position) of the particle animation element when the particle animation is played within the virtual scene. When a selection operation for the motion position parameter is received within the motion adjustment sub-area under the waypoint motion mode, a position editing sub-area corresponding to the display position is displayed, allowing multiple display positions to be determined within the position editing sub-area. Specifically, the first motion parameter includes the motion position parameter, which indicates the display position of the particle animation element within the virtual scene. When a selection operation for the motion position parameter is received within the motion adjustment sub-area, a position editing sub-area corresponding to the motion position parameter is displayed. In response to a position setting operation received within the position editing sub-area, the parameter setting operation is used to set at least one of the starting position, ending position, dwell position, dwell time, and display mode parameters of the particle animation element within the virtual scene.
[0181] For illustration, please refer to Figure 22, which shows a schematic diagram of a waypoint motion mode provided by an exemplary embodiment of the present application. As shown in Figure 22, drag the particle animation element 2210 into the virtual scene, select the waypoint motion mode in the motion unit mode, set the motion cycle form to reciprocating, click to add a motion waypoint, and in the edit motion waypoint interface, you can add and delete waypoints as needed, and set the time between waypoints. You can set the position, rotation, and scale of each waypoint to display the particle animation, wherein the particle animation is implemented as the particle animation element 2210 performing reciprocating motion according to the set waypoint position, and its element size will gradually change.
[0182] Schematically, the above-mentioned process of adjusting various motion parameters under the motion type option includes various parameter adjustment methods such as setting specific values of motion parameters and determining the first motion parameter from multiple candidate motion parameters. Schematically, please refer to Figure 23, which shows a schematic diagram of the motion parameter adjustment method provided by an exemplary embodiment of the present application. As shown in Figure 23, the motion adjustment area 2300 is currently displayed, which includes multiple types of motion parameters in the above-mentioned embodiment for users to choose from, thereby ensuring that the motion mode of the particle animation finally displayed meets user needs.
[0183] Schematically, in addition to the above-mentioned appearance type options and motion type options, the parameter type options also include basic type options, which are used to set specific parameters for each axis (X axis, Y axis and Z axis) of the movement, rotation and scaling of the particle animation. Schematically, please refer to Figure 24, which shows a basic parameter adjustment schematic diagram provided by an exemplary embodiment of the present application. As shown in Figure 24, when the parameter type options include the basic type options, a basic parameter adjustment area 2400 is displayed, including a position sub-area 2401, a rotation sub-area 2402 and a scaling sub-area 2403, which are used to adjust the parameters on each axis of the movement, rotation and scaling of the particle animation.
[0184] In summary, the particle animation display method provided in the embodiments of the present application displays a particle animation element and a parameter adjustment area corresponding to the particle animation element in the virtual scene, provided that the master account has editing privileges for the virtual scene. A user triggers a parameter adjustment operation in the parameter adjustment area, and the computer device plays the modified particle animation corresponding to the particle animation element in accordance with the parameter adjustment operation. In other words, the parameter adjustment process of the particle animation element is visualized through the parameter adjustment area, facilitating the user's free adjustment of the display parameters of the particle animation element. This not only satisfies the particle animation selection needs of different users, but also avoids the computer having to pre-select and store a variety of particle animation elements, thereby reducing the computer's data storage overhead.
[0185] In this embodiment, when the parameter type option is implemented as a motion type option, the motion parameters are adjusted by selecting the first motion parameter in the motion adjustment area, which can ensure that the motion mode of the particle element animation meets user needs during the playback of the final particle animation, thereby improving the user experience when the user customizes the particle animation.
[0186] In this embodiment, by selecting the motion position parameters, the motion modes of the particle animation elements in the particle animation can be made more diverse.
[0187] In this embodiment, by displaying a selected status box when a particle animation element for parameter adjustment is selected, and canceling the display of the selected status box during the parameter adjustment process, the particle animation element for which parameter adjustment is to be performed can be indicated by the selected status box, thereby ensuring the accuracy of the selection of the particle animation element, and canceling the display of the selected status box during the adjustment process allows the user to view the adjusted particle animation more intuitively and clearly, thereby improving the clarity of the display of the animation adjustment results.
[0188] Schematically, the display method of the particle animation provided by the present application is applied to a puzzle game scene for illustration. Schematically, please refer to Figure 25, which shows a schematic diagram of the display method of the particle animation provided by an exemplary embodiment of the present application. As shown in Figure 25, the virtual scene 2500 is currently displayed. When the user controls the main virtual object 2550 to perform scene activities in the virtual scene 2500, the particle animation element 2501 is dragged from the animation element library 2510 to the virtual scene 2500 for display, and the display parameters of the particle animation are adjusted through various display parameters under three different parameter type options, namely the basic adjustment area 2520, the appearance adjustment area 2530 and the motion adjustment area 2540. Finally, the adjusted particle animation 2560 is displayed in the virtual scene 2500.
[0189] The method provided in the embodiments of this application incorporates the concept of "lifecycle," provides a graphical interface for editing, and allows for the splitting of sub-effects, allowing players to adjust the parameters of each effect's components throughout its lifecycle. By incorporating the concept of motion parameters, players can quickly and easily adjust the trajectory of an effect in the world, thereby directing animation effects.
[0190] FIG26 is a block diagram of a device for displaying particle animation according to an exemplary embodiment of the present application. As shown in FIG26 , the device includes the following components:
[0191] Display module 2610, for displaying particle animation elements in a virtual scene, wherein the virtual scene also includes a master virtual object controlled by a master account, wherein the master account has editing authority for the virtual scene, and the master virtual object is used to be controlled to participate in scene activities in the virtual scene;
[0192] The display module 2610 is further configured to display a parameter adjustment area corresponding to the particle animation element, wherein the parameter adjustment area includes a plurality of display parameters corresponding to the particle animation element;
[0193] A receiving module 2620 is configured to receive a parameter adjustment operation in the parameter adjustment area, where the parameter adjustment operation is used to instruct adjustment of display parameters of the particle animation element in the virtual scene image;
[0194] The playing module 2630 is configured to play the particle animation corresponding to the particle animation element based on the parameter adjustment operation.
[0195] In some embodiments, the parameter adjustment area includes multiple parameter type options; as shown in FIG27 , the receiving module 2620 includes:
[0196] The display unit 2621 is configured to, in response to receiving a selection operation on a parameter type option in the parameter adjustment area, display an adjustment area corresponding to the parameter type option, wherein the adjustment area includes a plurality of adjustment parameter contents under the parameter type option;
[0197] The receiving unit 2622 is configured to receive the parameter adjustment operation in the adjustment area.
[0198] In some embodiments, the parameter type option includes an appearance type option, the adjustment area includes an appearance adjustment area, the appearance adjustment area includes a plurality of candidate position options, and the candidate position options are used to indicate an element display position of the particle animation element during the display process;
[0199] The receiving unit 2622 is also used to display an adjustment sub-area corresponding to the first position option in response to receiving a selection operation on the first position option among the multiple candidate position options in the appearance adjustment area, wherein the adjustment sub-area includes multiple parameter content options; and receive an adjustment operation on the parameter content option in the adjustment sub-area as the parameter adjustment operation.
[0200] In some embodiments, the first position option corresponds to a first display location, and the first display location corresponds to a first color;
[0201] The receiving unit 2622 is also used to display a color adjustment sub-interface corresponding to the first key frame in response to receiving a selection operation on the first key frame in the adjustment sub-area, wherein the first key frame is used to indicate the display moment of the first display part of the particle animation element during the particle animation playback process; and receive a color adjustment operation in the color adjustment sub-interface as the parameter adjustment operation, wherein the color adjustment operation is used to indicate that the first color corresponding to the first display part is adjusted to the second color at the first key frame.
[0202] In some embodiments, the display unit 2621 is used to display a color adjustment sub-interface corresponding to a second key frame in response to receiving a key frame adding operation in the adjustment sub-area, wherein the key frame adding operation is used to indicate adding the second key frame.
[0203] In some embodiments, the adjustment sub-region includes multiple candidate key frames;
[0204] The display unit 2621 is used to obtain the playback positions of multiple frames of candidate key frames in the particle animation; obtain the color parameters corresponding to the multiple frames of candidate key frames based on the color adjustment operation; and generate a key frame color array based on the playback positions of the multiple frames of candidate key frames in the particle animation and the color parameters.
[0205] In some embodiments, the display unit 2621 is further used to read the key frame color array to determine the color parameters corresponding to the multiple candidate key frames; traverse the multiple candidate key frames to obtain the arrangement order corresponding to the multiple candidate key frames; based on the color parameters corresponding to two adjacent candidate key frames in the multiple candidate key frames, perform color interpolation operations on the two adjacent candidate key frames to obtain the color transformation corresponding to the particle animation; and display the particle animation based on the playback position of the multiple candidate key frames in the particle animation and the color transformation.
[0206] In some embodiments, the parameter type option includes a motion type option, and the adjustment area includes a motion adjustment area;
[0207] The receiving module 2620 is further configured to respond to receiving a selection operation of a first motion parameter in the motion adjustment area as the parameter adjustment operation.
[0208] In some embodiments, the first motion parameter includes a motion position parameter, and the motion position parameter is used to indicate a display position of the particle animation element in the virtual scene;
[0209] The receiving module 2620 is also used to receive a selection operation on the motion position parameter in the motion adjustment area, and display a position editing sub-area corresponding to the motion position parameter; in response to receiving a position setting operation in the position editing sub-area, as the parameter adjustment operation, the position setting operation is used to set at least one of the parameters corresponding to the particle animation element in the virtual scene, such as the starting position, ending position, dwell position, dwell time, and display mode.
[0210] In some embodiments, the display module 2610 is further used to display a selected status box at the element position corresponding to the particle animation element in response to receiving the element selection operation; in response to receiving an element editing operation on the particle animation element, cancel the display of the selected status box and display the parameter adjustment area corresponding to the particle animation element.
[0211] In some embodiments, the display module 2610 is also used to receive a template generation operation, and the template operation is used to generate a display template according to the adjusted display parameters; in response to receiving a selection operation for a first animation element, the first animation element is displayed in the virtual scene based on the display template, and the first animation element is different from the particle animation element.
[0212] In some embodiments, the display module 2610 is also used to display a parameter introduction area at the element position corresponding to the particle animation element in response to receiving a long press operation on the particle animation element in the virtual scene, and the operation duration reaches a preset duration threshold, and the parameter introduction area includes the adjusted display parameters.
[0213] It should be noted that the particle animation display device provided in the above embodiment is merely an example of the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the particle animation display device provided in the above embodiment and the particle animation display method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0214] Figure 28 shows a block diagram of a terminal 2800 according to an exemplary embodiment of the present application. Terminal 2800 may be a smartphone, tablet computer, MP3 player, MP4 player, laptop computer, or desktop computer. Terminal 2800 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.
[0215] Typically, the terminal 2800 includes a processor 2801 and a memory 2802 .
[0216] The processor 2801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 2801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 2801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0217] Memory 2802 may include one or more computer-readable storage media, which may be non-transitory. In some embodiments, the non-transitory computer-readable storage medium in memory 2802 is used to store at least one instruction, which is executed by processor 2801 to implement the virtual game control method provided in the method embodiments of this application.
[0218] In some embodiments, the terminal 2800 also includes other components. Those skilled in the art will understand that the structure shown in Figure 28 does not constitute a limitation on the terminal 2800, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0219] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above-described embodiments can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium, which can be the computer-readable storage medium included in the memory in the above-described embodiments, or a separate computer-readable storage medium not incorporated into the terminal. The computer-readable storage medium stores at least one instruction, at least one program, code set, or instruction set. The at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the particle animation display method described in any of the above-described embodiments.
[0220] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0221] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for displaying particle animation, executed by a computer device, the method comprising: Display particle animation elements in a virtual scene, wherein the virtual scene also includes a master virtual object controlled by a master account, wherein the master account has editing authority for the virtual scene, and the master virtual object is used to be controlled to participate in scene activities in the virtual scene; Displaying a parameter adjustment area corresponding to the particle animation element, wherein the parameter adjustment area includes display parameters corresponding to the particle animation element; receiving a parameter adjustment operation in the parameter adjustment area, wherein the parameter adjustment operation is used to instruct adjustment of display parameters of the particle animation element in the virtual scene screen; The particle animation corresponding to the particle animation element is played based on the parameter adjustment operation.
2. The method according to claim 1, wherein: The parameter adjustment area includes a plurality of parameter type options; The receiving a parameter adjustment operation in the parameter adjustment area includes: In response to receiving a selection operation of a parameter type option in the parameter adjustment area, displaying an adjustment area corresponding to the parameter type option, the adjustment area including a plurality of adjustment parameter contents under the parameter type option; The parameter adjustment operation is received in the adjustment region.
3. The method according to claim 1 or 2, wherein: The parameter type option includes an appearance type option, the adjustment area includes an appearance adjustment area, the appearance adjustment area includes a plurality of candidate position options, and the candidate position options are used to indicate the element display position of the particle animation element during the display process; The receiving the parameter adjustment operation in the adjustment area includes: In response to receiving a selection operation on a first position option among the plurality of candidate position options in the appearance adjustment area, displaying an adjustment sub-area corresponding to the first position option, wherein the adjustment sub-area includes a plurality of parameter content options; An adjustment operation on the parameter content option is received in the adjustment sub-area as the parameter adjustment operation.
4. The method according to any one of claims 1 to 3, wherein: The first position option corresponds to a first display part, and the first display part corresponds to a first color; The receiving, in the adjustment sub-area, an adjustment operation on the parameter content option as the parameter adjustment operation comprises: In response to receiving a selection operation of a first key frame in the adjustment sub-area, displaying a color adjustment sub-interface corresponding to the first key frame, wherein the first key frame is used to indicate a display time of a first display part of the particle animation element during the playing of the particle animation; A color adjustment operation is received in the color adjustment sub-interface as the parameter adjustment operation, wherein the color adjustment operation is used to instruct to adjust the first color corresponding to the first display part to a second color at the first key frame.
5. The method according to any one of claims 1 to 4, wherein: The method further comprises: In response to receiving a key frame adding operation in the adjustment sub-area, a color adjustment sub-interface corresponding to a second key frame is displayed, wherein the key frame adding operation is used to indicate adding the second key frame to the particle animation.
6. The method according to any one of claims 1 to 5, wherein: The adjustment sub-region includes multiple candidate key frames; After receiving a color adjustment operation in the color adjustment sub-interface as the parameter adjustment operation, the method further includes: Obtain the playback positions of multiple candidate key frames in the particle animation; Based on the color adjustment operation, obtain color parameters corresponding to the multiple candidate key frames respectively; A key frame color array is generated based on the playback positions of the multiple candidate key frames in the particle animation and the color parameters.
7. The method according to any one of claims 1 to 6, wherein: The playing of the particle animation corresponding to the particle animation element based on the parameter adjustment operation includes: Read the key frame color array to determine the color parameters corresponding to the multiple candidate key frames respectively; Traversing the multiple candidate key frames to obtain the arrangement order corresponding to the multiple candidate key frames; Based on the color parameters respectively corresponding to two adjacent candidate key frames in the multiple candidate key frames, a color interpolation operation is performed on the two adjacent candidate key frames to obtain a color transformation corresponding to the particle animation; The particle animation is displayed based on the playback positions of the multiple candidate key frames in the particle animation and the color transformation conditions.
8. The method according to any one of claims 1 to 7, wherein: The parameter type options include a motion type option, and the adjustment area includes a motion adjustment area; The receiving the parameter adjustment operation in the adjustment area includes: In response to receiving a selection operation of a first motion parameter in the motion adjustment area, a selection operation is performed as the parameter adjustment operation.
9. The method according to any one of claims 1 to 8, wherein: The first motion parameter includes a motion position parameter, and the motion position parameter is used to indicate a display position of the particle animation element in the virtual scene; In response to receiving a selection operation of a first motion parameter in the motion adjustment area, as the parameter adjustment operation, the step includes: receiving a selection operation of the motion position parameter in the motion adjustment area, and displaying a position editing sub-area corresponding to the motion position parameter; In response to receiving a position setting operation in the position editing sub-area, as the parameter adjustment operation, the position setting operation is used to set at least one of the parameters such as the starting position, ending position, staying position, staying time, display mode, etc. corresponding to the particle animation element in the virtual scene.
10. The method according to any one of claims 1 to 9, wherein: The method further comprises: In response to receiving the element selection operation, displaying a selected state box at the element position corresponding to the particle animation element; The parameter adjustment area corresponding to the particle animation element is displayed, including: In response to receiving an element editing operation on the particle animation element, the selected state box is canceled and a parameter adjustment area corresponding to the particle animation element is displayed.
11. The method according to any one of claims 1 to 10, wherein: After receiving the parameter adjustment operation in the parameter adjustment area, the method further includes: receiving a template generation operation, wherein the template generation operation is used to generate a display template according to the adjusted display parameters; In response to receiving a selection operation on a first animation element, the first animation element is displayed in the virtual scene based on the display template, the first animation element being different from the particle animation element.
12. The method according to any one of claims 1 to 11, wherein: After playing the particle animation corresponding to the particle animation element based on the parameter adjustment operation, the method further includes: In response to receiving a long press operation on the particle animation element in the virtual scene, and the operation duration reaches a preset duration threshold, a parameter introduction area is displayed at an element position corresponding to the particle animation element, and the parameter introduction area includes adjusted display parameters.
13. A particle animation display device, the device comprising: A display module, used for displaying particle animation elements in a virtual scene, wherein the virtual scene also includes a master virtual object controlled by a master account, wherein the master account has editing authority for the virtual scene, and the master virtual object is used for being controlled to participate in scene activities in the virtual scene; The display module is further used to display a parameter adjustment area corresponding to the particle animation element, wherein the parameter adjustment area includes display parameters corresponding to the particle animation element; A receiving module, configured to receive a parameter adjustment operation in the parameter adjustment area, wherein the parameter adjustment operation is used to instruct to adjust a display parameter of the particle animation element in the virtual scene picture; A playing module is used to play the particle animation corresponding to the particle animation element based on the parameter adjustment operation.
14. The device according to claim 13, wherein: The parameter adjustment area includes a plurality of parameter type options, and the receiving module includes: a display unit, configured to display, in response to receiving a selection operation on a parameter type option in the parameter adjustment area, An adjustment area corresponding to the parameter type option, wherein the adjustment area includes a plurality of adjustment parameter contents under the parameter type option; A receiving unit is used to receive the parameter adjustment operation in the adjustment area.
15. The device according to claim 13 or 14, wherein: The parameter type option includes an appearance type option, the adjustment area includes an appearance adjustment area, the appearance adjustment area includes a plurality of candidate position options, and the candidate position options are used to indicate the element display position of the particle animation element during the display process; The receiving unit is further used to, in response to receiving a selection operation on a first position option among the multiple candidate position options in the appearance adjustment area, display an adjustment sub-area corresponding to the first position option, wherein the adjustment sub-area includes multiple parameter content options; and receive an adjustment operation on the parameter content option in the adjustment sub-area as the parameter adjustment operation.
16. The device according to any one of claims 13 to 15, wherein: The first position option corresponds to a first display part, and the first display part corresponds to a first color; The receiving unit is further used to, in response to receiving a selection operation on a first key frame in the adjustment sub-area, display a color adjustment sub-interface corresponding to the first key frame, the first key frame being used to indicate the display time of the first display part of the particle animation element during the particle animation playback process; and receive a color adjustment operation in the color adjustment sub-interface as the parameter adjustment operation, the color adjustment operation being used to indicate that the first color corresponding to the first display part is adjusted to a second color at the first key frame.
17. The device according to any one of claims 13 to 16, wherein: The display unit is configured to display a color adjustment sub-interface corresponding to a second key frame in response to receiving a key frame adding operation in the adjustment sub-area, wherein the key frame adding operation is used to indicate adding the second key frame.
18. A computer device, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the particle animation display method according to any one of claims 1 to 12.
19. A computer-readable storage medium, wherein at least one program is stored in the storage medium, and the at least one program is loaded and executed by a processor to implement the particle animation display method according to any one of claims 1 to 12.
20. A computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, the method for displaying particle animation according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Animation generation method, animation playing method and related devices
CN112037311A
Method and device for playing animation in game, medium and electronic equipment
CN115920377A
Particle animation display method and device, equipment, medium and program product
CN117122928A
Game animation editing program and game animation editing system
JP2020096660A
Method and apparatus for generating mark information in virtual environment, electronic device, and storage medium
US20210286446A1