CN114820895A - Animation data processing method, device, equipment and system - Google Patents

Animation data processing method, device, equipment and system Download PDF

Info

Publication number
CN114820895A
CN114820895A CN202210241445.3A CN202210241445A CN114820895A CN 114820895 A CN114820895 A CN 114820895A CN 202210241445 A CN202210241445 A CN 202210241445A CN 114820895 A CN114820895 A CN 114820895A
Authority
CN
China
Prior art keywords
animation
layer
displacement
dimensional
dimensional layer
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.)
Pending
Application number
CN202210241445.3A
Other languages
Chinese (zh)
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202210241445.3A priority Critical patent/CN114820895A/en
Publication of CN114820895A publication Critical patent/CN114820895A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites

Abstract

The specification provides an animation data processing method, device, equipment and system, wherein a two-dimensional layer animation is created, the displacement coefficient of each layer in the two-dimensional layer animation is configured, and when animation display is carried out, the moving position and the track of each layer in the moving process of the two-dimensional layer animation in the animation equipment are calculated in real time based on the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation, so that the position of each layer of the two-dimensional layer animation is changed in real time. The rule of the movement change of the two-dimensional layer animation in the three-dimensional space is simulated, and the effect of simulating the three-dimensional animation by the two-dimensional animation is realized. On the premise of ensuring the display effect of the animation, the animation production cost is reduced.

Description

Animation data processing method, device, equipment and system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a system for processing animation data.
Background
General interactive animation can be divided into 2D animation, namely two-dimensional animation, and 3D animation, namely three-dimensional animation, and general 2D interactive animation has fixed positions between different layers, and cannot realize real-time interaction and transformation with a user. The 3D interactive animation can easily implement the shot change, but the 3D resources have higher 3D art modeling requirements and manufacturing costs, and meanwhile, the 3D rendering engine often has more strict requirements on rendering machines (such as mobile phones, IOT devices, and the like), and the threshold for online deployment is higher.
Disclosure of Invention
An object of the embodiments of the present specification is to provide an animation data processing method, apparatus, device, and system, which achieve an effect of simulating a three-dimensional animation using a two-dimensional animation, improve an animation display effect, and reduce animation production cost.
In a first aspect, an embodiment of the present specification provides an animation data processing method, where the method includes:
creating a two-dimensional layer animation, wherein the two-dimensional layer animation comprises a plurality of layers;
setting displacement coefficients of all layers in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation; wherein, the corresponding displacement coefficients of different image layers are different;
and packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment can be updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
In a second aspect, the present specification provides an animation data processing method, the method comprising:
acquiring motion data of a two-dimensional layer animation to be displayed and animation display equipment; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed;
and updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variable quantity of each layer.
In a third aspect, the present specification provides an animation data processing apparatus comprising:
the two-dimensional animation creating module is used for creating a two-dimensional layer animation, and the two-dimensional layer animation comprises a plurality of layers; wherein, the corresponding displacement coefficients of different image layers are different;
the displacement coefficient determining module is used for setting the displacement coefficient of each layer in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation;
and the animation release module is used for packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment can be updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
In a fourth aspect, the present specification provides an animation data processing apparatus comprising:
the data acquisition module is used for acquiring the two-dimensional layer animation to be displayed and the motion data of the animation display equipment; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
the displacement calculation module is used for calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed;
and the layer position updating module is used for updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variable quantity of each layer.
In a fifth aspect, the present specification provides an animation data processing device, including at least one processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the animation data processing method according to the first aspect or the second method.
In a sixth aspect, an embodiment of the present specification provides an animation data processing system, including: the two-dimensional layer animation production equipment comprises at least one processor and a memory for storing processor executable instructions, and the processor executes the instructions to realize the method in the first aspect, create the two-dimensional animation and configure the displacement coefficient of each layer in the two-dimensional animation;
the animation display equipment comprises at least one processor and a memory used for storing processor executable instructions, and the processor executes the instructions to realize the method in the second aspect, and is used for updating the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment in real time based on motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation created by the two-dimensional layer animation production equipment.
According to the animation data processing method, device, equipment and system provided by the specification, the two-dimensional layer animation is created, the displacement coefficient of each layer in the two-dimensional layer animation is configured, and when animation display is carried out, the moving position and track of each layer in the moving process of the two-dimensional layer animation in the animation equipment are calculated in real time based on the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation, so that the position of each layer of the two-dimensional layer animation is changed in real time. The rule of the movement change of the two-dimensional layer animation in the three-dimensional space is simulated, and the effect of simulating the three-dimensional animation by the two-dimensional animation is realized. On the premise of ensuring the display effect of the animation, the animation production cost is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for processing animation data provided by an embodiment of the present disclosure;
FIG. 2 is a schematic view of a configuration interface of a displacement coefficient according to an embodiment of the present disclosure;
FIG. 3 is a flow diagram illustrating a method for processing animation data according to further embodiments of the present disclosure;
FIG. 4 is a block diagram of an embodiment of an animation data processing apparatus provided in the present specification;
FIG. 5 is a block diagram of an animation data processing apparatus according to another embodiment of the present disclosure;
fig. 6 is a block diagram showing a hardware configuration of the animation data processing server in one embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
With the development of computers, animation can vividly and flexibly display pictures, and is applied more and more, with the development of technologies, animation includes two-dimensional animation, three-dimensional animation and three-dimensional interactive animation, so that lens change can be easily realized, but 3D resources have higher 3D art modeling requirements and manufacturing cost, and meanwhile, 3D rendering engines have more strict requirements on rendering machines (such as mobile phones, IOT devices and the like), and the threshold for online deployment is higher.
In some embodiments of the present description, an animation data processing method may be provided, where displacement coefficients are configured for each layer in a two-dimensional animation, and positions of each layer of the two-dimensional animation are calculated in real time in a motion process of animation display equipment by combining motion data of the animation display equipment, so as to simulate a change rule of movement in a three-dimensional space, and achieve an effect of simulating 3D with a low cost.
Fig. 1 is a schematic flowchart of an embodiment of an animation data processing method provided in an embodiment of the present specification. Although the present specification provides the method steps or apparatus structures as shown in the following examples or figures, more or less steps or modules may be included in the method or apparatus structures based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause and effect relationship, the execution order of the steps or the block structure of the apparatus is not limited to the execution order or the block structure shown in the embodiments or the drawings of the present specification. When the described method or module structure is applied to a device, a server or an end product in practice, the method or module structure may be executed sequentially or in parallel according to the embodiments or the method or module structure shown in the drawings (for example, in the environment of parallel processors or multi-thread processing, or even in the environment of distributed processing and server cluster).
In a specific embodiment of the animation data processing method provided in this specification, as shown in fig. 1, the method may be applied to a terminal such as a computer, a tablet computer, a server, and a smart phone, and the method may include the following steps:
step 102, creating a two-dimensional layer animation, wherein the two-dimensional layer animation comprises a plurality of layers.
In a specific implementation process, the two-dimensional layer animation may be understood as a 2D interactive animation, generally, the two-dimensional layer animation may be divided into a background layer, a middle-view layer, and a foreground layer based on a front-back sequence of layer display, where the foreground layer refers to a layer closest to a screen of the animation display device, and the background layer refers to a layer farthest from the screen of the animation display device. The creation of the two-dimensional layer animation may be designed based on actual needs by using animation drawing software or equipment, and the embodiment of the present specification is not particularly limited. When creating a two-dimensional layer animation, the position of each layer and animation parameters may be determined, such as: position transformation, size transformation, color transformation, rotation transformation, and the like, and the parameters of the two-dimensional layer animation are not particularly limited in the embodiments of this specification.
104, setting displacement coefficients of all layers in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation; and the displacement coefficients corresponding to different image layers are different.
In a specific implementation process, after a two-dimensional layer animation is created, a displacement coefficient of each layer in the animation can be set according to a layer sequence, and the displacement coefficient can be understood as a movable proportion of each layer and can be used as a reference for subsequently calculating the layer displacement. The displacement coefficient may be set based on a context of the two-dimensional layer animation or a prominent subject relationship, and generally, the displacement coefficients of different layers are different.
In some embodiments of this specification, the setting, according to the layer sequence of the two-dimensional layer animation, a displacement coefficient of each layer in the two-dimensional layer animation includes:
and the displacement coefficient of the background layer of the two-dimensional layer animation is larger than that of the foreground layer of the two-dimensional layer animation.
In a specific implementation process, when a scene lens is moved in a three-dimensional space, the physical law (namely, the 3D perspective relation) tells that the moving amount of the foreground is relatively small and the moving amount of the background is relatively large. In the embodiment of the present specification, when setting the displacement coefficient of each layer of the two-dimensional layer animation, the displacement coefficient of the background layer may be set to be greater than the displacement coefficient of the foreground layer, that is, generally, the displacement coefficient of the layer closer to the rear is larger, and the displacement coefficient of the layer closer to the front is smaller, that is, the displacement coefficient of the layer closer to the background layer is larger.
Based on the layer sequence of the two-dimensional layer animation, the displacement coefficient of each layer is reasonably set, the displacement coefficient of the layer which is more behind is larger, and the displacement coefficient of the layer which is more ahead is smaller, so that the calculated layer position can accurately simulate the change rule of movement in a three-dimensional space, and further the effect of simulating the three-dimensional animation is realized.
In some embodiments of this specification, the setting, according to the layer sequence of the two-dimensional layer animation, a displacement coefficient of each layer in the two-dimensional layer animation includes:
and setting corresponding displacement value intervals of each layer in the two-dimensional layer animation in different displacement directions according to the layer sequence of the two-dimensional layer animation.
In a specific real-time process, fig. 2 is a schematic view of a configuration interface of a displacement coefficient in an embodiment of this specification, and as shown in fig. 2, when setting a displacement coefficient of each layer in a two-dimensional animation layer in the embodiment of this specification, the displacement coefficient may be set in a value range, and the displacement coefficient may include a displacement direction, for example: including x-direction displacement parameters and y-direction displacement parameters, etc. As shown in fig. 2, the two-dimensional layer animation in fig. 2 has three layers, that is, a foreground layer, a middle-view layer, and a background layer, and a displacement value interval (xMin-xMax in fig. 2) of the displacement coefficients of the three layers of the foreground layer, the middle-view layer, and the background layer in the x direction and a displacement value interval (yMin-yMax in fig. 2) in the y direction may be set, and as shown in fig. 2, the displacement coefficient may be a positive number or a negative number, where the positive number may indicate forward following and the negative number may indicate reverse following.
Through reasonable configuration of displacement value intervals of each layer in different displacement directions, an accurate data base is laid for the calculation of the subsequent layer position.
In some embodiments of this specification, when setting a displacement coefficient of each layer in a two-dimensional layer animation according to a layer order of the two-dimensional layer animation, the method further includes:
and determining whether each layer has an immobile layer or not according to the semantic information of each layer in the two-dimensional layer animation, and if so, setting the displacement coefficient of the immobile layer to be 0.
In a specific real-time process, some layers may exist in the two-dimensional layer animation and do not need to be moved, and whether the layer belongs to a stationary layer or not can be judged according to the semantic information of each layer of the semantic information of each layer, for example: the text or title in the animation may not need to be moved. The displacement coefficient of the still image layer is set to be 0, namely the still image layer is kept always and does not move along with the movement of the equipment, so that a user can read or check the still image layer conveniently, and the display effect of the animation is improved.
And 106, packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation, so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment is updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
In a specific implementation process, after the displacement coefficient of each layer is configured, the displacement coefficient and other data of the two-dimensional layer animation, such as: animation parameters and the like are packaged and published together. The two-dimensional layer animation can be downloaded or loaded when equipment needs to use or display the animation, animation parameters and displacement coefficients of all layers are obtained, and then the positions of all layers in the two-dimensional layer animation in the motion process of the animation display equipment are updated in real time based on the displacement coefficients of all the layers and the motion data of the animation display equipment, so that the effect of simulating the two-dimensional layer animation to move in a three-dimensional space is achieved, and the three-dimensional animation is simulated.
In addition, in some embodiments of the present specification, before the animation package and release of the displacement coefficient of each layer and the two-dimensional layer, the method further includes:
and increasing the layer size of the two-dimensional layer animation within a specified range.
In some embodiments of the present description, before issuing a two-dimensional layer animation, an animation layer may be appropriately increased, the two-dimensional layer animation in the present application needs to move according to movement of a display device when being displayed, and a background of the animation may exceed an original range due to an influence of displacement.
The embodiment of the specification provides an idea of simulating a three-dimensional animation effect by using a two-dimensional layer based on displacement, namely different displacement coefficients are given to the layers in the two-dimensional layer animation, a physical rule (perspective relation) in a three-dimensional space is followed, and the positions of the layers can be changed in real time. And, an interactive layer animation scheme linked with an external sensing device (such as a gyroscope) is provided. Compared with a pure two-dimensional animation scheme, the embodiment of the specification adds a real-time displacement change function in the two-dimensional animation, applies different displacement parameters, can dynamically change the position of a layer, and can be matched with induction equipment to realize more interactive playing methods. Compared with a pure three-dimensional animation scheme, the scheme of simulating the three-dimensional animation in the embodiment of the specification is based on a two-dimensional layer animation or a two-dimensional layer animation, has lower production and deployment on-line thresholds, and simultaneously reserves a perspective relation in the three-dimensional animation, so that people can feel a certain feeling of the three-dimensional animation, and the user experience is improved.
In some embodiments of the present description, an animation data processing method is further provided, which is mainly used for displaying the two-dimensional layer animation released in the above embodiments, and simulating the effect of a three-dimensional animation. Fig. 3 is a schematic flow chart of an animation data processing method in other embodiments of the present disclosure, as shown in fig. 3, the method may be applied to an animation display device such as: on terminals such as smart phones, smart wearable devices, tablet computers and the like, the method may include the steps of:
step 302, acquiring motion data of a two-dimensional layer animation to be displayed and animation display equipment; the to-be-displayed two-dimensional layer animation comprises the displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different.
In a specific implementation process, a two-dimensional layer animation including displacement coefficients of different layers may be created with reference to the method of the above embodiment, and when the two-dimensional layer animation created in the above embodiment needs to be displayed, the two-dimensional layer animation to be displayed may be obtained, and at the same time, the motion data of the animation display device may be obtained. When an interactive layer animation is actually played, in the embodiment of the present specification, it is generally necessary to cooperate with sensing devices in the physical world to perform linkage, so as to simulate changes of a lens, for example: and (3) interactive animation based on a mobile phone gyroscope. Taking a gyroscope as an example, the motion data of the animation exhibition device may include the rotation angles yaw, roll, pitch of the gyroscope in three-dimensional space. Where pitch is the rotation around the X-axis, also called pitch angle, yaw is the rotation around the Y-axis, also called yaw angle, and roll is the rotation around the Z-axis, also called roll angle.
In addition, in some embodiments of the present description, after obtaining the motion data of the animation display device, the method further includes:
and carrying out filtering and smoothing processing on the motion data.
In a specific implementation process, after obtaining motion data of an animation display device, in order to prevent a noise error and ensure smoothness of playing, an embodiment of the present specification may perform filtering smoothing on data obtained in real time, such as: the specific operation process of extracting obviously erroneous data, normalizing the data, and filtering and smoothing is not specifically limited in the embodiments of this specification.
And 304, calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed.
In a specific implementation process, after the motion data of the animation display device is acquired, the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display device can be calculated based on the acquired motion data and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed. The displacement variable quantity can be understood as the distance that the layer to be displayed with the two-dimensional layer animation needs to move in the moving process of the animation display equipment. In the embodiment of the description, the motion data of the animation display device can be obtained in real time, and then the displacement variation of each layer in the two-dimensional layer animation to be displayed is calculated in real time based on the motion data. The displacement variation corresponding to each layer in the two-dimensional layer animation to be displayed can be calculated in real time based on the motion data of the animation display device, or the calculation frequency is set and calculated once every 1 second or 0.1 second, and the specific calculation frequency is not specifically limited in the embodiment of the specification.
In some embodiments of this specification, the calculating, according to the motion data of the animation display device and the displacement coefficient of each layer in the to-be-displayed two-dimensional layer animation, a displacement variation of each layer in the to-be-displayed two-dimensional layer animation in the motion process of the animation display device includes:
and taking the product of the motion data of the animation display equipment and the displacement coefficient of each layer as the displacement variable quantity of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment.
In a specific implementation process, a product of the motion data of the animation display device and the displacement coefficient of each layer may be used as a displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display device. Such as: the motion data of the processed animation display device at a certain moment is r, the displacement coefficient of one layer in the two-dimensional layer animation to be displayed is s, and the displacement variation of the layer at the moment can be represented as r × s.
In some embodiments of this specification, the displacement coefficient of each layer includes a displacement value interval corresponding to a different displacement direction;
the calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed comprises the following steps:
according to the motion data of the animation display equipment, determining a target displacement coefficient value of each layer in each displacement direction from a displacement value interval corresponding to each layer;
and calculating displacement variation of each layer in each displacement direction in the motion process of the animation display equipment based on the target displacement coefficient value and the motion data.
In a specific implementation process, as shown in fig. 2, in the embodiment of the present specification, when setting a displacement coefficient of a two-dimensional layer animation, different displacement value intervals are set based on different displacement directions, and when calculating a displacement variation of a layer, a target displacement coefficient value of each layer in each displacement direction may be determined from a corresponding displacement value interval according to motion data. For example: if the movement data of the animation display equipment is displayed with more movement in the x direction, then the corresponding target displacement coefficient value can be determined in the displacement value interval of each layer corresponding to the x direction. The mapping relation between the motion data of the animation display equipment and the displacement of the animation layer can be determined according to the experimental data and the expert experience, and then a proper displacement coefficient is selected from the corresponding displacement value interval based on the motion data. As shown in fig. 2, the displacement value interval of the background layer in the x direction is [ -3,3], and if the motion data of the animation display device is displayed with a relatively large movement amount in the x direction and is moving in the forward direction, a value can be selected from values close to 3 as a target displacement coefficient value of the background layer in the x direction based on the mapping relationship between the motion data and the layer displacement amount.
After determining the target displacement coefficient value corresponding to each layer, the displacement variation of each layer in the motion process of the animation display device may be calculated by combining the motion data and the target displacement coefficient value of the animation display device, for example: and taking the product of the target displacement coefficient value of each layer and the motion data of the animation display equipment as the displacement variable quantity of the layer in the corresponding displacement direction.
In the embodiment of the description, based on the motion data of the animation display device, a proper displacement coefficient value is determined in the displacement value interval of each layer, and then the displacement variation of each layer in the corresponding displacement direction is calculated by combining the motion data, so that the moving process of the two-dimensional animation in the three-dimensional space is accurately simulated, and the simulation of the three-dimensional animation is realized.
In some embodiments of the present description, the method further comprises: setting a motion limit value of the animation display equipment;
the calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed comprises the following steps:
and judging whether the motion data of the animation display equipment exceeds the motion limit value, if so, calculating the displacement variation of each layer in each displacement direction in the motion process of the animation display equipment based on the displacement coefficient of each layer and the motion limit value.
In a specific implementation process, the embodiment of the present specification further sets motion limit values of the animation display device, that is, limits of maximum and minimum movement values of the animation display device. When calculating the displacement of the two-dimensional animation layer in the moving process of the animation display device, it is necessary to first determine whether the motion data of the animation display device exceeds a preset motion limit value, if so, it indicates that the movement amount of the animation display device exceeds the range, and when calculating the displacement of the two-dimensional animation layer in the moving process of the animation display device, the preset motion limit value of the animation display device and the displacement coefficient of the layer are directly used to calculate the displacement variation of each layer. For example: the motion limit value of the animation display device is preset to be that the rotation angle of the animation display device in the x direction cannot exceed 90 degrees, and if the rotation angle of the animation display device in the x direction in the motion data of the animation display device is collected to be 100 degrees, the motion of the animation display device exceeds the motion limit value. If the movement data of the animation display device, that is, 100 degrees, is still used to calculate the displacement variation of the layer in the two-dimensional layer animation, the movement of the layer may exceed the screen of the animation display device, and the display effect may be affected. In this case, the motion data of the animation display device is directly regarded as the motion limit value, and the motion limit value is used to calculate the displacement variation of each layer.
The embodiment of the description controls the motion of the animation layer within a certain range by setting the motion amplitude of the animation display equipment, thereby ensuring the display effect of the animation.
And step 306, updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variable quantity of each layer.
In a specific implementation process, after the displacement variation of each layer in the two-dimensional layer animation to be displayed is calculated, the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment can be updated in real time based on the displacement variation of each layer, so that the two-dimensional layer animation to be displayed moves along with the movement of the animation display equipment, the moving effect of the two-dimensional animation in a three-dimensional space is simulated, and the purpose of obtaining the three-dimensional animation is achieved through simulation. For example: the mobile phone gyroscope-based interactive animation display can endow different layers with displacement proportionality coefficients and directions according to semantic information (foreground, medium scene, background, motionless layers and the like) of layer animation, and finally achieves that different layer elements can show corresponding motion amplitude along with the motion of the gyroscope when a mobile phone shakes.
In addition, in an application scene, in addition to the field of interactive animation, the method in the embodiment of the specification can be used in interactive desktop, AR and other scenes, and the effect of three-dimensional animation is obtained based on two-dimensional animation simulation. Of course, besides controlling the displacement of the animation, the size and color of the layer can be controlled to achieve more rich and interesting effects, such as: different sizes or colors of different layers are endowed with different changes based on the motion data of the display device. On the interactive equipment, except a mobile phone gyroscope, a screen can be directly slid by fingers or other input equipment (such as VR helmet, handle and the like) with motion perception can be used as a data source driven by the interactive animation.
It should be noted that, in the embodiment of the present specification, the device for creating the two-dimensional layer animation and the two-dimensional animation display device may be the same device or different devices. Such as: the two-dimensional layer animation can be drawn and created on the smart phone, the displacement coefficient of each layer is configured, and then the displacement variable quantity of each layer of the created two-dimensional layer animation is calculated in real time based on the motion data of the smart phone. That is, the data processing method in fig. 1 and fig. 3 may be applied to one device, or may be applied to two different devices, and the embodiment of this specification is not particularly limited.
According to the animation data processing method provided by the embodiment of the specification, the two-dimensional layer animation is created, the displacement coefficient of each layer in the two-dimensional layer animation is configured, and when animation display is carried out, the moving position and the track of each layer in the moving process of the two-dimensional layer animation in the animation equipment are calculated in real time based on the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation, so that the position of each layer of the two-dimensional layer animation is changed in real time. The rule of the movement change of the two-dimensional layer animation in the three-dimensional space is simulated, and the effect of simulating the three-dimensional animation by the two-dimensional animation is realized. On the premise of ensuring the display effect of the animation, the animation production cost is reduced.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The relevant points can be obtained by referring to the partial description of the method embodiment.
Based on the animation data processing method, one or more embodiments of the present specification further provide a system for animation data processing. The system may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc. that use the methods described in embodiments of the present specification in conjunction with any necessary hardware-implemented devices. Based on the same innovative conception, embodiments of the present specification provide an apparatus as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present specification may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Specifically, fig. 4 is a schematic block diagram of an embodiment of an animation data processing apparatus provided in this specification, where the apparatus may be a two-dimensional animation creation device, and as shown in fig. 4, the animation data processing apparatus provided in this specification may include:
a two-dimensional animation creating module 41, configured to create a two-dimensional layer animation, where the two-dimensional layer animation includes multiple layers; wherein, the corresponding displacement coefficients of different image layers are different;
a displacement coefficient determining module 42, configured to set a displacement coefficient of each layer in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation;
and the animation publishing module 43 is configured to package and publish the displacement coefficient of each layer and the two-dimensional layer animation, so that the animation display device updates the position of each layer in the two-dimensional layer animation in the motion process of the animation display device based on the displacement coefficient of each layer and the motion data of the animation display device.
Fig. 5 is a schematic block structure diagram of another embodiment of an animation data processing apparatus provided in this specification, which may be understood as an animation display device in the above embodiment, and as shown in fig. 5, the animation data processing apparatus provided in this specification may include:
the data acquisition module 51 is configured to acquire a two-dimensional layer animation to be displayed and motion data of an animation display device; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
a displacement amount calculating module 52, configured to calculate, according to the motion data of the animation display device and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed, a displacement amount of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display device;
and the layer position updating module 53 is configured to update, according to the displacement variation of each layer, the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display device.
The animation data processing device provided in the embodiment of the present specification, by creating a two-dimensional layer animation and configuring a displacement coefficient of each layer in the two-dimensional layer animation, when animation display is performed, based on motion data of animation display equipment, and in combination with the displacement coefficient of each layer in the two-dimensional layer animation, a moving position and a trajectory of each layer in the moving process of the animation equipment of the two-dimensional layer animation are calculated in real time, and a position of each layer of the two-dimensional layer animation is changed in real time. The rule of the movement change of the two-dimensional layer animation in the three-dimensional space is simulated, and the effect of simulating the three-dimensional animation by the two-dimensional animation is realized. On the premise of ensuring the display effect of the animation, the animation production cost is reduced.
It should be noted that the above-mentioned apparatus may also include other embodiments according to the description of the corresponding method embodiment. The specific implementation manner may refer to the description of the above corresponding method embodiment, and is not described in detail herein.
An embodiment of the present specification further provides an animation data processing apparatus, including: at least one processor and a memory for storing processor-executable instructions, the processor implementing the information recommendation data processing method of the above embodiment when executing the instructions, such as:
creating a two-dimensional layer animation, wherein the two-dimensional layer animation comprises a plurality of layers;
setting displacement coefficients of all layers in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation; wherein, the corresponding displacement coefficients of different image layers are different;
and packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment can be updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
Or acquiring motion data of the two-dimensional layer animation to be displayed and animation display equipment; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed;
and updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variable quantity of each layer.
An embodiment of the present specification further provides an animation data processing system, including: the system comprises an equipment management platform, a user terminal and hardware equipment; the device management platform comprises at least one processor and a memory for storing executable instructions of the processor, and the processor executes the method executed by the device management platform and is used for providing mobile application comprising a plurality of small programs;
the user terminal is used for comprising at least one processor and a memory for storing processor executable instructions, and when the processor executes the instructions, a method executed by the user terminal corresponding to a manufacturer is realized so as to request to call a mobile application comprising a plurality of applets provided by the equipment management platform and install the mobile application into the hardware equipment.
It should be noted that the above description of the apparatus and system according to the method embodiments may also include other embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The animation data processing device provided by the present specification can also be applied to various data analysis processing systems. The system or server or terminal or device may be a single server, or may include a server cluster, a system (including a distributed system), software (applications), actual operating devices, logical gate devices, quantum computers, and the like, which use one or more of the methods or one or more embodiments of the present disclosure, and terminal devices in combination with necessary hardware implementations. The system for checking for discrepancies may comprise at least one processor and a memory storing computer-executable instructions that, when executed by the processor, implement the steps of the method of any one or more of the embodiments described above.
The method embodiments provided by the embodiments of the present specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking the example of the server as an example, fig. 6 is a block diagram of the hardware structure of the animation data processing server in one embodiment of the present specification, and the computer terminal may be the animation data processing server or the animation data processing apparatus in the above embodiment. As shown in fig. 6, the server 10 may include one or more (only one shown) processors 100 (the processors 100 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration and is not intended to limit the structure of the electronic device. For example, the server 10 may also include more or fewer components than shown in FIG. 6, and may also include other processing hardware, such as a database or multi-level cache, a GPU, or have a different configuration than shown in FIG. 6, for example.
The non-volatile memory 200 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the animation data processing method in the embodiments of the present specification, and the processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the non-volatile memory 200. Non-volatile memory 200 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to a computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 300 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission module 300 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The method or apparatus provided in this specification and described in the foregoing embodiments may implement the service logic through a computer program and record the service logic on a storage medium, where the storage medium may be read and executed by a computer, and implement the effects of the solutions described in the embodiments of this specification, such as:
creating a two-dimensional layer animation, wherein the two-dimensional layer animation comprises a plurality of layers;
setting displacement coefficients of all layers in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation; wherein, the corresponding displacement coefficients of different image layers are different;
and packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment can be updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
Or acquiring motion data of the two-dimensional layer animation to be displayed and animation display equipment; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed;
and updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variable quantity of each layer.
An embodiment of the present specification further provides an animation data processing system, including: the two-dimensional layer animation production equipment and the animation display equipment; the two-dimensional layer animation production equipment comprises at least one processor and a memory for storing executable instructions of the processor, wherein the processor executes the production process of the two-dimensional animation in the embodiment, is used for creating the two-dimensional animation, and configures displacement coefficients of all layers in the two-dimensional animation;
the animation display equipment is used for comprising at least one processor and a memory used for storing executable instructions of the processor, and the method for the animation display equipment to execute is realized when the processor executes the instructions and is used for updating the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment in real time based on motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation created by the two-dimensional layer animation production equipment.
The animation data processing method or apparatus provided in the embodiments of the present specification may be implemented in a computer by a processor executing corresponding program instructions, for example, implemented in a PC end using a c + + language of a windows operating system, implemented in a linux system, or implemented in an intelligent terminal using android, iOS system programming languages, implemented in processing logic based on a quantum computer, or the like.
It should be noted that descriptions of the apparatus, the computer storage medium, and the system described above according to the related method embodiments may also include other embodiments, and specific implementations may refer to descriptions of corresponding method embodiments, which are not described in detail herein.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to only the partial description of the method embodiment.
The embodiments of the present description are not limited to what must be consistent with industry communications standards, standard computer resource data updating and data storage rules, or what is described in one or more embodiments of the present description. Certain industry standards, or implementations modified slightly from those described using custom modes or examples, may also achieve the same, equivalent, or similar, or other, contemplated implementations of the above-described examples. The embodiments using the modified or transformed data acquisition, storage, judgment, processing and the like can still fall within the scope of the alternative embodiments of the embodiments in this specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When the device or the end product in practice executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures (for example, in the environment of parallel processors or multi-thread processing, even in the environment of distributed resource data update). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. The terms first, second, etc. are used to denote names, but not any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, 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 present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable resource data updating apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource data updating apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable resource data update apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable resource data update apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in distributed computing environments where tasks are performed by remote devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and the relevant points can be referred to only part of the description of the method embodiments. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (14)

1. A method of animation data processing, the method comprising:
creating a two-dimensional layer animation, wherein the two-dimensional layer animation comprises a plurality of layers;
setting displacement coefficients of all layers in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation; wherein, the corresponding displacement coefficients of different image layers are different;
and packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment can be updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
2. The method according to claim 1, wherein the setting of the displacement coefficient of each layer in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation includes:
and the displacement coefficient of the background layer of the two-dimensional layer animation is greater than that of the foreground layer of the two-dimensional layer animation.
3. The method according to claim 1, wherein the setting of the displacement coefficient of each layer in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation includes:
and setting corresponding displacement value intervals of each layer in the two-dimensional layer animation in different displacement directions according to the layer sequence of the two-dimensional layer animation.
4. The method according to claim 1, when setting the displacement coefficient of each layer in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation, the method further comprises:
and determining whether an immobile layer exists in each layer according to the semantic information of each layer in the two-dimensional layer animation, and if so, setting the displacement coefficient of the immobile layer to be 0.
5. The method of claim 1, before the step of packaging and publishing the displacement coefficient of each layer and the two-dimensional layer animation, the method further comprises:
and increasing the layer size of the two-dimensional layer animation within a specified range.
6. A method of animation data processing, the method comprising:
acquiring motion data of a two-dimensional layer animation to be displayed and animation display equipment; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed;
and updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variable quantity of each layer.
7. The method according to claim 6, wherein the calculating, according to the motion data of the animation display device and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed, a displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display device includes:
and taking the product of the motion data of the animation display equipment and the displacement coefficient of each layer as the displacement variable quantity of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment.
8. The method according to claim 6, wherein the displacement coefficients of the respective image layers include corresponding displacement value intervals in different displacement directions;
the calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed comprises the following steps:
according to the motion data of the animation display equipment, determining a target displacement coefficient value of each layer in each displacement direction from a displacement value interval corresponding to each layer;
and calculating displacement variation of each layer in each displacement direction in the motion process of the animation display equipment based on the target displacement coefficient value and the motion data.
9. The method of claim 6, further comprising: setting a motion limit value of the animation display equipment;
the calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed comprises the following steps:
and judging whether the motion data of the animation display equipment exceeds the motion limit value, if so, calculating the displacement variation of each layer in each displacement direction in the motion process of the animation display equipment based on the displacement coefficient of each layer and the motion limit value.
10. The method of claim 6, after obtaining motion data for the animation rendering device, the method further comprising:
and carrying out filtering and smoothing processing on the motion data.
11. An animation data processing apparatus, the apparatus comprising:
the two-dimensional animation creating module is used for creating two-dimensional layer animation, and the two-dimensional layer animation comprises a plurality of layers; wherein, the corresponding displacement coefficients of different image layers are different;
the displacement coefficient determining module is used for setting the displacement coefficient of each layer in the two-dimensional layer animation according to the layer sequence of the two-dimensional layer animation;
and the animation release module is used for packaging and releasing the displacement coefficient of each layer and the two-dimensional layer animation so that the position of each layer in the two-dimensional layer animation in the motion process of the animation display equipment can be updated by the animation display equipment based on the displacement coefficient of each layer and the motion data of the animation display equipment.
12. An animation data processing apparatus, the apparatus comprising:
the data acquisition module is used for acquiring the two-dimensional layer animation to be displayed and the motion data of the animation display equipment; the two-dimensional layer animation to be displayed comprises displacement coefficients of all layers, and the displacement coefficients corresponding to different layers are different;
the displacement calculation module is used for calculating the displacement variation of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the motion data of the animation display equipment and the displacement coefficient of each layer in the two-dimensional layer animation to be displayed;
and the layer position updating module is used for updating the position of each layer in the two-dimensional layer animation to be displayed in the motion process of the animation display equipment according to the displacement variation of each layer.
13. An animation data processing apparatus comprising: at least one processor and a memory for storing processor-executable instructions, the processor implementing the method of any of claims 1-5 or 6-10 when executing the instructions.
14. An animation data processing system comprising: the two-dimensional layer animation production equipment and the animation display equipment are characterized in that the two-dimensional layer animation production equipment comprises at least one processor and a memory for storing executable instructions of the processor, and when the processor executes the instructions, the processor realizes the method of any one of claims 1-5, and is used for creating two-dimensional animation and configuring displacement coefficients of all layers in the two-dimensional animation;
the animation display device comprises at least one processor and a memory for storing processor-executable instructions, wherein the processor, when executing the instructions, implements the method of any one of claims 6 to 10, and is configured to update the position of each layer in the two-dimensional layer animation in real time during the motion process of the animation display device based on the motion data of the animation display device and the displacement coefficient of each layer in the two-dimensional layer animation created by the two-dimensional layer animation device.
CN202210241445.3A 2022-03-11 2022-03-11 Animation data processing method, device, equipment and system Pending CN114820895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210241445.3A CN114820895A (en) 2022-03-11 2022-03-11 Animation data processing method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210241445.3A CN114820895A (en) 2022-03-11 2022-03-11 Animation data processing method, device, equipment and system

Publications (1)

Publication Number Publication Date
CN114820895A true CN114820895A (en) 2022-07-29

Family

ID=82528538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210241445.3A Pending CN114820895A (en) 2022-03-11 2022-03-11 Animation data processing method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN114820895A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115329697A (en) * 2022-08-26 2022-11-11 北京国科恒通科技股份有限公司 Method, device and system for generating simulated three-dimensional circuit diagram and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000187741A (en) * 1998-12-24 2000-07-04 Sharp Corp Device and method for preparing animation
US20130106866A1 (en) * 2011-10-28 2013-05-02 Microsoft Corporation Layering animation properties in higher level animations
WO2013079774A1 (en) * 2011-11-29 2013-06-06 Nokia Corporation Method, apparatus and computer program product for generating animated images
CN103544725A (en) * 2013-11-19 2014-01-29 马宁 Two-dimensional stereoscopic animation making method
WO2015052514A2 (en) * 2013-10-08 2015-04-16 Digimania Limited Rendering composites/layers for video animations
CN112435319A (en) * 2019-08-26 2021-03-02 上海卷石文化传媒有限公司 Two-dimensional animation generating system based on computer processing
CN112882638A (en) * 2021-02-23 2021-06-01 上海哔哩哔哩科技有限公司 Multi-layer animation display method and device
CN112882637A (en) * 2021-02-23 2021-06-01 上海哔哩哔哩科技有限公司 Interaction method for multi-layer animation display and browser
WO2021139359A1 (en) * 2020-01-10 2021-07-15 腾讯科技(深圳)有限公司 Image processing method and apparatus, electronic device, and storage medium
CN113409427A (en) * 2021-07-21 2021-09-17 北京达佳互联信息技术有限公司 Animation playing method and device, electronic equipment and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000187741A (en) * 1998-12-24 2000-07-04 Sharp Corp Device and method for preparing animation
US20130106866A1 (en) * 2011-10-28 2013-05-02 Microsoft Corporation Layering animation properties in higher level animations
WO2013079774A1 (en) * 2011-11-29 2013-06-06 Nokia Corporation Method, apparatus and computer program product for generating animated images
WO2015052514A2 (en) * 2013-10-08 2015-04-16 Digimania Limited Rendering composites/layers for video animations
CN103544725A (en) * 2013-11-19 2014-01-29 马宁 Two-dimensional stereoscopic animation making method
CN112435319A (en) * 2019-08-26 2021-03-02 上海卷石文化传媒有限公司 Two-dimensional animation generating system based on computer processing
WO2021139359A1 (en) * 2020-01-10 2021-07-15 腾讯科技(深圳)有限公司 Image processing method and apparatus, electronic device, and storage medium
CN112882638A (en) * 2021-02-23 2021-06-01 上海哔哩哔哩科技有限公司 Multi-layer animation display method and device
CN112882637A (en) * 2021-02-23 2021-06-01 上海哔哩哔哩科技有限公司 Interaction method for multi-layer animation display and browser
CN113409427A (en) * 2021-07-21 2021-09-17 北京达佳互联信息技术有限公司 Animation playing method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李焕翱;: "二维动画中图层相对运动的计算与应用――以一点透视的等物距运动为例", 绵阳师范学院学报, no. 12, 15 December 2017 (2017-12-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115329697A (en) * 2022-08-26 2022-11-11 北京国科恒通科技股份有限公司 Method, device and system for generating simulated three-dimensional circuit diagram and storage medium

Similar Documents

Publication Publication Date Title
CN110766776B (en) Method and device for generating expression animation
CN112933597B (en) Image processing method, image processing device, computer equipment and storage medium
EP3392745B1 (en) Multi-device virtual reality, artifical reality and mixed reality analytics
CN110489725A (en) Three-dimensional visualization method, device, computer equipment and its storage medium
CN112669414B (en) Animation data processing method and device, storage medium and computer equipment
CN112241993A (en) Game image processing method and device and electronic equipment
CN109669673A (en) Game engine device based on HTML5
CN106683193A (en) Three-dimensional model design method and design device
CN112237739A (en) Game role rendering method and device, electronic equipment and computer readable medium
CN113034662A (en) Virtual scene rendering method and device, storage medium and electronic equipment
CN110930492B (en) Model rendering method, device, computer readable medium and electronic equipment
CN115713877A (en) Fault removal guiding method suitable for ship electromechanical equipment fault information simulation
CN114820895A (en) Animation data processing method, device, equipment and system
US20190114819A1 (en) Dimensional content surface rendering
US20230177755A1 (en) Predicting facial expressions using character motion states
CN115115752A (en) Virtual garment deformation prediction method and device, storage medium and electronic equipment
CN111142967A (en) Augmented reality display method and device, electronic equipment and storage medium
CN112843704A (en) Animation model processing method, device, equipment and storage medium
US20230196673A1 (en) Method and system for providing automated 3d modeling for xr online platform
US10888777B2 (en) Deep learning from real world and digital exemplars
US20200226834A1 (en) Method and system for tracking data of a vr, ar or mr device wearer in real time
CN113192173B (en) Image processing method and device of three-dimensional scene and electronic equipment
CN114816457A (en) Method, device, storage medium and electronic device for cloning virtual model
CN114299203A (en) Processing method and device of virtual model
CN114119831A (en) Snow accumulation model rendering method and device, electronic equipment and readable 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