CN111625170B - Animation display method, electronic equipment and storage medium - Google Patents

Animation display method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111625170B
CN111625170B CN202010544260.0A CN202010544260A CN111625170B CN 111625170 B CN111625170 B CN 111625170B CN 202010544260 A CN202010544260 A CN 202010544260A CN 111625170 B CN111625170 B CN 111625170B
Authority
CN
China
Prior art keywords
particle
animation
randomly
range
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010544260.0A
Other languages
Chinese (zh)
Other versions
CN111625170A (en
Inventor
万瑞卿
王慧
胡伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010544260.0A priority Critical patent/CN111625170B/en
Publication of CN111625170A publication Critical patent/CN111625170A/en
Application granted granted Critical
Publication of CN111625170B publication Critical patent/CN111625170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The disclosure relates to an animation display method, electronic equipment and a storage medium, relates to the technical field of networks, and at least solves the problem that the display effect of particle animation in the related technology is single. The display method comprises the following steps: responding to animation trigger operation, and acquiring corresponding animation effect parameters; the animation effect parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters; randomly generating corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter; and displaying the target particle animation by taking the operation position as a display starting point.

Description

Animation display method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to an animation display method, an electronic device, and a storage medium.
Background
With the development of multimedia technology, a terminal may display various display elements in a user interface, for example, buttons or background patterns in the user interface, etc. The terminal can also display the particle animation in the user interface to realize special effect display.
However, in the prior art, the display effect of the particle animation is single, and the operation desire and the exploration desire of a user on the software system cannot be aroused.
Disclosure of Invention
The present disclosure provides an animation display method, an electronic device, and a storage medium to at least solve the problem of a single display effect of a particle animation in the related art.
The technical scheme of the disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided an animation display method including:
and responding to the animation triggering operation to obtain the corresponding animation effect parameters. The animation effect parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters. And randomly generating corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter. And displaying the target particle animation by taking the operation position as a display starting point.
According to a second aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
and the acquisition unit is used for responding to the animation trigger operation by the processing unit and acquiring the corresponding animation effect parameters. The animation effect parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters. And the processing unit is used for randomly generating the corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter acquired by the acquisition unit. And the processing unit is also used for displaying the target particle animation by taking the operation position as a display starting point.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the display method provided by the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of the electronic device provided in the third aspect, enable the electronic device to perform the display method provided in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product including instructions that, when executed on a computer, cause the computer to perform the display method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
because the animation effect parameters at least comprise the particle resource library and the particle range parameters for generating the target particle animation, after the corresponding animation effect parameters are obtained in response to the animation trigger operation, the corresponding target particle animation can be randomly generated according to the operation position corresponding to the animation trigger operation and the animation effect parameters, so that more particle animations with different display effects can be generated, namely, the display effects of the particle animation have more styles, and the operation desire and the exploration desire of a user on the software system are more easily stimulated, thereby solving the problem of single display effect of the particle animation in the related technology.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is an architectural diagram illustrating one implementation environment in accordance with an exemplary embodiment.
FIG. 2 is one of the flow charts illustrating one method of animation according to an exemplary embodiment.
FIG. 3 is one of the interaction diagrams illustrating one method of animation according to an exemplary embodiment.
FIG. 4 is a second interaction diagram illustrating a method of animation according to an exemplary embodiment.
FIG. 5 is a second flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 6 is a third flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 7 is a fourth flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 8 is a fifth flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 9 is a sixth flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 10 is a seventh flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 11 is an eighth flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 12 is a ninth flowchart illustrating a method of animation according to an exemplary embodiment.
FIG. 13 is a diagram illustrating particle motion trajectories in a method of animation according to an exemplary embodiment.
FIG. 14 is a tenth flowchart illustrating a method of animation according to an example embodiment.
Fig. 15 is one of the structural schematic diagrams of an electronic device shown according to an exemplary embodiment.
Fig. 16 is a second schematic structural diagram of an electronic device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is an architecture diagram illustrating an implementation environment in which the following display method may be applied, as shown in fig. 1, according to an example embodiment. The implementation environment includes an electronic device 01 and a server 02. Wherein, the electronic device 01 and the server 02 may be interconnected and communicate through a network.
The electronic device 01 may be a device having a function of displaying a particle animation. The electronic device 01 may acquire the particle animation from the server 02 and display the particle animation. Alternatively, the electronic device 01 itself may generate a particle animation and display the particle animation.
The electronic device 01 may be any electronic product that can interact with a user through one or more modes, such as a keyboard, a touch pad, a touch screen, a remote controller, a voice interaction device, or a handwriting device, for example, a mobile phone, a tablet Computer, a palm Computer, a Personal Computer (PC), a wearable device, a smart television, and the like.
The server 02 may be one server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 02 may include a processor, memory, and a network interface, among others.
It will be understood by those skilled in the art that the foregoing electronic devices and servers are merely exemplary and that other existing or future electronic devices or servers may be suitable for use with the present disclosure and are intended to be included within the scope of the present disclosure and are hereby incorporated by reference.
Particle animation refers to animation implemented by a particle system that represents techniques that simulate some specific blurring phenomena in three-dimensional computer graphics, which may include, for example, fire, explosion, smoke, water flow, sparks, fallen leaves, clouds, fog, snow, dust, meteor trail, or luminous trajectory, and similar abstract visual effects.
In the prior art, the display effect of the particle animation is single, and the operation desire and the exploration desire of a user on the software system cannot be aroused.
Based on this, in an animation display method provided in an embodiment of the present disclosure, after obtaining corresponding animation effect parameters in response to an animation trigger operation, a corresponding target particle animation may be randomly generated according to an operation position and animation effect parameters corresponding to the animation trigger operation, so as to generate more particle animations with different display effects, that is, the particle animation may have more display effect styles, and it is easier to stimulate a user to desire and seek for the operation of the software system, and therefore, a problem of a single display effect of the particle animation in the related art is solved, and a specific implementation process is as follows:
the execution main body of the display method provided in the embodiment of the present invention may be the electronic device or the server, or may also be a functional module and/or a functional entity capable of implementing the video content display method in the electronic device or the server, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an execution subject as an electronic device as an example, and exemplarily describes the display method provided by the embodiment of the present invention.
The following provides an exemplary description of a display method provided by an embodiment of the present disclosure with reference to the drawings.
Fig. 2 is a flowchart illustrating an animation display method according to an exemplary embodiment, where the display method is used in an electronic device as shown in fig. 2, and the method includes the following steps S11 to S13.
In step S11, the electronic device 01 acquires a corresponding animation effect parameter in response to the animation trigger operation. The animation effect parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters.
In a possible implementation manner, the animation triggering operation of the particle animation includes that the single-finger pressing duration is greater than or equal to the preset duration, in this case, as shown in fig. 3 a in conjunction with fig. 2, when the user instructs that the single-finger pressing duration at any position on the interface of the electronic device 01 is greater than or equal to the preset duration, the electronic device 01 responds to the animation triggering operation to obtain the corresponding animation effect parameter. Wherein, the electronic device 01 shows the first particle animation as shown in B in fig. 3.
In a possible implementation manner, the animation triggering operation of the particle animation includes clicking a preset control, in this case, as shown in fig. 4 a in conjunction with fig. 2, after the user clicks the preset control 010 on any interface of the electronic device 01, the electronic device 01 responds to the animation triggering operation to obtain a corresponding animation effect parameter. Wherein, the first particle animation displayed by the electronic device 01 is shown as B in fig. 4.
In step S12, the electronic device 01 randomly generates a corresponding target particle animation based on the operation position and the animation effect parameter corresponding to the animation trigger operation.
In step S13, the electronic device 01 displays the target particle animation with the operation position as the display start point.
In the embodiment of the disclosure, since the target particle animation is randomly generated according to the operation position corresponding to the animation trigger operation and the animation effect parameter, more particle animations with different display effects can be generated, that is, the display effects of the particle animation have more styles, and it is easier to stimulate the user to desire to operate and seek the software system, thereby solving the problem of single display effect of the particle animation in the related art.
In one possible implementation manner, as shown in fig. 5 in conjunction with fig. 2, the particle Range parameter at least includes a particle number Range (also referred to as Count Range), in which case, the step S12 can be specifically implemented by the following step S120 and step S121.
In step S120, the electronic device 01 randomly determines the total number of particles for generating the target particle animation from the range of the number of particles.
In step S121, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the total number of particles, and the particle resource library corresponding to the animation trigger operation.
In the embodiment of the present disclosure, since the total number of particles in the target particle animation generated by the electronic device 01 each time is randomly determined and generated from the range of the number of particles, the total number of particles displayed in the target particle animation generated each time is also random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
In one possible implementation manner, as shown in fig. 6 in conjunction with fig. 2, the particle Range parameter at least includes a particle Size Range (also referred to as Size Range), in which case, the step S12 described above can be specifically implemented by the step S122 and the step S123 described below.
In step S122, the electronic device 01 randomly determines the size of each particle in the generation target particle animation from the particle size range.
In step S123, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position corresponding to the animation trigger operation, the size of each particle, and the particle resource library.
In the embodiment of the disclosure, since the size of each particle in the target particle animation generated by the electronic device 01 each time is randomly determined and generated from the particle size range, the size of each particle displayed in the target particle animation generated each time is also random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
In one possible implementation manner, as shown in fig. 7 in conjunction with fig. 2, the particle range parameter at least includes a particle number range and a particle size range, in which case, the step S12 can be specifically implemented by the following step S120, step S122 and step S124.
In step S120, the electronic device 01 randomly determines the total number of particles for generating the target particle animation from the range of the number of particles.
In step S122, the electronic device 01 randomly determines the size of each particle in the generation target particle animation from the particle size range.
In step S124, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the total number of particles, the size of each particle, and the particle resource library corresponding to the animation trigger operation.
In the embodiment of the disclosure, since the total number of particles in the target particle animation generated by the electronic device 01 at each time is randomly determined and generated from the range of the number of particles, and the size of each particle in the target particle animation is randomly determined and generated from the range of the particle size, the total number of particles and the size of each particle displayed in the target particle animation generated at each time are random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
In one possible implementation, as shown in fig. 8 in conjunction with fig. 2, in this case, the step S12 described above can be specifically implemented by the step S125 and the step S126 described below.
In step S125, the electronic device 01 randomly determines to generate a picture of each particle in the target particle animation from a particle resource library (also referred to as Resources).
In step S126, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the picture of each particle in the generated target particle animation, and the particle range parameter.
In the embodiment of the disclosure, since the picture of each particle in the target particle animation generated by the electronic device 01 each time is randomly determined and generated from the particle resource library, the picture of each particle displayed in the target particle animation generated each time is random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
Exemplarily, taking the particle range parameter including the particle number range as an example, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the picture of each particle in the generated target particle animation, and the particle range parameter, and includes: the electronic device 01 randomly determines the total number of particles for generating the target particle animation from the range of the number of particles. The electronic device 01 randomly determines the picture of each particle and the total number of the particles in the generated target particle animation according to the operation position, and randomly generates the corresponding target particle animation. In this case, since the total number of particles in the target particle animation generated by the electronic device 01 at each time is randomly determined and generated from the range of the number of particles, and the picture of each particle in the target particle animation is randomly determined and generated from the particle resource library, the total number of particles and the picture of each particle displayed in the target particle animation generated at each time are random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
Illustratively, taking the example that the particle range parameter includes a particle size range, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, a picture of each particle in the generated target particle animation, and the particle range parameter, and includes: the electronic device 01 randomly determines the size of each particle in the generation target particle animation from the particle size range. The electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the picture of each particle in the generated target particle animation and the size of each particle. In this case, since the size of each particle in the target particle animation generated by the electronic device 01 at each time is randomly determined from the particle size range, and the picture of each particle in the target particle animation is randomly determined from the particle resource library, the size and the picture of each particle displayed in the target particle animation generated at each time are random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
Illustratively, taking the example that the particle range parameters at least include a particle number range and a particle size range, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the picture of each particle in the generated target particle animation, and the particle range parameters, and includes: the electronic device 01 randomly determines the total number of particles for generating the target particle animation from the range of the number of particles. The electronic device 01 randomly determines the size of each particle in the generation target particle animation from the particle size range. The electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the picture of each particle in the generated target particle animation, the total number of the particles and the size of each particle. In this case, since the total number of particles in the target particle animation generated by the electronic device 01 at each time is randomly determined and generated from the particle number range, the size of each particle in the target particle animation is randomly determined and generated from the particle size range, and the picture of each particle in the target particle animation is randomly determined and generated from the particle resource library, the total number of particles, the size of each particle, and the picture displayed in the target particle animation generated at each time are all random, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animation in the related art is solved.
In a possible implementation manner, with reference to fig. 2, as shown in fig. 9, in this case, the animation display method provided by the embodiment of the disclosure further includes step S14, and the step S12 may be specifically implemented by step S127 described below.
In step S14, the electronic device 01 determines an animation display curve for each particle according to the operation position and the preset animation effect range for each particle in the target particle animation.
It should be noted that the electronic device 01 may also set an animation time curve for the animation display curve of each particle, so that when the electronic device 01 plays the target particle animation, each particle plays according to the determined animation display curve and animation time curve. The animation display curve comprises a corresponding relation between time and a moving speed.
Specifically, the animation time curve of each particle in the target particle animation is stored in advance. Alternatively, the animation time curve of each particle in the target particle animation is obtained by the electronic device 01 from the server 02.
For example, the preset animation effect range of each particle may be obtained from the server 02, or the preset animation effect range of each particle may be stored in the electronic device 01 in advance.
In step S127, the electronic device 01 randomly generates a corresponding target particle animation according to the operation position, the animation display curve of each particle, and the animation effect parameter.
It should be noted that, the related contents of the animation effect parameters can refer to the foregoing description, and are not described herein again.
In the embodiment of the present disclosure, each particle corresponds to one preset animation effect range, so that the electronic device 01 may determine an animation display curve of each particle according to the operation position and the preset animation effect range of each particle in the target particle animation, so that each particle in the target particle animation operates according to the corresponding animation display curve to generate a plurality of different first particle animations, and the problem of single display effect of the particle animation in the related art is solved.
In one possible implementation, as shown in fig. 10 in conjunction with fig. 2, in this case, the step S14 described above can be specifically implemented by the step S140 described below.
In step S140, the electronic device 01 randomly determines to generate at least one End Point region for each particle in the target particle animation within an animation effect range preset by one particle, randomly determines to generate one End Point position (also referred to as End Point) from any End Point region in the at least one End Point region, determines at least one control Point according to the operation position (also referred to as start Point position or Emitter Point) and the End Point region corresponding to the End Point position, and determines an animation display curve according to the operation position, the randomly determined End Point position, and the at least one control Point.
In the embodiment of the disclosure, since the starting position of each particle is the same, but the ending position is randomly determined, so that the ending position of the animation display curve of each particle is different, the animation display curve determined according to the operation position, the randomly determined generated ending position and the at least one control point is different, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animations in the related art is solved.
In one possible implementation manner, as shown in fig. 11 in conjunction with fig. 2, in this case, the determination of at least one control point according to the operation position and the end point region corresponding to the end point position in the step S140 described above can be specifically realized by the steps S1401 and S1402 described below.
In step S1401, the electronic device 01 randomly determines, for each particle in the target particle animation, to generate at least one end region within an animation effect range preset by one particle, randomly determines to generate one end position from any one of the at least one end region, and randomly determines to generate at least one control point region on at least one side between the operation position and the end region corresponding to the end position.
In the embodiment of the present disclosure, at least one control point region may be on one side between the operation position and the end region corresponding to the end position, or at least two control point regions may be on both sides between the operation position and the end region corresponding to the end position.
In step S1402, the electronic device 01 randomly determines to generate at least one control point (also referred to as controlPoint) from the at least one control point region, and determines an animation display curve according to the operation position, the randomly determined generated end position, and the at least one control point.
In the embodiment of the present disclosure, the starting point position of each particle is an operation position, and the starting point position, the end point position, and the position of each control point are all different.
In the embodiment of the disclosure, since at least one control point included in each particle is randomly determined from at least one control point region, animation display curves determined according to the operation position, the randomly determined generated end point position and the randomly determined at least one control point are different, so that a plurality of different first particle animations can be generated, and the problem of single display effect of the particle animations in the related art is solved.
In one possible implementation, in conjunction with fig. 2, as shown in fig. 12, in this case, the determination of the animation display curve in the above-described step S140 according to the operation position, the randomly determined generated end point position, and the at least one control point may be specifically realized by the below-described step S1403.
In step S1403, for each particle in the target particle animation, the electronic device 01 randomly determines to generate at least one end region within a preset animation effect range of one particle, randomly determines to generate an end position from any end region in the at least one end region, determines at least one control point according to the operation position and the end region corresponding to the end position, and draws an animation display curve through the at least one control point with the operation position as a start point and the end position as an end point.
For example, the bezier curve includes two control points, as shown in fig. 13, the bezier curve includes a start point position 1, an end point position 2, a control point 3, a control point 4, an end point region a, a control region B, and a control region C, and for each particle in the target particle animation, one position in the end point region a is randomly selected as the end point position 2, so that one position in the control region B is randomly selected as the control point 3, and one position in the control region C is randomly selected as the control point 4, so that the motion trajectory of a single particle is obtained by drawing according to the bezier curve according to the start point position 1, the end point position 2, the control point 3, and the control point 4.
In the embodiment of the present disclosure, because the continuity of the curve drawn by the bezier curve is better, when the electronic device 01 draws the motion trajectory of each particle through the bezier curve, and each particle moves according to the motion trajectory drawn by the bezier curve, the continuity of the movement of the particle is better, and the operation desire and the search desire of the user on the software system are more easily motivated.
In one possible implementation, as shown in fig. 14 in conjunction with fig. 2, the animation effect parameter includes a validity Period (also referred to as Period), in which case the above-mentioned step S11 can be specifically realized by the following steps S110 to S113.
In step S110, the electronic device 01 requests the server to acquire recommended configuration parameters in response to the animation trigger operation. The recommended configuration parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters.
In the embodiment of the disclosure, for some special dates (e.g., legal holidays, commemorative days, traditional holidays, national festivals, religious festivals, seasonal festivals, etc.), the server 02 is configured with a plurality of recommended configuration parameters for the special dates, so that the electronic device 01 can display particle animations related to the special dates within the special dates, thereby stimulating the operation desire and the exploration desire of the user on the software system.
In the embodiment of the present disclosure, for some special dates, the electronic device 01 downloads and decompresses the related particle pictures according to the material download addresses in the recommended configuration parameters, and the downloaded and decompressed particle pictures are related to the special dates. Such as: when the special date is the fool section, the electronic device 01 downloads the address from the material in the recommended configuration parameter, and downloads and decompresses the relevant particle picture into the particle picture relevant to the fool section.
In step S111, the electronic device 01 receives the recommended configuration parameters sent by the server 02.
In step S112, when the electronic apparatus 01 determines that the current time is within the validity period, the animation effect parameter is determined as the recommended configuration parameter.
Illustratively, when the specific request is a hypertext transfer protocol (http) request, the special date is 4/1/2020, and the validity period is 2020, 4/1/00: 01-2020, 4/1/23: 59, the electronic device 01 sends an http request to the server 02 in response to the animation trigger instruction, and the server 02 sends the recommended configuration parameters carrying the particle number range, the particle size range and the material download address to the electronic device 01 according to the http request. After receiving the recommended configuration parameters, the electronic device 01 downloads and decompresses the related particle pictures from the material download addresses into a specific folder to obtain a particle resource library. Then, the electronic device 01 determines that the recommended configuration parameter is the animation effect parameter when the current time (e.g., 13: 05: 4/1/2020) is within range from 00: 01: 4/1/2020 to 23: 59/4/1/2020.
In step S113, when the electronic device 01 determines that the current time is not within the validity period, it determines the animation effect parameter as the local configuration parameter. The local configuration parameters are pre-stored, and at least comprise a particle resource library for generating the target particle animation and a particle range parameter.
In the embodiment of the present disclosure, since the storage resource of the electronic device 01 is limited, the particle repository may be a specific folder in the electronic device 01, and the particle pictures in the specific folder are downloaded and decompressed into the specific folder by the electronic device 01 according to the material download address.
In the embodiment of the present disclosure, the specific folders corresponding to each recommended configuration parameter are different, so that the electronic device 01 generates a plurality of different first particle animations according to different recommended configuration parameters, thereby solving the problem of single display effect of the particle animations in the related art.
It should be noted that the folder stored in the particle picture library (also referred to as Resources) pre-stored locally by the electronic device 01 is different from the folder stored in the particle picture library downloaded and decompressed by the electronic device 01 according to the material download address in the recommended configuration parameter.
It should be noted that, after receiving the recommended configuration parameters, the electronic device 01 fails to download the particle pictures from the material download addresses, or when there are no particle pictures in a specific folder, there are the following situations:
1. when the current time is within the validity period, determining the animation effect parameters comprises: recommending particle number range and particle size range in configuration parameters, and local pre-stored particle picture library.
2. And when the current time is not within the valid period, determining the local configuration parameters stored in advance locally as animation effect parameters.
In the embodiment of the disclosure, since a large amount of manpower is required to develop the recommended configuration parameters related to the special dates, local configuration parameters stored locally in advance can be used as animation effect parameters for non-special dates, thereby reducing the consumption of manpower.
Illustratively, the specific request is an http request, the electronic device 01 sends the http request to the server 02 in response to an animation trigger operation, and the server 02 sends recommended configuration parameters carrying a particle number range, a particle size range and a material download address to the electronic device 01 according to the http request. After the electronic device 01 receives the recommended configuration parameters, the electronic device downloads and decompresses the related particle pictures from the material download addresses into the specific folder, and obtains a particle resource library.
In the embodiment of the present disclosure, because the local storage resource of the electronic device 01 is limited, the local configuration parameter of the particle animation locally stored by the electronic device 01 is limited, and the display effect of the displayed particle animation is single. Based on this, the electronic device 01 may obtain the configuration parameters of the particle animations with multiple display effects stored in the server 02 by sending a specific request to the server 02, and then the electronic device 01 may generate the first particle animation with multiple display effects according to the configuration parameters obtained from the server 02, thereby solving the problem of single display effect of the particle animation in the related art.
FIG. 15 is a block diagram illustrating an electronic device in accordance with an example embodiment. Referring to fig. 15, the electronic device 01 includes an acquisition unit 101, a processing unit 102, and a display unit 103.
The obtaining unit 101 is configured to, in response to the animation triggering operation, obtain a corresponding animation effect parameter by the processing unit 102. The animation effect parameters at least comprise a particle resource library used for generating the target particle animation and a particle range parameter.
And the processing unit 102 is configured to randomly generate a corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter acquired by the acquiring unit 101.
The display unit 103 is further configured to display the target particle animation randomly generated by the processing unit 102, with the operation position as a display starting point.
In a possible implementation manner, the particle range parameter includes at least a particle number range, in which case the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to randomly determine the total number of particles for generating the target particle animation from the range of the number of particles acquired by the acquiring unit 101.
The processing unit 102 is specifically configured to randomly generate a corresponding target particle animation according to the operation position and the total number of particles corresponding to the animation trigger operation and the particle resource library acquired by the acquiring unit 101.
In a possible implementation, the particle range parameter comprises at least a particle size range, in which case the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to randomly determine the size of each particle in the target particle animation from the particle size range acquired by the acquiring unit 101.
The processing unit 102 is specifically configured to randomly generate a corresponding target particle animation according to the operation position corresponding to the animation trigger operation, the size of each particle, and the particle resource library acquired by the acquiring unit 101.
In a possible implementation, the particle range parameter includes at least a particle number range and a particle size range, in which case the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to randomly determine the total number of particles for generating the target particle animation from the range of the number of particles acquired by the acquiring unit 101.
The processing unit 102 is specifically configured to randomly determine the size of each particle in the target particle animation from the particle size range acquired by the acquiring unit 101.
The processing unit 102 is specifically configured to randomly generate a corresponding target particle animation according to the operation position, the total number of particles, the size of each particle corresponding to the animation trigger operation, and the particle resource library acquired by the acquiring unit 101.
In one possible implementation, the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to randomly determine, from the particle resource library acquired by the acquiring unit 101, to generate a picture of each particle in the target particle animation.
The processing unit 102 is specifically configured to randomly generate a corresponding target particle animation according to the operation position, the picture of each particle in the generated target particle animation, and the particle range parameter acquired by the acquiring unit 101.
In one possible implementation, the processing unit 102 is specifically configured to perform:
the processing unit 102 is further configured to determine an animation display curve of each particle according to the operation position and an animation effect range preset by each particle in the target particle animation.
The processing unit 102 is specifically configured to randomly generate a corresponding target particle animation according to the operation position, the animation display curve of each particle, and the animation effect parameter acquired by the acquiring unit 101.
In one possible implementation, the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to, for each particle in the target particle animation, randomly determine and generate at least one end point region within a preset animation effect range of one particle, randomly determine and generate one end point position from any end point region in the at least one end point region, determine at least one control point according to the operation position and the end point region corresponding to the end point position, and determine an animation display curve according to the operation position, the randomly determined and generated end point position, and the at least one control point.
In one possible implementation, the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to randomly determine and generate at least one control point region on at least one side between the operation position and the end point region corresponding to the end point position.
And the processing unit is specifically used for randomly determining and generating at least one control point from at least one control point area.
In one possible implementation, the processing unit 102 is specifically configured to perform:
the processing unit 102 is specifically configured to draw an animation display curve through at least one control point by using the operation position as a start point and using the end point position as an end point.
In one possible implementation, the electronic device further includes a sending unit 104, in which case the processing unit 102 and the sending unit 104 are specifically configured to perform:
the sending unit 104 is specifically configured to, in response to the animation trigger operation, the processing unit 102 requests the server to obtain the recommended configuration parameter. The recommended configuration parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters.
The obtaining unit 101 is specifically configured to receive the recommended configuration parameter sent by the server.
The processing unit 102 is specifically configured to determine that the animation effect parameter is the recommended configuration parameter acquired by the acquiring unit 101 when it is determined that the current time is within the validity period.
The processing unit 102 is specifically configured to determine that the animation effect parameter is a local configuration parameter when determining that the current time is not within the validity period. The local configuration parameters are pre-stored, and at least comprise a particle resource library for generating the target particle animation and a particle range parameter.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Of course, the electronic device 01 provided by the embodiment of the present disclosure includes, but is not limited to, the above modules, for example, the electronic device 01 may further include the storage unit 105. The storage unit 105 may be configured to store program codes of the electronic writing device 01, and may also be configured to store data generated by the electronic writing device 01 during operation, such as data in a write request.
In addition, when the electronic device 01 provided in the above embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the electronic device 01 may be divided into different functional modules to implement all or part of the functions described above.
Fig. 16 is a schematic structural diagram of an electronic device according to an exemplary embodiment. The electronic device 01 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like. As shown in fig. 16, the electronic device 01 includes, but is not limited to: a processor 101, a memory 102, a display 103, an input unit 104, an output unit 105, a network unit 106, an interface unit 107, a radio frequency unit 108, a power supply 109, a sensor 110, and the like.
It should be noted that, as those skilled in the art will appreciate, the structure of the electronic device 01 shown in fig. 16 does not constitute a limitation to the electronic device 01, and the electronic device 01 may include more or less components than those shown in fig. 16, or may combine some components, or may arrange different components.
In the embodiment of the present disclosure, the input unit 104 is configured to obtain a corresponding animation effect parameter in response to an animation trigger operation.
And the processor 101 is used for randomly generating the corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter.
And a display unit 103 for displaying the target particle animation with the operation position as a display start point.
It should be noted that the electronic device 01 may implement each process implemented by the electronic device 01 in the foregoing method embodiments, and may achieve the same technical effect, and details are not described herein again to avoid repetition.
The processor 101 is a control center of the electronic device 01, connects various parts of the whole electronic device 01 by various interfaces and lines, and performs various functions of the electronic device 01 and processes data by running or executing software programs and/or modules stored in the memory 102 and calling data stored in the memory 102, thereby monitoring the electronic device 01 as a whole. Processor 101 may include one or more processing units; optionally, the processor 101 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 101.
The memory 102 may be used to store software programs as well as various data. The memory 102 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 102 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The display 103 is used to display information input by the user or information provided to the user. The Display 103 may include a Display panel, which may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-emitting Diode (OLED), or the like.
The input unit 104 may be used to receive audio or video signals. The input Unit 104 may include a Graphics Processing Unit (GPU) that processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode, and a microphone. The processed image frames may be displayed on the display 103. The image frames processed by the graphics processor may be stored in the memory 102 (or other storage medium) or transmitted via the radio frequency unit 108 or the network unit 106. The microphone may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 108 in case of the phone call mode.
The input unit 104 may be a user input unit operable to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 01. Specifically, the user input unit includes a touch panel and other input devices. A touch panel, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel (e.g., operations by a user on or near the touch panel using a finger, a stylus, or any other suitable object or attachment). The touch panel may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 101, receives a command from the processor 101, and executes the command. In addition, the touch panel may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit may include other input devices in addition to the touch panel. Specifically, the other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel may be overlaid on the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 101 to determine the type of the touch event, and then the processor 101 provides a corresponding visual output on the display panel according to the type of the touch event. The touch panel and the display panel 1061 may be used as two independent components to implement the input and output functions of the electronic device 01, or the touch panel and the display panel may be integrated to implement the input and output functions of the electronic device 01, which is not limited herein.
The output unit 105 may be an audio output unit, and may convert audio data received by the radio frequency unit 108 or the network unit 106 or stored in the memory 102 into an audio signal and output as sound. Also, the audio output unit may also provide audio output related to a specific function performed by the electronic device 01 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit includes a speaker, a buzzer, a receiver, and the like.
The electronic device 01 provides the user with wireless broadband internet access via the network unit 106, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The interface unit 107 is an interface for connecting an external device to the electronic apparatus 01. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 107 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 01 or may be used to transmit data between the electronic apparatus 01 and the external device.
The radio frequency unit 108 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 101; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 108 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 108 can also communicate with a network and other devices through a wireless communication system.
A power supply 109 (e.g., a battery) may be used to supply power to the various components, and optionally, the power supply 109 may be logically connected to the processor 101 through a power management system, so as to manage charging, discharging, and power consumption through the power management system.
The sensor 110 may include at least one of a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and/or the backlight when the electronic device 01 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 110 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
In addition, the electronic device 01 includes some functional modules (e.g., a camera) not shown, which are not described herein.
In an exemplary embodiment, the disclosed embodiments also provide a storage medium comprising instructions, such as the memory 102 comprising instructions, which are executable by the processor 101 of the electronic device 01 to perform the above-mentioned method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions executable by the processor 101 of the electronic device 01 to perform the above-described method.
It should be noted that the instructions in the storage medium or one or more instructions in the computer program product are executed by the processor 101 to implement the processes of the method embodiments, and the same technical effect can be achieved.
As an example, in connection with fig. 15, the functions implemented by both the acquisition unit 101 and the transmission unit 104 in the electronic device 01 are the same as those of the input unit 104 in fig. 16, the functions implemented by the processing unit 102 are the same as those of the processor 101 in fig. 16, the functions implemented by the display unit 103 are the same as those of the display 103 in fig. 16, and the functions implemented by the storage unit 105 are the same as those of the memory 102 in fig. 16.
Another embodiment of the present invention further provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method shown in the above method embodiment.
In some embodiments, the disclosed methods may be implemented as computer program instructions encoded on a computer-readable storage medium in a machine-readable format or encoded on other non-transitory media or articles of manufacture.
In an exemplary embodiment, the disclosed embodiments also provide a storage medium comprising instructions, such as the memory 102 comprising instructions, executable by the processor 101 of the server 02 to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions executable by the processor 101 of the server 02 to perform the above-described method.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be essentially or partially contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. An animation display method, comprising:
responding to animation trigger operation, and acquiring corresponding animation effect parameters; the animation effect parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters, and the particle range parameters at least comprise a particle number range;
randomly determining the total number of particles for generating the target particle animation from the particle number range;
for each particle in the target particle animation, randomly determining and generating at least one end point region within an animation effect range preset by one particle, randomly determining and generating an end point position from any one end point region in the at least one end point region, determining at least one control point according to an operation position and the end point region corresponding to the end point position, determining an animation display curve according to the operation position, the randomly determined and generated end point position and the at least one control point, wherein the control point is randomly determined in the control point region, and the control point region is randomly generated at least one side between the operation position and the end point region corresponding to the end point position;
randomly generating corresponding target particle animation according to the operation position, the animation display curve of each particle and the animation effect parameter;
and displaying the target particle animation by taking the operation position as a display starting point.
2. An animation display method as claimed in claim 1, wherein the particle range parameter comprises at least a particle size range;
the randomly generating the corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter comprises the following steps:
randomly determining the size of each particle in the generation target particle animation from the particle size range;
and randomly generating corresponding target particle animation according to the operation position corresponding to the animation trigger operation, the size of each particle and the particle resource library.
3. An animation display method as claimed in claim 1, wherein the particle range parameters include at least a particle number range and a particle size range;
the randomly generating the corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter comprises the following steps:
randomly determining the total number of particles for generating the target particle animation from the particle number range;
randomly determining the size of each particle in the target particle animation from the particle size range;
and randomly generating corresponding target particle animation according to the operation position corresponding to the animation triggering operation, the total number of the particles, the size of each particle and the particle resource library.
4. The animation display method according to any one of claims 1 to 3, wherein the randomly generating the corresponding target particle animation according to the operation position corresponding to the animation trigger operation and the animation effect parameter comprises:
randomly determining and generating a picture of each particle in the target particle animation from the particle resource library;
and randomly generating corresponding target particle animation according to the operation position, the picture of each particle in the randomly determined and generated target particle animation and the particle range parameter.
5. The animation display method according to claim 1, wherein determining an animation display curve based on the operation position, the randomly determined and generated end position, and the at least one control point comprises:
and drawing an animation display curve through the at least one control point by taking the operation position as a starting point and the end point position as an end point.
6. The animation display method according to claim 1, wherein the animation effect parameter includes a validity period;
the step of responding to the animation triggering operation and acquiring the corresponding animation effect parameters comprises the following steps:
responding to animation trigger operation, and requesting to obtain recommended configuration parameters from a server; the recommended configuration parameters at least comprise a particle resource library used for generating the target particle animation and a particle range parameter;
receiving recommended configuration parameters sent by the server;
when the current time is determined to be within the validity period, determining animation effect parameters as the recommended configuration parameters;
when the current time is determined not to be within the validity period, determining the animation effect parameters as local configuration parameters; the local configuration parameters are pre-stored, and at least comprise a particle resource library for generating the target particle animation and a particle range parameter.
7. An electronic device, comprising:
the acquiring unit is used for responding to the animation triggering operation by the processing unit and acquiring the corresponding animation effect parameters; the animation effect parameters at least comprise a particle resource library used for generating the target particle animation and particle range parameters, and the particle range parameters at least comprise a particle number range;
the processing unit is specifically configured to randomly determine the total number of particles generating the target particle animation from the range of the number of particles acquired by the acquiring unit;
the processing unit is further configured to randomly determine and generate at least one end point region for each particle in the target particle animation within an animation effect range preset by one particle, randomly determine and generate an end point position from any one of the at least one end point region, determine at least one control point according to an operation position and the end point region corresponding to the end point position, determine an animation display curve according to the operation position, the randomly determined and generated end point position and the at least one control point, determine the control point randomly in the control point region, and randomly generate the control point region on at least one side between the operation position and the end point region corresponding to the end point position;
the processing unit is specifically configured to randomly generate a corresponding target particle animation according to the operation position, the animation display curve of each particle, and the animation effect parameter acquired by the acquiring unit;
and the display unit is also used for displaying the target particle animation randomly generated by the processing unit by taking the operation position as a display starting point.
8. The electronic device of claim 7, wherein the particle range parameter comprises at least a particle size range;
the processing unit is specifically configured to randomly determine the size of each particle in the generated target particle animation from the particle size range acquired by the acquisition unit;
the processing unit is specifically configured to randomly generate a corresponding target particle animation according to the operation position corresponding to the animation trigger operation, the size of each particle, and the particle resource library acquired by the acquiring unit.
9. The electronic device of claim 7, wherein the particle range parameters comprise at least a range of particle numbers and a range of particle sizes;
the processing unit is specifically configured to randomly determine the total number of particles for generating the target particle animation from the range of the number of particles acquired by the acquisition unit;
the processing unit is specifically configured to randomly determine the size of each particle in the generated target particle animation from the particle size range acquired by the acquisition unit;
the processing unit is specifically configured to randomly generate a corresponding target particle animation according to the operation position corresponding to the animation trigger operation, the total number of particles, the size of each particle, and the particle resource library acquired by the acquiring unit.
10. The electronic device according to any one of claims 7 to 9, wherein the processing unit is specifically configured to randomly determine, from the particle resource library acquired by the acquiring unit, a picture for generating each particle in the target particle animation;
the processing unit is specifically configured to randomly generate a corresponding target particle animation according to the operation position, the picture of each particle in the randomly determined and generated target particle animation, and the particle range parameter acquired by the acquiring unit.
11. The electronic device according to claim 10, wherein the processing unit is specifically configured to draw an animation display curve through the at least one control point with the operation position as a start point and the end point position as an end point.
12. The electronic device according to claim 7, wherein the electronic device further comprises a transmission unit;
the sending unit is specifically used for the processing unit to respond to the animation triggering operation and request the server to acquire the recommended configuration parameters; the recommended configuration parameters at least comprise a particle resource library used for generating the target particle animation and a particle range parameter;
the obtaining unit is specifically configured to receive the recommended configuration parameter sent by the server;
the processing unit is specifically configured to determine that the animation effect parameter is the recommended configuration parameter obtained by the obtaining unit when determining that the current time is within the validity period;
the processing unit is specifically configured to determine that the animation effect parameter is a local configuration parameter when determining that the current time is not within the validity period; the local configuration parameters are pre-stored, and at least comprise a particle resource library for generating the target particle animation and a particle range parameter.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the display method of any one of claims 1 to 6.
14. A computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the display method of any one of claims 1 to 6.
CN202010544260.0A 2020-06-15 2020-06-15 Animation display method, electronic equipment and storage medium Active CN111625170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010544260.0A CN111625170B (en) 2020-06-15 2020-06-15 Animation display method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010544260.0A CN111625170B (en) 2020-06-15 2020-06-15 Animation display method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111625170A CN111625170A (en) 2020-09-04
CN111625170B true CN111625170B (en) 2022-09-30

Family

ID=72260139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010544260.0A Active CN111625170B (en) 2020-06-15 2020-06-15 Animation display method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111625170B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612569B (en) * 2020-12-29 2022-09-30 杭州趣链科技有限公司 Page animation display method, device, equipment and storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750662B (en) * 2011-08-26 2017-09-19 新奥特(北京)视频技术有限公司 A kind of particle control method and device based on multithreading
CN102542594B (en) * 2011-12-28 2013-11-06 江苏如意通动漫产业有限公司 Random particle animation generating method based on vectors
KR101870775B1 (en) * 2012-02-08 2018-06-26 삼성전자 주식회사 Method and apparatus for playing animation in mobile terminal
CN103455968A (en) * 2013-08-07 2013-12-18 厦门美图网科技有限公司 Method for rendering real-time image with particle elements
CN103544730A (en) * 2013-10-18 2014-01-29 厦门美图网科技有限公司 Method for processing pictures on basis of particle system
CN103714568B (en) * 2013-12-31 2017-02-15 北京像素软件科技股份有限公司 Method for achieving large-scale particle system
CN105892681A (en) * 2016-04-29 2016-08-24 乐视控股(北京)有限公司 Processing method and device of virtual reality terminal and scene thereof
CN106204696B (en) * 2016-07-05 2019-05-28 网易(杭州)网络有限公司 A kind of special efficacy implementation method and device
CN106920271B (en) * 2017-01-18 2020-06-02 钱进 Method for constructing streamline animation of particle system under wind field drive based on GS (generalized modeling language)
CN106933592A (en) * 2017-03-17 2017-07-07 武汉斗鱼网络科技有限公司 Interactive animation generation method and device
CN108845849A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Animation processing method, device, computer equipment and storage medium
CN108776565B (en) * 2018-05-22 2021-08-20 北京金山安全软件有限公司 Animation display method and device, electronic equipment and storage medium
CN110007983B (en) * 2019-03-29 2022-06-07 网易传媒科技(北京)有限公司 Implementation method, medium, device and computing equipment of particle jet animation
CN110033503B (en) * 2019-04-18 2022-12-13 腾讯科技(上海)有限公司 Animation display method and device, computer equipment and storage medium
CN111127609B (en) * 2019-12-16 2024-02-23 北京像素软件科技股份有限公司 Particle position coordinate determination method and device and related equipment

Also Published As

Publication number Publication date
CN111625170A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN109905754B (en) Virtual gift receiving method and device and storage equipment
CN109768926B (en) Data processing method, terminal equipment and computer readable storage medium
CN108737904B (en) Video data processing method and mobile terminal
US10768881B2 (en) Multi-screen interaction method and system in augmented reality scene
CN107908765B (en) Game resource processing method, mobile terminal and server
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN108513671B (en) Display method and terminal for 2D application in VR equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN109639569B (en) Social communication method and terminal
CN110752981B (en) Information control method and electronic equipment
CN107734172B (en) Information display method and mobile terminal
CN109495638B (en) Information display method and terminal
CN111124706A (en) Application program sharing method and electronic equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN108093137B (en) Dialing method and mobile terminal
CN108196781B (en) Interface display method and mobile terminal
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN109117037B (en) Image processing method and terminal equipment
CN111124569A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111061404A (en) Control method and first electronic device
CN109166164B (en) Expression picture generation method and terminal
CN108536513B (en) Picture display direction adjusting method and mobile terminal
CN111178306B (en) Display control method and electronic equipment
CN111625170B (en) Animation display method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant