Ribbon animation production method, device and electronic equipment
By generating and exporting ribbon animation data in 3D animation tools, the problem of lack of automatic calculation of ribbon animation in 2D animation tools is solved, and production efficiency is improved.
Patent Information
- Application Number
- CN202210843876.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-18
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-07-18
AI Technical Summary
Existing 2D animation production tools such as Spine lack the function of automatically calculating ribbon animation, which requires animators to produce it manually, reducing production efficiency.
By introducing data import and export interfaces into 3D animation production tools, ribbon animation data can be generated using 3D animation tools and exported to 2D animation tools for display, thus avoiding manual production.
The production efficiency of ribbon animation in 2D animation production tools has been improved, and the animation production process has been simplified.
Smart Images

Figure CN115131479B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of animation production technology, and in particular to a method, device and electronic equipment for producing a streamer animation. Background Art
[0002] Spring Max is a 3DMax (a three-dimensional computer graphics software) script tool for generating skeletal chain animations. The tool has the function of automatically calculating ribbon animations. However, the automatic calculation of ribbon animations in the Spring Max tool only supports three-dimensional models and does not support two-dimensional skeletons such as Spine and live2d. Taking Spine as an example, Spine is a 2D skeletal animation editing tool for game development, which aims to provide a more efficient and concise workflow to create animations required for games. Since Spine's production tool does not have the automatic calculation of ribbons function, and the tool source code is not open, and there are no plug-ins that can be installed or provided to developers for production, the program cannot provide additional functions for the Spine tool. As a result, animators generally make ribbon animations manually on the Spine tool, which reduces the efficiency of ribbon animation production. Summary of the Invention
[0003] The purpose of the present disclosure is to provide a ribbon animation production method, device and electronic equipment to improve the efficiency of producing ribbon animation in a two-dimensional animation production tool.
[0004] The present disclosure provides a ribbon animation production method, which provides a three-dimensional animation production tool through an electronic device, and the three-dimensional animation production tool is configured with a data import interface and a data export interface for connecting to a two-dimensional animation production tool. The method includes: importing first JSON file data of a virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes first bone information of the virtual object in a two-dimensional form; displaying the skeleton of the virtual object in the three-dimensional animation production tool according to the first bone information; generating ribbon animation data corresponding to the target bone in response to a selection operation and a ribbon animation production operation for the target bone of the virtual object in the three-dimensional animation production tool; exporting second JSON file data containing the ribbon animation data corresponding to the target bone through the data export interface; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner in which the target bone has a ribbon animation effect.
[0005] Furthermore, the step of exporting the second JSON file data containing the ribbon animation data corresponding to the target bone through the data export interface includes: responding to the storage range setting instruction of the animation video of the virtual object, determining the video frame to be stored from the animation video containing the ribbon animation data corresponding to the target bone; determining the second JSON file data based on the ribbon animation data corresponding to the target bone contained in the video frame to be stored; and exporting the second JSON file data through the data export interface.
[0006] Furthermore, the step of exporting a second JSON file data containing ribbon animation data corresponding to the target bone through the data export interface includes: adjusting the video frame rate of the animation video containing the ribbon animation data corresponding to the target bone in response to a frame rate adjustment instruction for the animation video of the virtual object; generating a second JSON file data containing the ribbon animation data corresponding to the target bone based on the adjusted video frame rate; and exporting the second JSON file data through the data export interface.
[0007] Furthermore, in the animation video containing the ribbon animation data corresponding to the target skeleton, each frame of the video is synthesized by superimposing multiple sub-images in the depth direction; wherein each sub-image includes the overall information or local information of the virtual object; the step of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface includes: responding to the image adjustment instruction of the animation video for the virtual object, adjusting the distance difference between two adjacent sub-images in the depth direction of the multiple sub-images constituting each frame of the animation video; based on the adjusted distance difference, generating the second JSON file data containing the ribbon animation data corresponding to the target skeleton; exporting the second JSON file data through the data export interface.
[0008] Furthermore, the step of exporting a second JSON file data containing ribbon animation data corresponding to the target bone through the data export interface includes: adjusting the bone size of the virtual object in response to a size adjustment instruction for the bone of the virtual object; generating a second JSON file data containing ribbon animation data corresponding to the target bone based on the adjusted bone size; and exporting the second JSON file data through the data export interface.
[0009] Furthermore, after the step of generating the ribbon animation data corresponding to the target skeleton, the method further includes: saving the ribbon animation data corresponding to the target skeleton.
[0010] Furthermore, the two-dimensional animation production tool is the Spine tool, and the three-dimensional animation production tool is the 3DMax tool.
[0011] The present disclosure provides a ribbon animation production device, which provides a three-dimensional animation production tool through an electronic device. The three-dimensional animation production tool is configured with a data import interface and a data export interface for connecting to a two-dimensional animation production tool. The device includes: an import module, which is used to import first JSON file data of a virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes first bone information of the virtual object in a two-dimensional form; a display module, which is used to display the skeleton of the virtual object in the three-dimensional animation production tool according to the first bone information; a generation module, which is used to generate ribbon animation data corresponding to the target bone in response to a selection operation and a ribbon animation production operation for the target bone of the virtual object in the three-dimensional animation production tool; an export module, which is used to export second JSON file data containing the ribbon animation data corresponding to the target bone through the data export interface; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner in which the target bone has a ribbon animation effect.
[0012] The present disclosure provides an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement any of the above-mentioned ribbon animation production methods.
[0013] The present disclosure provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement any of the above-mentioned ribbon animation production methods.
[0014] The present disclosure provides a method, device, and electronic device for producing a ribbon animation. First, a first JSON file data file of a virtual object generated by a two-dimensional animation production tool is imported into a three-dimensional animation production tool via a data import interface. The first JSON file data includes first skeletal information corresponding to the virtual object in two-dimensional form. The skeleton of the virtual object is then displayed in the three-dimensional animation production tool based on the first skeletal information. In response to a selection operation and a ribbon animation production operation for a target skeleton of the virtual object in the three-dimensional animation production tool, ribbon animation data corresponding to the target skeleton is generated. Finally, a second JSON file data file containing the ribbon animation data corresponding to the target skeleton is exported via a data export interface. The second JSON file data is used to display the virtual object in the two-dimensional animation production tool with the target skeleton having a ribbon animation effect. This method imports the JSON file data of the virtual object generated in the two-dimensional animation production tool into the three-dimensional animation production tool via a data import interface and a data export interface to produce the ribbon animation. After the ribbon animation is produced, new JSON file data is generated and exported to the two-dimensional animation production tool to display the ribbon animation. This method improves ribbon animation production efficiency by eliminating the need to manually produce the ribbon animation in the two-dimensional animation production tool. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 This is a flow chart of a method for producing a streamer animation according to one embodiment of the present disclosure;
[0017] Figure 2 This is a flow chart of another method for producing a streamer animation disclosed in one embodiment of the present disclosure;
[0018] Figure 3 A schematic diagram of an operation interface disclosed in one embodiment of the present disclosure;
[0019] Figure 4 A schematic diagram of an operation interface disclosed in one embodiment of the present disclosure;
[0020] Figure 5 This is a flow chart of another method for producing a streamer animation disclosed in one embodiment of the present disclosure;
[0021] Figure 6 A schematic diagram of an operation interface disclosed in one embodiment of the present disclosure;
[0022] Figure 7 This is a flow chart of another method for producing a streamer animation disclosed in one embodiment of the present disclosure;
[0023] Figure 8 This is a flow chart of another method for producing a streamer animation disclosed in one embodiment of the present disclosure;
[0024] Figure 9 This is a structural diagram of a ribbon animation production device disclosed in one embodiment of the present disclosure;
[0025] Figure 10 This is a schematic structural diagram of an electronic device disclosed in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] The following will clearly and completely describe the technical solutions of the present disclosure in conjunction with the embodiments. Obviously, the embodiments described are only a part of the embodiments of the present disclosure, not all of them. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present disclosure.
[0027] The Spring Max tool has the function of automatically calculating streamer animation. This tool is based on the idea of the Lerp interpolation algorithm. It uses a coefficient to calculate an intermediate value between the current angle of the bone and the target angle by a coefficient (swing value and twist value). By repeatedly iterating this simple calculation method over time on the entire bone chain, it produces an overall following effect.
[0028] However, the current automatic calculation of ribbon animation function of this tool only supports three-dimensional models, and does not support two-dimensional skeletons such as Spine and live2d. Taking Spine as an example, there is currently no solution to solve Spine's automatic calculation of ribbon animation and simulation of physical effects such as wind and collision. Because Spine's production tool does not have the function of automatically calculating ribbons, and the source code of the tool is not open, and there are no plug-ins that can be installed or provided to developers for production, the program cannot provide additional functions for the Spine tool, resulting in animators generally making ribbon animations manually on the Spine tool, which reduces the efficiency of ribbon animation production. Based on this, the embodiments of the present disclosure provide a ribbon animation production method, device and electronic device, which can be applied to scenes where ribbon animations need to be produced in a two-dimensional animation production tool.
[0029] To facilitate understanding of this embodiment, a ribbon animation production method disclosed in one embodiment of the present disclosure is first introduced in detail; a three-dimensional animation production tool is provided by an electronic device, and the three-dimensional animation production tool is configured with a data import interface and a data export interface for docking with a two-dimensional animation production tool; the above-mentioned electronic device can be a terminal device or a server. Among them, the terminal device can be a local terminal device. When the ribbon animation production method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device. The 3D animation production tool can be understood as a 3D computer graphics software that can provide a series of animation short film production solutions from modeling, animation, materials, rendering, to audio processing, video editing, etc.; the 2D animation production tool can be understood as a 2D computer graphics software that can realize animation by binding pictures to skeletons and then controlling the skeletons to make the animation details of the game more exquisite; the above-mentioned data import interface and data export interface can be implemented by plug-ins, for example, the Spring Max plug-in can be used as the data import interface and data export interface, wherein the Spring Max plug-in is a 3DMax script tool for generating skeletal chain animation. The Spring Max plug-in in the prior art does not have this interface function. This embodiment can expand the function based on the existing function of the Spring Max plug-in to realize the functions of the above-mentioned data import interface and data export interface; Figure 1 As shown, the method includes the following steps:
[0030] Step S102: importing the first JSON file data of the virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes the first skeleton information corresponding to the two-dimensional form of the virtual object.
[0031] The above-mentioned virtual objects can be human characters, animal characters or objects in the animation scene; the above-mentioned JSON (JavaScript Object Notation, JS object notation) is a lightweight data exchange format that is easy to read and write, and can exchange data between multiple languages; the above-mentioned first JSON file data can be understood as the JSON format file data obtained after the two-dimensional animation production tool exports the animation of the generated virtual object; the above-mentioned first skeleton information can be understood as the relevant information of the skeleton of the virtual object generated by the two-dimensional animation production tool, such as the position, size, rotation, scaling information of the skeleton, and the child-parent relationship of the skeleton node, etc., which information usually exists in a two-dimensional form; taking the data import interface as an example of the implementation of the Spring Max plug-in after functional expansion, in the specific implementation, after obtaining the above-mentioned first JSON file data through the Spring Max plug-in after functional expansion, the first JSON file data can be imported into the above-mentioned three-dimensional animation production tool, and the first JSON file data can be read and parsed to obtain the above-mentioned first skeleton information.
[0032] Step S104: displaying the skeleton of the virtual object in a three-dimensional animation production tool according to the first skeleton information.
[0033] After importing the first JSON file data into the above-mentioned three-dimensional animation production tool, the first skeleton information read and parsed can be used to automatically generate a visual skeleton of the above-mentioned virtual object in the three-dimensional animation production tool. Generally, the virtual object displayed in the three-dimensional animation production tool is still a two-dimensional model generated by the two-dimensional animation production tool, and the corresponding skeleton is also a two-dimensional skeleton model. That is, the import process generally does not convert the virtual object from a two-dimensional model to a three-dimensional model, nor does it convert the two-dimensional skeleton model into a three-dimensional skeleton model. It only displays the above-mentioned virtual object in different tools.
[0034] Step S106 , in response to the selection operation of the target bone of the virtual object in the three-dimensional animation production tool and the ribbon animation production operation, generating ribbon animation data corresponding to the target bone.
[0035] The above-mentioned target bone can be any bone in the skeleton of the virtual object; after the skeleton of the virtual object is displayed in the three-dimensional animation production tool, the user can perform ribbon animation on the virtual object in the three-dimensional animation production tool; in actual implementation, the user can select the target bone that needs to be animated with a ribbon by clicking, and then perform ribbon animation on the target bone in the three-dimensional animation production tool based on the automatic calculation function of the ribbon animation of the Spring Max plug-in. After the production is completed, the ribbon animation data corresponding to the target bone can be generated.
[0036] Step S108: Export the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface; the second JSON file data is used to display the virtual object in a two-dimensional animation production tool in a manner such that the target skeleton has a ribbon animation effect.
[0037] The above-mentioned second JSON file data can be understood as the JSON format file data obtained after the three-dimensional animation production tool exports the animation of the virtual object with a ribbon animation effect; continuing to take the data export interface as an example through the Spring Max plug-in with expanded functions, in the specific implementation, after obtaining the animation of the virtual object with a ribbon animation effect generated by the above-mentioned three-dimensional animation production tool through the Spring Max plug-in with expanded functions, the animation can be exported in the JSON format file data required by the two-dimensional animation production tool (that is, the second JSON file data), and the JSON format file data can be imported into the two-dimensional animation production tool to display the virtual object in the two-dimensional animation production tool with a target skeleton with a ribbon animation effect; when importing, the second JSON file data can overwrite the above-mentioned first JSON file data, or it can be exported as another file, that is, saved in the storage file corresponding to the two-dimensional animation production tool at the same time as the first JSON file data. Users can freely choose according to actual needs, and there is no limitation here.
[0038] The above-mentioned ribbon animation production method first imports first JSON file data of a virtual object generated by a two-dimensional animation production tool into a three-dimensional animation production tool through a data import interface; wherein the first JSON file data includes first skeleton information corresponding to the virtual object in a two-dimensional form. Then, the skeleton of the virtual object is displayed in the three-dimensional animation production tool based on the first skeleton information. In response to a selection operation and a ribbon animation production operation for a target skeleton of the virtual object in the three-dimensional animation production tool, ribbon animation data corresponding to the target skeleton is generated. Finally, second JSON file data including the ribbon animation data corresponding to the target skeleton is exported through a data export interface; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner such that the target skeleton has a ribbon animation effect. This method imports the JSON file data of the virtual object generated in the two-dimensional animation production tool into the three-dimensional animation production tool through a data import interface and a data export interface to produce the ribbon animation. After the production is completed, new JSON file data is generated and exported to the two-dimensional animation production tool to display the ribbon animation. Since manual production of the ribbon animation in the two-dimensional animation production tool is not required, the efficiency of ribbon animation production is improved.
[0039] One embodiment of the present disclosure further provides another method for producing a ribbon animation, which is implemented on the basis of the method of the above embodiment; the method focuses on the specific process of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface, which specifically corresponds to the following steps S208 to S212; Figure 2 As shown, the method includes the following steps:
[0040] Step S202: importing the first JSON file data of the virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes the first skeleton information corresponding to the two-dimensional form of the virtual object.
[0041] The above-mentioned two-dimensional animation production tools can be Spine tools, Live2D tools, etc., and the above-mentioned three-dimensional animation production tools can be 3DMax tools, etc.; among them, Spine has special concepts such as skin, free deformation, and skinning. By binding pictures to bones and then controlling the bones to realize animation, it can simulate complex animation operations and make the animation details of the game more exquisite; Live2D is a drawing rendering technology used in electronic games, which can generate a two-dimensional image similar to a three-dimensional model through a series of continuous images and character modeling; 3DMax, also known as 3DS Max (3D Studio Max), is a full-featured three-dimensional computer graphics software.
[0042] For easier understanding, see Figure 3 The diagram below shows an operation interface for the Spring Max plug-in, which has been expanded to include the functionality of this solution. Taking the Spine tool as an example, the Spring Max plug-in's operation interface adds Spine's import / export functionality to the existing Spring Max plug-in. The import function is implemented by converting Spine's JSON file data into the data required by 3DMax and loading it through 3DMax's own interface. Once loaded, animators can make all modifications in 3DMax, leaving the original 3DMax and Spring Max functions unaffected. Users can select the JSON file in the Spring Max plug-in's operation interface and determine the path to the JSON file to be imported. Once imported, the file is automatically converted to 3DMax.
[0043] The conversion details are as follows: First, read and parse the JSON file data; then, use the bones field data in the JSON file (corresponding to the first skeleton information mentioned above) and the Spring Max plug-in to create a 3DMax skeleton. The relevant data parameters are passed to 3DMax, which automatically sets the skeleton's position, size, rotation, and scale based on the imported parameters.
[0044] It should be noted that the Spring Max plug-in is essentially an MS script. This solution extends the function within this MS script. After obtaining the JSON file data, it integrates it into the 3DMax interface to generate the parameters required for the model, and then calls the interface; among them, MS (MAXscript) script is the built-in scripting language of 3DMax. It is a function added in Max2.0 and later, and can also be used in 3DMax-related products, such as Autodesk VIZ (a software for 3D modeling, rendering and expression views), characterstudio (an extremely important plug-in module of 3DS MAX that can be used to simulate the movements of people and bipeds), Plasma (a 3D modeling, animation and rendering software) and GMax (an animation production software). The script can be used for modeling, animation, materials, rendering, etc. This script is specially designed for 3D Studio Max.
[0045] Step S204: displaying the skeleton of the virtual object in a three-dimensional animation production tool according to the first skeleton information.
[0046] Step S206 , in response to the selection operation of the target bone of the virtual object in the three-dimensional animation production tool and the ribbon animation production operation, generating ribbon animation data corresponding to the target bone.
[0047] Step S208 , in response to the storage range setting instruction for the animation video of the virtual object, determining a video frame to be stored from the animation video containing the ribbon animation data corresponding to the target skeleton.
[0048] The above storage range setting instruction can be used to indicate the range of video frames that need to be stored; specifically, taking the data export interface as an example through the Spring Max plug-in after functional expansion, since the animation of the streamer animation data corresponding to the target skeleton is in the form of an animation video, the animation video is usually composed of multiple frames of video frames. The user can use the SpringMax plug-in to set the range of video frames to be stored to determine the above video frames to be stored, for example, see Figure 4 As shown in the schematic diagram of an operation interface, the video frame to be stored can be the current video frame, or can be from the 1st frame to the 100th frame, etc., which can be specifically set according to actual needs.
[0049] Step S210: Determine the second JSON file data based on the ribbon animation data corresponding to the target skeleton contained in the video frame to be stored.
[0050] After determining the video frame to be stored, the Spring Max plug-in can be used to extract the ribbon animation data corresponding to the target skeleton from the video frame to be stored and record it in JSON format to obtain the above-mentioned second JSON file data.
[0051] Step S212: Export the second JSON file data through the data export interface.
[0052] Continue with Figure 3 For example, the export function is implemented by converting 3DMax data into the JSON file format required by Spine. After exporting the JSON file data, you can use the Spine tool to load the JSON file data. The specific conversion details are as follows: first, obtain the skeleton information through the Spring Max plug-in, then use the skeleton information to generate new JSON data according to the original JSON data format, and finally write the JSON data into the JSON file to be exported, obtaining the second JSON file data mentioned above and exporting it.
[0053] From the above, we can see that the basic usage process of the Spring Max plug-in after functional expansion is as follows: first import the first JSON file data of Spine, load the character to generate the model and its project file in 3DMax, then use the automatic calculation of ribbon animation function of the Spring Max plug-in to create the animation, export the second JSON file data in the JSON format required by Spine, and finally import the second JSON file data that already has the ribbon effect into the Spine tool again for subsequent creative work. This method adds import and export functions to Spine on the basis of the Spring Max plug-in, so that the Spine file can generate a new Spine file after the automatic calculation of the ribbon animation is completed in 3DMax, solving the problem that the Spine tool cannot automatically calculate the ribbon animation, thereby greatly improving the efficiency of animators in creating spine ribbon animations.
[0054] The above-mentioned ribbon animation production method responds to the storage range setting instruction for the animation video of the virtual object, and determines the video frame to be stored from the animation video containing the ribbon animation data corresponding to the target skeleton. Based on the ribbon animation data corresponding to the target skeleton contained in the video frame to be stored, the second JSON file data is determined. The second JSON file data is exported through the data export interface. This method can adjust the output range of the video frame, has a simple and convenient operation method, can meet the different needs of users, is more convenient for animation production, and thus improves the user experience.
[0055] One embodiment of the present disclosure further provides another method for producing ribbon animation, which is implemented on the basis of the above-mentioned embodiment method; the method focuses on the specific process of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface, which specifically corresponds to the following steps S508 to S512; Figure 5 As shown, the method includes the following steps:
[0056] Step S502: importing the first JSON file data of the virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes the first skeleton information corresponding to the two-dimensional form of the virtual object.
[0057] Step S504: Displaying the skeleton of the virtual object in a three-dimensional animation production tool according to the first skeleton information.
[0058] Step S506 , in response to the selection operation of the target bone of the virtual object in the three-dimensional animation production tool and the ribbon animation production operation, generating ribbon animation data corresponding to the target bone.
[0059] Step S508 , in response to the frame rate adjustment instruction for the animation video of the virtual object, adjusting the video frame rate of the animation video including the ribbon animation data corresponding to the target skeleton.
[0060] The above video frame rate can be understood as the number of video frames that can be displayed per unit time, such as the number of video frames displayed per second. Specifically, taking the data export interface implemented by the Spring Max plug-in after functional expansion as an example, since the animation containing the streamer animation data corresponding to the target skeleton is in the form of an animation video, the animation video is usually composed of multiple video frames. Users can use the Spring Max plug-in to set the required video frame rate to change the interpolation value required to save the animation data. For example, see Figure 6 As shown in the schematic diagram of an operation interface, when the storage frequency is set to 1, that is, the video frame rate is 1, it can be understood that the number of video frames displayed per unit time is 1. It can be understood that when the storage frequency is set higher, the number of video frames displayed per unit time is more, the corresponding number of interpolated animation data is more, and the display effect of the animation video will be smoother. Conversely, when the storage frequency is set lower, the number of video frames displayed per unit time is fewer, the corresponding number of interpolated animation data is fewer, and the display effect of the animation video is less smooth.
[0061] Step S510: Generate second JSON file data containing ribbon animation data corresponding to the target skeleton based on the adjusted video frame rate.
[0062] After determining the video frame rate, the ribbon animation data corresponding to the target skeleton can be extracted from the animation video based on the video frame rate through the Spring Max plug-in and recorded in JSON format to obtain the second JSON file data.
[0063] Step S512: Export the second JSON file data through the data export interface.
[0064] The above-mentioned ribbon animation production method adjusts the video frame rate of the animation video containing the ribbon animation data corresponding to the target skeleton in response to the frame rate adjustment instruction of the animation video for the virtual object. Based on the adjusted video frame rate, second JSON file data containing the ribbon animation data corresponding to the target skeleton is generated. The second JSON file data is exported through a data export interface. This method can adjust the video frame rate of the animation video with a simple and convenient operation mode, can meet the different needs of users for the display effect of the animation video, and improve the user experience.
[0065] One embodiment of the present disclosure further provides another method for producing ribbon animation, which is implemented on the basis of the above-mentioned embodiment method; the method focuses on describing the specific process of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface, which specifically corresponds to the following steps S708 to S712; in the method, in the animation video containing the ribbon animation data corresponding to the target skeleton, each frame of the video is synthesized by superimposing multiple sub-images in the depth direction; wherein each sub-image includes the overall information or local information of the virtual object; in actual implementation, in order to facilitate animation production or modification, usually in the animation video, each frame of the video can be It is obtained by superimposing multiple sub-images. Each sub-image may include the overall information of the virtual object or only the local information of the virtual object. For example, taking the virtual object in the video frame as a human character, the multiple sub-images corresponding to the video frame may be: a head sub-image corresponding to the head of the human character, an upper body sub-image corresponding to the upper body, a lower body sub-image corresponding to the lower body, etc. Usually, the position and size of the body parts in each sub-image in the sub-image correspond to the position and size of the body parts when the human character is a complete image in the image. Each of the multiple sub-images is superimposed in the depth direction to obtain the above-mentioned video frame; Figure 7 As shown, the method includes the following steps:
[0066] Step S702: importing the first JSON file data of the virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes the first skeleton information corresponding to the two-dimensional form of the virtual object.
[0067] Step S704: Display the skeleton of the virtual object in a three-dimensional animation production tool according to the first skeleton information.
[0068] Step S706 , in response to the selection operation of the target bone of the virtual object in the three-dimensional animation production tool and the ribbon animation production operation, generating ribbon animation data corresponding to the target bone.
[0069] Step S708 , in response to the image adjustment instruction for the animation video of the virtual object, adjusting the distance difference in the depth direction between two adjacent sub-images in the plurality of sub-images constituting each frame of the animation video.
[0070] In actual implementation, since each frame of video is obtained by superimposing and combining multiple sub-images, in order to facilitate the selection and processing of each sub-image separately, the multiple sub-images are usually at different image levels. Specifically, for each frame of video, the user can input the desired image height value to generate the above-mentioned image adjustment instruction. The electronic device responds to the image adjustment instruction and can adjust the distance difference between two adjacent sub-images in the depth direction in each sub-image of the frame of video. Different image height values correspond to different height differences. Generally, the larger the set image height value, the greater the distance difference between two adjacent sub-images in the depth direction. Conversely, the smaller the set image height value, the smaller the distance difference between two adjacent sub-images in the depth direction. The user can set the corresponding image height value according to actual needs, which is more convenient for subsequent animation production.
[0071] Step S710: Generate a second JSON file containing ribbon animation data corresponding to the target skeleton based on the adjusted distance difference.
[0072] After determining the adjusted distance difference, the ribbon animation data corresponding to the target bone can be extracted from the animation video based on the distance difference through the Spring Max plug-in and recorded in JSON format to obtain the second JSON file data.
[0073] Step S712: Export the second JSON file data through the data export interface.
[0074] The above-mentioned ribbon animation production method responds to the image adjustment instruction of the animation video for the virtual object, and adjusts the distance difference in the depth direction between two adjacent sub-images in the multiple sub-images that make up each frame of the animation video. Based on the adjusted distance difference, a second JSON file data containing the ribbon animation data corresponding to the target skeleton is generated. The second JSON file data is exported through the data export interface. This method can adjust the display level of each sub-image by adjusting the distance difference in the depth direction between two adjacent sub-images in the multiple sub-images of each frame of the video, making it easier for users to select the required sub-image and more convenient for animation production, thereby improving the user experience.
[0075] One embodiment of the present disclosure further provides another method for producing a ribbon animation, which is implemented on the basis of the method of the above embodiment; the method focuses on the specific process of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface, which specifically corresponds to the following steps S808 to S814; Figure 8 As shown, the method includes the following steps:
[0076] Step S802: importing the first JSON file data of the virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes the first skeleton information corresponding to the two-dimensional form of the virtual object.
[0077] Step S804: Displaying the skeleton of the virtual object in a three-dimensional animation production tool according to the first skeleton information.
[0078] Step S806 , in response to the selection operation of the target bone of the virtual object in the three-dimensional animation production tool and the ribbon animation production operation, generating ribbon animation data corresponding to the target bone.
[0079] Step S808: Save the ribbon animation data corresponding to the target skeleton.
[0080] In actual implementation, in the process of generating the ribbon animation data corresponding to the above-mentioned target skeleton, the relevant ribbon animation data such as the animation solution value and the physical simulation environment can be recorded in real time and saved in the corresponding storage file of 3DMax, so as to achieve complete recording of the data, which is convenient for subsequent viewing, tracing, etc.
[0081] Step S810 , in response to a size adjustment instruction for the skeleton of the virtual object, adjust the size of the skeleton of the virtual object.
[0082] In actual implementation, the user can also adjust the size of the virtual object's bones. Specifically, the user can input the desired bone size and generate the above-mentioned size adjustment instruction. The electronic device can respond to the size adjustment instruction to adjust the virtual object's bone size. The size of all bones of the virtual object can be adjusted uniformly, or a certain bone can be selected to adjust the size of the selected bone, etc. Generally, the larger the set bone size, the larger the size of the displayed virtual object's bones. The user can set the corresponding bone size according to actual needs, which is more convenient for subsequent animation production.
[0083] Step S812: Based on the adjusted bone size, generate a second JSON file containing ribbon animation data corresponding to the target bone.
[0084] After determining the adjusted bone size, the ribbon animation data corresponding to the target bone can be extracted from the animation video based on the bone size through the Spring Max plug-in and recorded in JSON format to obtain the second JSON file data.
[0085] Step S814: Export the second JSON file data through the data export interface.
[0086] The above-mentioned ribbon animation production method, after generating the ribbon animation data corresponding to the target skeleton, saves the ribbon animation data corresponding to the target skeleton. In response to the size adjustment instruction for the skeleton of the virtual object, the skeleton size of the virtual object is adjusted. Based on the adjusted skeleton size, second JSON file data containing the ribbon animation data corresponding to the target skeleton is generated. The second JSON file data is exported through a data export interface. This method can adjust the skeleton size of the virtual object through the size adjustment instruction, making it easier for users to produce animations and improving the user experience.
[0087] One embodiment of the present disclosure provides a streamer animation production device, which provides a three-dimensional animation production tool through an electronic device. The three-dimensional animation production tool is configured with a data import interface and a data export interface for connecting to a two-dimensional animation production tool, such as Figure 9As shown, the device includes: an import module 90, which is used to import the first JSON file data of the virtual object generated by the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface; wherein the first JSON file data includes the first bone information of the virtual object in a two-dimensional form; a display module 91, which is used to display the skeleton of the virtual object in the three-dimensional animation production tool according to the first bone information; a generation module 92, which is used to generate ribbon animation data corresponding to the target bone in response to the selection operation and ribbon animation production operation of the target bone of the virtual object in the three-dimensional animation production tool; an export module 93, which is used to export the second JSON file data containing the ribbon animation data corresponding to the target bone through the data export interface; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner such that the target bone has a ribbon animation effect.
[0088] The above-mentioned ribbon animation production device first imports first JSON file data of a virtual object generated by a two-dimensional animation production tool into a three-dimensional animation production tool through a data import interface; wherein the first JSON file data includes first skeleton information corresponding to the virtual object in a two-dimensional form. Then, the skeleton of the virtual object is displayed in the three-dimensional animation production tool based on the first skeleton information. In response to a selection operation and a ribbon animation production operation for a target skeleton of the virtual object in the three-dimensional animation production tool, ribbon animation data corresponding to the target skeleton is generated. Finally, through a data export interface, second JSON file data including the ribbon animation data corresponding to the target skeleton is exported; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner such that the target skeleton has a ribbon animation effect. The device imports the JSON file data of the virtual object generated in the two-dimensional animation production tool into the three-dimensional animation production tool through the data import interface and the data export interface to produce the ribbon animation. After the production is completed, new JSON file data is generated and exported to the two-dimensional animation production tool to display the ribbon animation. Since the ribbon animation does not need to be manually produced in the two-dimensional animation production tool, the efficiency of ribbon animation production is improved.
[0089] In an optional embodiment, the export module 93 is also used to: respond to a storage range setting instruction for the animation video of the virtual object, determine the video frame to be stored from the animation video containing the ribbon animation data corresponding to the target bone; determine the second JSON file data based on the ribbon animation data corresponding to the target bone contained in the video frame to be stored; and export the second JSON file data through the data export interface.
[0090] In an optional embodiment, the export module 93 is also used to: adjust the video frame rate of the animation video containing the ribbon animation data corresponding to the target bone in response to a frame rate adjustment instruction for the animation video of the virtual object; generate a second JSON file data containing the ribbon animation data corresponding to the target bone based on the adjusted video frame rate; and export the second JSON file data through the data export interface.
[0091] In an optional embodiment, in an animation video containing ribbon animation data corresponding to a target skeleton, each video frame is synthesized by superimposing multiple sub-images in the depth direction; wherein each sub-image includes overall information or local information of a virtual object; the export module 93 is also used to: respond to an image adjustment instruction of the animation video for the virtual object, and adjust the distance difference in the depth direction between two adjacent sub-images in the multiple sub-images constituting each video frame of the animation video; based on the adjusted distance difference, generate a second JSON file data containing the ribbon animation data corresponding to the target skeleton; and export the second JSON file data through the data export interface.
[0092] In an optional embodiment, the export module 93 is also used to: respond to a size adjustment instruction for the virtual object's bones, adjust the size of the virtual object's bones; based on the adjusted bone size, generate a second JSON file data containing ribbon animation data corresponding to the target bones; and export the second JSON file data through a data export interface.
[0093] In an optional embodiment, the device is further used to: save the ribbon animation data corresponding to the target skeleton.
[0094] In an optional implementation, the two-dimensional animation production tool is the Spine tool, and the three-dimensional animation production tool is the 3DMax tool.
[0095] The implementation principle and technical effects of the ribbon animation production device provided in the embodiment of the present disclosure are the same as those of the aforementioned ribbon animation production method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the ribbon animation production device, reference may be made to the corresponding contents in the aforementioned ribbon animation production method embodiment.
[0096] The present disclosure also provides an electronic device. Figure 10 As shown, the electronic device includes a processor 130 and a memory 131 , wherein the memory 131 stores machine executable instructions that can be executed by the processor 130 , and the processor 130 executes the machine executable instructions to implement the above-mentioned ribbon animation production method.
[0097] Furthermore, Figure 10The electronic device shown further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .
[0098] The memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 133 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 132 may be an ISA bus, a PCI bus, or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0099] The processor 130 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 130. The above-mentioned processor 130 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 131, and processor 130 reads information in memory 131 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.
[0100] The embodiment of the present disclosure also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions prompt the processor to implement the above-mentioned ribbon animation production method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0101] The computer program product of the ribbon animation production method, device and electronic device provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0102] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for producing a streamer animation, characterized in that: A three-dimensional animation production tool is provided by an electronic device, wherein the three-dimensional animation production tool is configured with a data import interface and a data export interface for connecting to a two-dimensional animation production tool, and the method includes: The first JSON file data of the virtual object generated by the two-dimensional animation production tool is converted into data required by the three-dimensional animation production tool through the data import interface and imported into the three-dimensional animation production tool; wherein the first JSON file data includes first skeleton information corresponding to the two-dimensional form of the virtual object; Displaying the skeleton of the virtual object in the three-dimensional animation production tool according to the first skeleton information; wherein the virtual object and the skeleton of the virtual object displayed in the three-dimensional animation production tool are in a two-dimensional form; In response to a selection operation and a ribbon animation production operation on a target bone of the virtual object in the three-dimensional animation production tool, generating ribbon animation data corresponding to the target bone; Through the data export interface, second JSON file data containing the ribbon animation data corresponding to the target bone is exported in the JSON format required by the two-dimensional animation production tool; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner such that the target bone has a ribbon animation effect.
2. The method according to claim 1, characterized in that The step of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface includes: In response to a storage range setting instruction for the animation video of the virtual object, determining a video frame to be stored from the animation video containing the ribbon animation data corresponding to the target skeleton; Determine second JSON file data based on the ribbon animation data corresponding to the target skeleton contained in the video frame to be stored; Export the second JSON file data through the data export interface.
3. The method according to claim 1, characterized in that The step of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface includes: In response to a frame rate adjustment instruction for the animation video of the virtual object, adjusting the video frame rate of the animation video containing the ribbon animation data corresponding to the target skeleton; Based on the adjusted video frame rate, generating second JSON file data containing ribbon animation data corresponding to the target skeleton; Export the second JSON file data through the data export interface.
4. The method according to claim 1, wherein In the animation video containing the ribbon animation data corresponding to the target skeleton, each video frame is synthesized by superimposing multiple sub-images in the depth direction; wherein each sub-image includes the overall information or local information of the virtual object; The step of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface includes: In response to an image adjustment instruction for the animation video of the virtual object, adjusting a distance difference in a depth direction between two adjacent sub-images in a plurality of sub-images constituting each video frame of the animation video; Based on the adjusted distance difference, generating second JSON file data containing ribbon animation data corresponding to the target bone; Export the second JSON file data through the data export interface.
5. The method according to claim 1, wherein The step of exporting the second JSON file data containing the ribbon animation data corresponding to the target skeleton through the data export interface includes: In response to a size adjustment instruction for the skeleton of the virtual object, adjusting the size of the skeleton of the virtual object; Based on the adjusted bone size, generating a second JSON file data containing the ribbon animation data corresponding to the target bone; Export the second JSON file data through the data export interface.
6. The method according to claim 1, characterized in that After the step of generating the ribbon animation data corresponding to the target skeleton, the method further includes: Save the ribbon animation data corresponding to the target skeleton.
7. The method according to any one of claims 1 to 6, characterized in that The two-dimensional animation production tool is the Spine tool, and the three-dimensional animation production tool is the 3DMax tool.
8. A streamer animation production device, characterized in that: A three-dimensional animation production tool is provided by an electronic device, wherein the three-dimensional animation production tool is configured with a data import interface and a data export interface for connecting to a two-dimensional animation production tool, and the device includes: An import module is configured to convert the first JSON file data of the virtual object generated by the two-dimensional animation production tool into data required by the three-dimensional animation production tool through the data import interface, wherein the first JSON file data includes first skeleton information corresponding to the two-dimensional form of the virtual object; A display module, configured to display the skeleton of the virtual object in the three-dimensional animation production tool according to the first skeleton information; wherein the virtual object and the skeleton of the virtual object displayed in the three-dimensional animation production tool are in a two-dimensional form; A generating module, configured to generate ribbon animation data corresponding to a target bone in response to a selection operation and a ribbon animation production operation on a target bone of the virtual object in the three-dimensional animation production tool; An export module is used to export second JSON file data containing ribbon animation data corresponding to the target skeleton in accordance with the JSON format required by the two-dimensional animation production tool through the data export interface; the second JSON file data is used to display the virtual object in the two-dimensional animation production tool in a manner such that the target skeleton has a ribbon animation effect.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the ribbon animation production method according to any one of claims 1 to 7.
10. A machine-readable storage medium, characterized in that The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions prompt the processor to implement the ribbon animation production method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Three-dimensional perspective transforming method of two-dimensional graphics
CN103077546A