Animation processing method and device, equipment and storage medium
By configuring an animation window in a binocular display device and generating a synthetic animation matrix, the problem that window animation cannot be displayed coincidentally when rendering and displaying is solved, and the display effect and user experience are improved.
Patent Information
- Application Number
- CN202411671792.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, the window animation of the binocular display device cannot be displayed coincidently when rendering and displaying, resulting in poor display effect.
In response to the animation processing request, the initial animation data to be displayed on the binocular is obtained, and the first animation window is configured according to the second animation window, a synthetic animation matrix is generated, and the initial animation data is divided and drawn to output the target animation data, so that it is displayed coincidentally on the binocular display device.
It improves the display effect of the binocular display device and the immersion of the user experience, so that window animations can be displayed correctly in the binocular display device.
Smart Images

Figure CN119722878A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an animation processing method, device, equipment and storage medium. Background Art
[0002] At present, with the rapid development of binocular display devices such as virtual reality display devices, various hardware manufacturers have also launched various binocular display devices to provide users with a more immersive visual experience. However, in the prior art, the window animation displayed in the display window of the binocular display device is still a monocular animation rendered based on the full screen size, which results in that when the window animation is finally displayed in the binocular display device, the window animations in each binocular window cannot be displayed in an overlapping manner, resulting in a poor display effect. Summary of the invention
[0003] The embodiments of the present application provide an animation processing method, apparatus, device and storage medium, which are intended to solve the technical problem in the prior art that the window animation of a binocular display device cannot be displayed overlappingly during rendering, resulting in poor display effect.
[0004] On the one hand, an embodiment of the present application provides an animation processing method, the animation processing method comprising the following steps:
[0005] In response to the animation processing request, initial animation data to be binocularly displayed and a first animation window corresponding to the initial animation data are obtained;
[0006] Configure the first animation window according to the second animation window to obtain a first configuration window;
[0007] Generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data;
[0008] The initial animation data is divided and drawn according to the synthetic animation matrix to obtain target animation data and output the target animation data.
[0009] In a possible implementation of the present application, configuring the first animation window according to the second animation window to obtain a first configuration window includes:
[0010] Creating an initial animation window, and labeling the initial animation window according to a target variable attribute label to obtain a second animation window;
[0011] The first animation window is parented according to the second animation window to obtain a first configuration window.
[0012] In a possible implementation of the present application, generating a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window, and the animation transformation matrix of the initial animation data includes:
[0013] Acquire an animation transformation matrix of the initial animation data, and set the animation transformation matrix as a first animation matrix of the second animation window;
[0014] Driving the first configuration window to inherit the window properties of the second animation window to obtain a first target window and a second animation matrix of the first target window;
[0015] A matrix update is performed according to the first animation matrix, the second animation matrix, the target variable attribute label and the target synthesis strategy to obtain a synthesized animation matrix.
[0016] In a possible implementation of the present application, performing matrix updating according to the first animation matrix, the second animation matrix, the target variable attribute label and the target synthesis strategy to obtain a synthesized animation matrix includes:
[0017] Traversing the first layer information of the first target window and the second layer information of the second animation window;
[0018] If the first layer information and the second layer information include the target variable attribute tag, determining the preset synthesis strategy as the matrix update strategy of the first target window and the second animation window;
[0019] According to the matrix update strategy, the second animation matrix in the first target window and the first animation matrix in the second animation window are updated to obtain a composite animation matrix.
[0020] In a possible implementation of the present application, performing matrix updating on the second animation matrix in the first target window and the first animation matrix in the second animation window according to the matrix update strategy to obtain a composite animation matrix includes:
[0021] Obtaining a second animation matrix of the first target window and a first animation matrix of the second animation window;
[0022] Performing horizontal coordinate compression on the first animation matrix according to the matrix update strategy to obtain a first target matrix, and performing horizontal coordinate compression on the second animation matrix according to the matrix update strategy to obtain a second target matrix;
[0023] The first animation matrix and the second animation matrix are set as a composite animation matrix.
[0024] In a possible implementation of the present application, the step of dividing and drawing the initial animation data according to the synthetic animation matrix to obtain target animation data and outputting the target animation data includes:
[0025] Dividing the initial animation data in the synthetic animation layer to obtain first animation data and second animation data;
[0026] Drawing first animation data in a first cache area according to the synthetic animation matrix to obtain first cache animation data, and drawing second animation data in a second cache area according to the synthetic animation matrix to obtain second cache animation data;
[0027] Target animation data is generated according to the first cache animation data and the second cache animation data, and the target animation data is output.
[0028] In a possible implementation of the present application, after outputting the target animation data, the method further includes:
[0029] Obtain the animation playing time of the target animation data;
[0030] If the animation playing time is greater than or equal to the preset time threshold, the second animation window is removed, and the first target window is configured and restored according to the third animation window to obtain a restored animation window.
[0031] In another aspect, the present application provides an animation processing device, the animation processing device comprising:
[0032] A data acquisition module is configured to respond to an animation processing request, acquire initial animation data to be binocularly displayed, and a first animation window corresponding to the initial animation data;
[0033] A window configuration module, configured to configure the first animation window according to the second animation window to obtain a first configuration window;
[0034] a matrix updating module, configured to generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data;
[0035] The animation processing module is configured to divide and draw the initial animation data according to the synthetic animation matrix, obtain target animation data and output the target animation data.
[0036] On the other hand, the present application also provides an animation processing device, the animation processing device comprising:
[0037] one or more processors;
[0038] Memory; and
[0039] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the animation processing method.
[0040] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the animation processing method.
[0041] In the present application, by responding to an animation processing request, the initial animation data to be binocularly displayed and the first animation window corresponding to the initial animation data are obtained; the first animation window is configured according to the second animation window to obtain a first configuration window; a synthetic animation matrix of the initial animation data is generated according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data; the initial animation data is divided and drawn according to the synthetic animation matrix to obtain target animation data and output the target animation data. A second animation window associated with the first animation window corresponding to the initial animation data is created, and the animation transformation matrix of the first animation window and the initial animation data is updated using the window label information of the second animation window, and the initial animation data is divided and drawn using the synthetic animation matrix to obtain the target animation data, and the target animation data is sent to the binocular display device for display, so that the target animation data can be displayed in a overlapping manner on the binocular display device, thereby improving the display effect of the binocular display device and improving the immersiveness of the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A schematic diagram of a scene of the animation processing method according to an embodiment of the present application;
[0044] Figure 2 A flowchart of an embodiment of an animation processing method in an embodiment of the present application;
[0045] Figure 3 A flowchart of an embodiment of updating a transformation matrix in an animation processing method provided in an embodiment of the present application;
[0046] Figure 4 A flowchart of another embodiment of the animation processing method provided in the embodiment of the present application;
[0047] Figure 5 A schematic diagram of the structure of an embodiment of an animation processing device provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of the structure of an embodiment of an animation processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0050] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0051] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0052] At present, with the rapid development of binocular display devices such as virtual reality display devices, various hardware manufacturers have also launched various binocular display devices to provide users with a more immersive visual experience. However, in the prior art, the window animation displayed in the display window of the binocular display device is still a monocular animation rendered based on the full screen size, which results in that when the window animation is finally displayed in the binocular display device, the window animations in each binocular window cannot be displayed in an overlapping manner, resulting in a poor display effect.
[0053] Based on this, the present application proposes an animation processing method, apparatus, device and computer-readable storage medium to solve the technical problem in the prior art that the window animation of the binocular display device cannot be displayed overlapping during rendering, resulting in poor display effect.
[0054] The animation processing method in the embodiment of the present invention is applied to an animation processing device, which is arranged in the animation processing device. The animation processing device is provided with one or more processors, memories, and one or more applications, wherein the one or more applications are stored in the memories and are configured to be executed by the processor to implement the animation processing method; wherein the animation processing device can be an intelligent terminal connected to the binocular display device for communication, such as a mobile phone, a tablet computer, a network device, and a smart computer; optionally, the animation processing device can also be a binocular display device itself, such as a virtual reality display device.
[0055] like Figure 1 As shown, Figure 1 This is a scene diagram of the animation processing method of an embodiment of the present application. The animation processing scene in the embodiment of the present invention includes an animation processing device 100 (animation processing means are integrated in the animation processing device 100), and a computer-readable storage medium corresponding to the animation processing method runs in the animation processing device 100 to execute the steps of the animation processing method.
[0056] Understandably, Figure 1 The animation processing equipment in the animation processing method scenario shown, or the devices included in the animation processing equipment, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the animation processing equipment included in the animation processing method scenario, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.
[0057] The animation processing device 100 in the embodiment of the present invention is mainly used for: responding to an animation processing request, obtaining initial animation data to be binocularly displayed, and a first animation window corresponding to the initial animation data; configuring the first animation window according to a second animation window to obtain a first configuration window; generating a synthetic animation matrix of the initial animation data according to window label information of the second animation window, the first configuration window and an animation transformation matrix of the initial animation data; dividing and drawing the initial animation data according to the synthetic animation matrix to obtain target animation data and outputting the target animation data.
[0058] The animation processing device in the embodiment of the present invention can be an intelligent terminal that is connected to the binocular display device, such as a mobile phone, a tablet computer, a network device, and a smart computer; optionally, the animation processing device can also be a binocular display device itself, such as a virtual reality display device. The embodiment of the present application provides an animation processing method, apparatus, device, and computer-readable storage medium, which are described in detail below.
[0059] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer animation devices than shown, or animation network connection relationships, e.g. Figure 1 Only one animation processing device is shown in the figure. It can be understood that the scene of the animation processing method can also include one or more animation processing devices, which are not specifically limited here. The animation processing device 100 can also include a memory for storing image data and other data.
[0060] It should be noted that Figure 1 The scene diagram of the animation processing method shown is only an example. The scene of the animation processing method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.
[0061] Based on the scenario of the above animation processing method, various embodiments of the animation processing method disclosed in the present invention are proposed.
[0062] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of an animation processing method in an embodiment of the present application. The animation processing method includes the following steps 201 to 204:
[0063] 201. In response to an animation processing request, obtain initial animation data to be binocularly displayed and a first animation window corresponding to the initial animation data;
[0064] The animation processing method in this embodiment is applied to animation processing equipment, and the type and number of animation processing equipment are not specifically limited. That is, the animation processing equipment can be an intelligent terminal that is communicatively connected to the binocular display device, such as a mobile phone, a tablet computer, a network device, and a smart computer; optionally, the animation processing equipment can also be a binocular display device itself, such as a virtual reality display device.
[0065] Specifically, the animation processing device responds to an animation processing request during operation, wherein the animation processing request is to drive the animation processing device to perform image segmentation on the initial animation data for binocular display using a specified synthetic animation matrix, and draw the segmented initial animation image, thereby generating an operation event for generating target animation data that can be displayed overlappingly in a display component of the binocular display device.
[0066] Specifically, before the animation processing request is obtained, the animation processing device is pre-set with an animation processing program for performing binocular display processing on the image data, and the animation processing program can generate an animation window corresponding to the image data to be processed. After obtaining the animation processing request, the animation processing device obtains the initial animation data to be displayed by the binocular, and draws an animation window corresponding to the initial animation data in the animation processing program to generate a first animation window corresponding to the initial animation data. Optionally, in a specific embodiment, the first animation window can be an animation window interface adapted for binocular display, that is, the first animation window in the animation processing device can include two left window interfaces and right window interfaces obtained by dividing the vertical axis passing through the center point of the window interface. The initial animation data is an animation data frame to be displayed to the specified binocular display device.
[0067] 202. Configure the first animation window according to the second animation window to obtain a first configuration window;
[0068] Specifically, after the animation processing device obtains the initial animation data and generates a first animation window corresponding to the initial animation data, in order to avoid the situation where the initial animation data cannot completely overlap when displayed in the binocular display device, resulting in poor display effect, the animation processing device also creates a second animation window before drawing and playing the initial animation data, and configures the first animation window according to the second animation window to obtain a first configuration window.
[0069] Specifically, the animation processing device opens an initial animation window associated with the first animation window in the animation processing program, and uses a designated window manager or interface to mark the initial animation window according to the target variable attribute label to obtain a second animation window associated with the first animation window and the initial animation data. Optionally, in a specific embodiment, the second animation window is a light window. The target variable label attribute is the isWi ndowAnimating = true attribute. That is, the target variable label attribute indicates that the second animation window is executing an animation effect.
[0070] Specifically, when the animation processing device obtains the second animation window, it also performs parent configuration on the first animation window according to the second animation window, that is, sets the second animation window as the new parent window of the first animation window, thereby obtaining the first configuration window corresponding to the first animation window. That is, the parent window of the first animation window in the animation processing device is changed to the second animation window, and the first animation window is removed from the original parent window and becomes a child window of the second animation window.
[0071] Among them, there is no difference in time sequence between the steps of marking the second animation window and using the second animation window to parent the first animation window. That is, the animation processing device can first use the initial animation window or the second animation window to parent the first animation window, or it can mark the second animation window first. This embodiment does not make specific limitations here.
[0072] 203. Generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data;
[0073] Specifically, after marking the second animation window and configuring the first animation window using the second animation window, the animation processing device also generates a synthetic animation matrix of the initial animation data based on the window label of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data.
[0074] Specifically, when the window animation corresponding to the initial animation data starts, the animation processing device obtains the animation transformation matrix of the initial animation data, and sets the animation transformation matrix as the first animation matrix of the second animation window.
[0075] Specifically, the animation processing device obtains the animation file corresponding to the initial animation data, and calculates the transformation matrix of each frame in the initial animation data according to the animation file to obtain the animation transformation matrix of the initial animation data. That is, the animation processing device parses the animation file and obtains the animation key frame information in the animation file, wherein the key frame information is the transformation properties such as position, rotation and scaling corresponding to the animation playback key frame in the initial animation data. After obtaining the animation key frame information, the animation processing device determines the animation start time and animation end time of the initial animation data, as well as the time interval of each frame, and performs interpolation calculation according to the key frame information, thereby obtaining the key frame transformation properties, and constructs the animation transformation matrix of the initial animation data according to the obtained key frame transformation properties. Optionally, in a specific embodiment, the animation transformation matrix is a 4*4 matrix.
[0076] Specifically, after acquiring the animation transformation matrix corresponding to the initial animation data, the animation processing device sets the animation transformation matrix as the first animation matrix of the second animation window.
[0077] Specifically, the animation processing device traverses all layers corresponding to the initial animation data, collects each layer state, and drives the first configuration window to trace back to the second animation window, drives the first configuration window to inherit the window properties of the second animation window, and generates a first target window, wherein the first target window includes the target variable property label inherited from the second animation window. That is, the first target window also includes the isWi ndowAnimating = true property.
[0078] Specifically, the animation processing device further sets the animation transformation matrix corresponding to the initial animation data as the second animation matrix of the first target window.
[0079] Specifically, the animation processing device also pre-sets the window synthesis strategy corresponding to each window layer. After the first animation window and the second animation window are set to complete the animation matrix, the target synthesis strategy corresponding to the first animation window and the second animation window is also determined. The data in the window layer in the animation processing program is synthesized through the target synthesis strategy, and the animation matrix of each window layer is updated to obtain a synthesized animation matrix. The window synthesis strategy includes the HWC hardware synthesis strategy and the Client synthesis strategy.
[0080] Specifically, the animation processing device traverses each window layer in the animation processing program to determine the first layer information of the first target window and the second layer information of the second animation window, and parses the first layer information and the second layer information to determine whether the first layer information and the second layer information contain the target variable attribute tag.
[0081] Optionally, if the first layer information and / or the second layer information includes the target variable attribute tag, the animation processing device determines the target synthesis strategy as the matrix update strategy of the first target window and / or the second animation window, wherein the target synthesis strategy is a modified Client synthesis strategy.
[0082] Optionally, if the layer information in other animation layers also includes the target variable attribute tag, the animation processing device will also determine the target synthesis strategy as the matrix update strategy corresponding to the animation layer.
[0083] Specifically, after determining the matrix update strategy corresponding to each animation layer, the animation processing device also uses the matrix update strategy to perform matrix update on the second animation matrix in the first target window and the first animation matrix in the second animation window to obtain a composite animation matrix.
[0084] 204. Divide and draw the initial animation data according to the synthetic animation matrix to obtain target animation data and output the target animation data.
[0085] Specifically, after the animation processing device updates the animation matrix corresponding to the animation layer in the animation processing program and obtains the synthetic animation matrix, it also divides the initial animation data according to the synthetic animation matrix and draws the initial animation data to generate target animation data, and sends the target animation data for display output processing through a designated cache area, and outputs the target animation data to a binocular display device for playback until the window animation is completed.
[0086] Specifically, the animation processing device divides the initial animation data corresponding to each layer, and divides the initial animation data into left and right parts at the center point of the window to obtain first animation data and second animation data, wherein the first animation data is the animation data of the left part after the initial animation data is divided, and the second animation data is the animation data of the left part after the initial animation data is divided.
[0087] Specifically, after obtaining the first animation data and the second animation data corresponding to each layer, the animation processing device draws the first animation data in the first cache area according to the synthetic animation matrix corresponding to the layer to obtain the first cache animation data, draws the second animation data in the second cache area according to the synthetic animation matrix corresponding to the layer to obtain the second cache animation data, and generates the target animation data according to the first cache animation data and the second cache animation data, and inputs the target animation data into the binocular display device for display until the preset time threshold is reached and the target animation data is played. Among them, the first cache area is the cache area located on the left side of the layer. The second cache area is the corresponding cache area located on the right side of the layer.
[0088] That is, after acquiring the first animation data and the second animation data, the animation processing device applies the synthetic animation matrix corresponding to the layer to the first animation data and then draws it in the first cache area located on the left side of the layer, and translates it to the first cache area from the origin to half the width of the screen; the second animation data applies the synthetic animation matrix corresponding to the layer and then draws it in the second cache area located on the right side of the layer, and translates it to the second cache area from the origin to half the width of the screen.
[0089] In this embodiment, the animation processing device obtains the initial animation data to be binocularly displayed and the first animation window corresponding to the initial animation data by responding to the animation processing request; configures the first animation window according to the second animation window to obtain the first configuration window; generates a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data; divides and draws the initial animation data according to the synthetic animation matrix to obtain the target animation data and outputs the target animation data. The second animation window associated with the first animation window corresponding to the initial animation data is created, and the animation transformation matrix of the first animation window and the initial animation data is updated using the window label information of the second animation window, and the initial animation data is divided and drawn using the synthetic animation matrix to obtain the target animation data, and the target animation data is sent to the binocular display device for display, so that the target animation data can be displayed in a overlapping manner on the binocular display device, thereby improving the display effect of the binocular display device and improving the immersiveness of the user experience.
[0090] like Figure 3 As shown, Figure 3 This is a flow chart of an embodiment of updating a transformation matrix in an animation processing method provided in an embodiment of the present application. Specifically, in this embodiment, the animation processing method further includes steps 301 to 303:
[0091] 301. Obtain a second animation matrix of the first target window and a first animation matrix of the second animation window;
[0092] 302. Perform horizontal coordinate compression on the first animation matrix according to the matrix update strategy to obtain a first target matrix, and perform horizontal coordinate compression on the second animation matrix according to the matrix update strategy to obtain a second target matrix;
[0093] 303. Set the first animation matrix and the second animation matrix as a composite animation matrix.
[0094] Based on the above embodiments, in this embodiment, after determining the matrix update strategy corresponding to each animation layer, the animation processing device also uses the matrix update strategy to perform matrix update on the second animation matrix in the first target window and the first animation matrix in the second animation window to obtain a composite animation matrix.
[0095] Specifically, after the animation processing device obtains the matrix update strategy, it also obtains the first animation matrix of the first target window and the second animation matrix of the second animation window, and updates the first animation matrix and the second animation matrix according to the matrix update strategy to obtain a composite animation matrix.
[0096] Specifically, the animation processing device uses the matrix update strategy to compress the horizontal coordinates of the first animation matrix, compresses the horizontal coordinates of each parameter in the first animation matrix to a target compression ratio, and obtains a first target matrix. Optionally, in a specific embodiment, the target compression ratio is 50%, that is, the animation processing device uses the matrix update strategy to compress the horizontal coordinates in the first animation matrix to half, and generates the first target matrix.
[0097] Specifically, the animation processing device uses the matrix update strategy to compress the horizontal coordinates of the second animation matrix, compresses the horizontal coordinates of each parameter in the second animation matrix to a target compression ratio, and obtains a second target matrix. Optionally, in two specific embodiments, the target compression ratio is 50%, that is, the animation processing device uses the matrix update strategy to compress the horizontal coordinates in the second animation matrix to half to generate the second target matrix.
[0098] Specifically, after acquiring the first target matrix and the second target matrix, the animation processing device sets the first target matrix and the second target matrix as the synthetic animation matrix corresponding to the corresponding animation window / layer. For example, the first target matrix is set as the synthetic animation matrix of the first target window, and the second target matrix is set as the synthetic animation matrix corresponding to the second animation window, and in subsequent steps, the synthetic animation matrix corresponding to the layer is used to draw the initial animation data to obtain the target animation data, so that the target animation data can be displayed in the binocular display device to improve the display effect of the binocular display device.
[0099] In this embodiment, the animation processing device obtains the second animation matrix of the first target window and the first animation matrix of the second animation window; compresses the first animation matrix according to the matrix update strategy to obtain the first target matrix, compresses the second animation matrix according to the matrix update strategy to obtain the second target matrix; sets the first animation matrix and the second animation matrix as a composite animation matrix. In layer synthesis, the matrix update of the window layer containing the target variable attribute label is implemented, so that the animation data is drawn using the updated composite animation matrix to improve the eye-catching display effect.
[0100] like Figure 4 As shown, Figure 4 This is a flow chart of another embodiment of the animation processing method provided in the embodiment of the present application. Specifically, in this embodiment, the animation processing method further includes steps 401 to 402:
[0101] 401. Obtain the animation playing time of the target animation data;
[0102] 402. If the animation playing time is greater than or equal to a preset time threshold, remove the second animation window, and restore the configuration of the first target window according to the third animation window to obtain a restored animation window.
[0103] Based on the above embodiments, in this embodiment, the animation processing device inputs the target animation data into the binocular display device for display until the target animation data is played back after a preset time threshold is reached. After the target animation data is played back, the animation processing device also restores the first target window to obtain a restored animation window.
[0104] Specifically, after displaying the target animation data, the animation processing device also obtains the animation playback time of the target animation data, and compares the animation playback time with a preset time threshold to determine whether the target animation data has been played. The preset time threshold can be the target playback time of the target animation data or slightly longer than the target playback time.
[0105] Optionally, if the animation playback duration is greater than or equal to the preset time threshold, the animation processing device determines that the target animation data has been played, and then removes the second animation window, and restores the first target window according to the third animation window to obtain a restored animation window. That is, after the animation processing device removes the second animation window, it also performs parenting processing on the first target window according to the third animation window, and configures the third animation window as the parent window of the first target window. The third animation window is the parent window corresponding to the first animation window before the second animation window performs parenting processing on the first animation window.
[0106] In this embodiment, the animation processing device obtains the animation playing time of the target animation data; if the animation playing time is greater than or equal to the preset time threshold, the second animation window is removed, and the first target window is configured and restored according to the third animation window to obtain the restored animation window, thereby improving the animation playing efficiency and reducing the power consumption of the device.
[0107] In order to better implement the animation processing method in the embodiment of the present application, based on the animation processing method, an animation processing device is also provided in the embodiment of the present application, such as Figure 5 As shown, Figure 5 The structure diagram of the animation processing device provided in the embodiment of the present application is as follows. Specifically, the animation processing device 500 includes:
[0108] The data acquisition module 501 is configured to respond to the animation processing request, acquire the initial animation data to be binocularly displayed, and the first animation window corresponding to the initial animation data;
[0109] A window configuration module 502 is configured to configure the first animation window according to the second animation window to obtain a first configuration window;
[0110] A matrix updating module 503 is configured to generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data;
[0111] The animation processing module 504 is configured to divide and draw the initial animation data according to the synthetic animation matrix, obtain target animation data and output the target animation data.
[0112] In a possible implementation of this embodiment, the animation processing device configures the first animation window according to the second animation window to obtain a first configuration window, including:
[0113] Creating an initial animation window, and labeling the initial animation window according to a target variable attribute label to obtain a second animation window;
[0114] The first animation window is parented according to the second animation window to obtain a first configuration window.
[0115] In a possible implementation of this embodiment, the animation processing device generates a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window, and the animation transformation matrix of the initial animation data, including:
[0116] Acquire an animation transformation matrix of the initial animation data, and set the animation transformation matrix as a first animation matrix of the second animation window;
[0117] Driving the first configuration window to inherit the window properties of the second animation window to obtain a first target window and a second animation matrix of the first target window;
[0118] A matrix update is performed according to the first animation matrix, the second animation matrix, the target variable attribute label and the target synthesis strategy to obtain a synthesized animation matrix.
[0119] In a possible implementation of this embodiment, the animation processing device performs matrix update according to the first animation matrix, the second animation matrix, the target variable attribute label and the target synthesis strategy to obtain a synthesized animation matrix, including:
[0120] Traversing the first layer information of the first target window and the second layer information of the second animation window;
[0121] If the first layer information and the second layer information include the target variable attribute tag, determining the preset synthesis strategy as the matrix update strategy of the first target window and the second animation window;
[0122] According to the matrix update strategy, the second animation matrix in the first target window and the first animation matrix in the second animation window are updated to obtain a composite animation matrix.
[0123] In a possible implementation of this embodiment, the animation processing device updates the second animation matrix in the first target window and the first animation matrix in the second animation window according to the matrix update strategy to obtain a composite animation matrix, including:
[0124] Obtaining a second animation matrix of the first target window and a first animation matrix of the second animation window;
[0125] Performing horizontal coordinate compression on the first animation matrix according to the matrix update strategy to obtain a first target matrix, and performing horizontal coordinate compression on the second animation matrix according to the matrix update strategy to obtain a second target matrix;
[0126] The first animation matrix and the second animation matrix are set as a composite animation matrix.
[0127] In a possible implementation of this embodiment, the animation processing device divides and draws the initial animation data according to the synthetic animation matrix, obtains the target animation data and outputs the target animation data, including:
[0128] Splitting the initial animation data to obtain first animation data and second animation data;
[0129] Drawing first animation data in a first cache area according to the synthetic animation matrix to obtain first cache animation data, and drawing second animation data in a second cache area according to the synthetic animation matrix to obtain second cache animation data;
[0130] Target animation data is generated according to the first cache animation data and the second cache animation data, and the target animation data is output.
[0131] In a possible implementation of this embodiment, after the animation processing device outputs the target animation data, the method further includes:
[0132] Obtain the animation playing time of the target animation data;
[0133] If the animation playing time is greater than or equal to the preset time threshold, the second animation window is removed, and the first target window is configured and restored according to the third animation window to obtain a restored animation window.
[0134] In this embodiment, the animation processing device obtains the initial animation data to be binocularly displayed and the first animation window corresponding to the initial animation data by responding to the animation processing request; configures the first animation window according to the second animation window to obtain the first configuration window; generates a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data; divides and draws the initial animation data according to the synthetic animation matrix to obtain the target animation data and outputs the target animation data. The second animation window associated with the first animation window corresponding to the initial animation data is created, and the animation transformation matrix of the first animation window and the initial animation data is updated using the window label information of the second animation window, and the initial animation data is divided and drawn using the synthetic animation matrix to obtain the target animation data, and the target animation data is sent to the binocular display device for display, so that the target animation data can be displayed in a overlapping manner on the binocular display device, thereby improving the display effect of the binocular display device and improving the immersiveness of the user experience.
[0135] The embodiment of the present invention also provides an animation processing device, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of an embodiment of the animation processing device provided in the embodiments of the present application.
[0136] The animation processing device integrates any one of the animation processing devices provided in the embodiments of the present invention, and the animation processing device includes:
[0137] one or more processors;
[0138] Memory; and
[0139] One or more applications, wherein the one or more applications are stored in the memory and are configured so that the processor executes the steps of the animation processing method described in any of the above-mentioned animation processing method embodiments.
[0140] Specifically, the animation processing device may include one or more processing core processors 601, one or more computer-readable storage media memories 602, a power supply 603, an input unit 604, and other components. Those skilled in the art will appreciate that Figure 6 The structure of the animation processing device shown in the figure does not constitute a limitation on the animation processing device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0141] The processor 601 is the control center of the animation processing device. It uses various interfaces and lines to connect various parts of the entire animation processing device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it performs various functions of the animation processing device and processes data, thereby monitoring the animation processing device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.
[0142] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the animation processing device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0143] The animation processing device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 603 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0144] The animation processing device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0145] Although not shown, the animation processing device may further include a display unit, etc., which will not be described in detail herein. Specifically, in this embodiment, the processor 601 in the animation processing device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, as follows:
[0146] In response to the animation processing request, initial animation data to be binocularly displayed and a first animation window corresponding to the initial animation data are obtained;
[0147] Configure the first animation window according to the second animation window to obtain a first configuration window;
[0148] Generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data;
[0149] The initial animation data is divided and drawn according to the synthetic animation matrix to obtain target animation data and output the target animation data.
[0150] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any animation processing method provided in the embodiment of the present invention. For example, the computer program can be loaded by a processor to execute the following steps:
[0151] In response to the animation processing request, initial animation data to be binocularly displayed and a first animation window corresponding to the initial animation data are obtained;
[0152] Configure the first animation window according to the second animation window to obtain a first configuration window;
[0153] Generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data;
[0154] The initial animation data is divided and drawn according to the synthetic animation matrix to obtain target animation data and output the target animation data.
[0155] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0156] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0157] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0158] The above is a detailed introduction to an animation processing method provided in an embodiment of the present application. Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. An animation processing method, characterized in that: The animation processing method comprises: In response to the animation processing request, initial animation data to be binocularly displayed and a first animation window corresponding to the initial animation data are obtained; Configure the first animation window according to the second animation window to obtain a first configuration window; Generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data; The initial animation data is divided and drawn according to the synthetic animation matrix to obtain target animation data and output the target animation data.
2. The animation processing method according to claim 1, characterized in that: The configuring the first animation window according to the second animation window to obtain a first configuration window includes: Creating an initial animation window, and labeling the initial animation window according to a target variable attribute label to obtain a second animation window; The first animation window is parented according to the second animation window to obtain a first configuration window.
3. The animation processing method according to claim 1, characterized in that: The step of generating a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window, and the animation transformation matrix of the initial animation data comprises: Acquire an animation transformation matrix of the initial animation data, and set the animation transformation matrix as a first animation matrix of the second animation window; Driving the first configuration window to inherit the window properties of the second animation window to obtain a first target window and a second animation matrix of the first target window; A matrix update is performed according to the first animation matrix, the second animation matrix, the target variable attribute label and the target synthesis strategy to obtain a synthesized animation matrix.
4. The animation processing method according to claim 3, characterized in that: The step of performing matrix updating according to the first animation matrix, the second animation matrix, the target variable attribute label and the target synthesis strategy to obtain a synthesized animation matrix includes: Traversing the first layer information of the first target window and the second layer information of the second animation window; If the first layer information and the second layer information include the target variable attribute tag, determining the target synthesis strategy as the matrix update strategy of the first target window and the second animation window; According to the matrix update strategy, the second animation matrix in the first target window and the first animation matrix in the second animation window are updated to obtain a composite animation matrix.
5. The animation processing method according to claim 4, characterized in that: The step of performing matrix updating on the second animation matrix in the first target window and the first animation matrix in the second animation window according to the matrix updating strategy to obtain a composite animation matrix comprises: Obtaining a second animation matrix of the first target window and a first animation matrix of the second animation window; Performing horizontal coordinate compression on the first animation matrix according to the matrix update strategy to obtain a first target matrix, and performing horizontal coordinate compression on the second animation matrix according to the matrix update strategy to obtain a second target matrix; The first animation matrix and the second animation matrix are set as a composite animation matrix.
6. The animation processing method according to any one of claims 1 to 5, characterized in that: The step of dividing and drawing the initial animation data according to the synthetic animation matrix to obtain target animation data and outputting the target animation data comprises: Splitting the initial animation data to obtain first animation data and second animation data; Drawing first animation data in a first cache area according to the synthetic animation matrix to obtain first cache animation data, and drawing second animation data in a second cache area according to the synthetic animation matrix to obtain second cache animation data; Target animation data is generated according to the first cache animation data and the second cache animation data, and the target animation data is output.
7. The animation processing method according to claim 6, characterized in that: After outputting the target animation data, the method further includes: Obtain the animation playing time of the target animation data; If the animation playing time is greater than or equal to the preset time threshold, the second animation window is removed, and the first target window is configured and restored according to the third animation window to obtain a restored animation window.
8. An animation processing device, characterized in that: The animation processing device comprises: A data acquisition module is configured to respond to an animation processing request, acquire initial animation data to be binocularly displayed, and a first animation window corresponding to the initial animation data; A window configuration module, configured to configure the first animation window according to the second animation window to obtain a first configuration window; a matrix updating module, configured to generate a synthetic animation matrix of the initial animation data according to the window label information of the second animation window, the first configuration window and the animation transformation matrix of the initial animation data; The animation processing module is configured to divide and draw the initial animation data according to the synthetic animation matrix, obtain target animation data and output the target animation data.
9. An animation processing device, characterized in that: The animation processing device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the steps of the animation processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the animation processing method according to any one of claims 1 to 7.