CN111475418A - Debugging method and debugging device for playing content - Google Patents

Debugging method and debugging device for playing content Download PDF

Info

Publication number
CN111475418A
CN111475418A CN202010312918.5A CN202010312918A CN111475418A CN 111475418 A CN111475418 A CN 111475418A CN 202010312918 A CN202010312918 A CN 202010312918A CN 111475418 A CN111475418 A CN 111475418A
Authority
CN
China
Prior art keywords
key frame
data
tree
weight
debugging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010312918.5A
Other languages
Chinese (zh)
Other versions
CN111475418B (en
Inventor
刘轻舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010312918.5A priority Critical patent/CN111475418B/en
Publication of CN111475418A publication Critical patent/CN111475418A/en
Application granted granted Critical
Publication of CN111475418B publication Critical patent/CN111475418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a debugging method and a debugging device for playing content. Wherein, the method comprises the following steps: acquiring structure description data and key frame data, wherein the structure description data is at least used for describing a structure relationship among the key frame data and a data format of a data filling position in the structure relationship; generating a key frame tree according to the structure description data and the key frame data, wherein the key frame tree is used for representing the playing sequence of the key frame data; generating a weight tree which is isomorphic with the key frame tree, wherein the weight tree is used for representing animation data and states when the key frame data are displayed; and debugging the playing content based on the key frame tree and the weight tree. The method and the device solve the technical problem that the debugging efficiency of the played content is low due to the fact that data in the art rendering process cannot be organized effectively in the prior art.

Description

Debugging method and debugging device for playing content
Technical Field
The invention relates to the field of computers, in particular to a debugging method and a debugging device for playing contents.
Background
At present, in the field of computers, the development process of games involves the effect debugging of the playing content of the games, and ideally, the result of the playing content debugging is what you see is what you get.
However, in practical applications, editing tools for debugging the playing content are complex, for example, in the process of debugging the playing content, data needs to be organized and previewed, the process needs to be compared and checked in various links such as modeling, scene editing, game content editing and the like, and a unified tool cannot be used for simultaneously realizing the work of checking art resources, debugging effects and organizing effect logics.
In addition, the expression form of the playing effect corresponding to the existing playing content in the game is mostly obtained based on the linear expression of the parameters, for example:
Loading a role, playing a section of model animation, then playing a lens animation, and then playing a special effect animation; alternatively, the first and second electrodes may be,
Loading a scene, and then playing a script animation; alternatively, the first and second electrodes may be,
A game stage is loaded, and special effect effects corresponding to the stage (for example, post-processing, setting of optical parameters and local highlight map, etc.) are set.
Therefore, in the prior art, the playing effect corresponding to the playing content is substantially linear superposition between isomorphic data, if one link needs to be modified, subsequent links may need to be modified at the same time, and the debugging complexity of the playing content is undoubtedly increased.
In addition, most of workers who debug the playing content of the game are art workers who lack a software programming basis, in the prior art, workers may need debugging codes in the process of debugging the playing content, and for art workers who lack a software programming basis, the debugging codes reduce the debugging efficiency of the playing content.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a debugging method and a debugging device for playing contents, which at least solve the technical problem that the debugging efficiency of the playing contents is low because data in the art rendering process cannot be organized effectively in the prior art.
According to an embodiment of the present invention, a method for debugging playing content is provided, including: acquiring structure description data and key frame data, wherein the structure description data is at least used for describing a structure relationship among the key frame data and a data format of a data filling position in the structure relationship; generating a key frame tree according to the structure description data and the key frame data, wherein the key frame tree is used for representing the playing sequence of the key frame data; generating a weight tree which is isomorphic with the key frame tree, wherein the weight tree is used for representing animation data and states when the key frame data are displayed; and debugging the playing content based on the key frame tree and the weight tree.
Optionally, the debugging method for playing the content further includes: acquiring demand information for displaying the playing content before acquiring the structure description data and the key frame data; detecting whether the demand information meets a preset condition; and calling a first editor corresponding to the demand information under the condition that the demand information meets the preset condition.
Optionally, the preset condition includes at least one of: the key frames of the playing content are independent; the key frames in the same set belong to the same frame class, and the key frames in the same set can be subjected to interpolation calculation; determining the playing effect at a preset moment according to the playing sequence of the key frames in the same set; the value of the static frame of the playing content is linearly interpolated by each subframe instance in the static frame set, wherein the key frame at least comprises: static frames and sequence frames.
Optionally, the debugging method for playing the content further includes: acquiring structure description data based on a first editor; generating a second editor based on the structure description data; key frame data is obtained based on the second editor.
Optionally, the debugging method for playing the content further includes: processing the structure description data based on a first editor to obtain first structure information of the key frame tree; generating node data of each node in the key frame tree according to the key frame data; and generating a key frame tree according to the first structure information and the node data.
Optionally, the debugging method for playing the content further includes: determining second structure information of the weight tree according to the first structure information of the key frame tree; determining a linear interpolation mode; performing linear interpolation on the key frame data based on a linear interpolation mode to obtain a corresponding weight value; and generating a weight tree according to the second structure information and the weight value.
Optionally, the linear interpolation mode includes at least one of the following modes: acquiring an index of a preset key frame, and determining a weight value corresponding to the preset key frame according to the index; determining an upstream key frame and a downstream key frame which are closest to a preset moment, and respectively determining weight values corresponding to the upstream key frame and the downstream key frame; and acquiring a preset weight value of each key frame, and obtaining the weight value according to the preset weight value, wherein the sum of the preset weight values is 1.
According to an embodiment of the present invention, there is also provided a debugging apparatus for playing content, including: the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring structure description data and key frame data, and the structure description data is at least used for describing the structure relationship among the key frame data and the data format of a data filling position in the structure relationship; the first generation module is used for generating a key frame tree according to the structure description data and the key frame data, wherein the key frame tree is used for representing the playing sequence of the key frame data; the second generation module is used for generating a weight tree which is isomorphic with the key frame tree, wherein the weight tree is used for representing animation data and states when the key frame data are displayed; and the debugging module is used for debugging the playing content based on the key frame tree and the weight tree.
According to one embodiment of the present invention, there is further provided a storage medium including a stored program, where the program controls a device in which the storage medium is located to execute the above debugging method for playing content when the program runs.
According to an embodiment of the present invention, there is further provided a processor, configured to execute the program, where the program executes the method for debugging the played content.
In the embodiment of the invention, a data structure based on a key frame tree and a weight tree is adopted to debug the playing content, after structure description data and key frame data are obtained, the key frame tree is generated according to the structure description data and the key frame data, a weight tree which is isomorphic with the key frame tree is generated at the same time, and finally the playing content is debugged based on the key frame tree and the weight tree.
In the process, the playing content is debugged based on the key frame tree and the weight tree isomorphic with the key frame tree, and the data in the art rendering process is effectively organized. In the process of debugging the playing content, only the data corresponding to the nodes in the key frame tree and the weight tree need to be modified, and background codes do not need to be modified by art workers, so that the debugging efficiency of the playing content is improved, and the complexity of debugging the playing content by the art workers is reduced. In addition, the generation of the key frame tree and the weight tree is related to the requirement information of the user for displaying the playing content, so that the generation of the key frame tree and the weight tree can better meet the specific requirement in a specific environment.
Therefore, the scheme provided by the application achieves the purpose of debugging the playing content, the technical effect of improving the debugging efficiency of the playing content is achieved, and the technical problem that the debugging efficiency of the playing content is low due to the fact that data in the art rendering process cannot be effectively organized in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a debugging method for playing contents according to an embodiment of the present invention;
FIG. 2 is an interface schematic of an alternative debugging system according to one embodiment of the present invention;
FIG. 3 is a diagram illustrating an alternative editing tree structure according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an alternative key frame tree structure according to one embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative weight tree according to one embodiment of the present invention; and
Fig. 6 is a schematic diagram of a debugging apparatus for playing back content according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a debugging method for playing back content, it should be noted that the steps illustrated in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be executed in an order different from that shown.
In addition, it should be further noted that, a debugging system for playing content may be used as the execution subject of this embodiment, where the debugging system may have an input unit and a processing unit, where the input unit may be, but is not limited to, an input device such as a mouse, a keyboard, a touch screen, a voice input device, and an image input device, and the processing unit is configured to process data input by the input unit by using the debugging method for playing content provided in this embodiment.
Fig. 1 is a flowchart of a debugging method for playing content according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
Step S102, obtaining the structure description data and the key frame data.
In step S102, the structure description data is used at least to describe the structural relationship between the key frame data and the data format of the data filling position in the structural relationship. Alternatively, the structure description data may be page description (PageDefine) data.
Optionally, fig. 2 shows an interface schematic diagram of an optional debugging system, and a user may input structure description data and key frame data in the interface shown in fig. 2, for example, in fig. 2, the structure description data includes page attribute configuration parameters and appearance layout parameters of the debugging system, such as background color, fog color, start distance, end distance, fog concentration, upper fog concentration limit, lower fog concentration limit, and the like. And the Key frame data may include specific data of an attribute segment defined by an artist according to the structure description data, for example, the starting distance is 300 in fig. 2, and the organization form thereof may be Key-PageValue, where Key is an index of the Key frame. In addition, fig. 2 also shows key frame files corresponding to key frame data, such as ada, ada _ new _ new, new _ config1564982338_ new, test1, and the like files in fig. 2.
And step S104, generating a key frame tree according to the structure description data and the key frame data, wherein the key frame tree is used for representing the playing sequence of the key frame data.
In an alternative embodiment, fig. 3 shows a schematic structural diagram of an alternative editing tree, where the editing tree includes a key frame tree and a weight tree, and taking the function y as a1x1+ a2x2+ … + anxn as an example, the key frame tree represents the base of the function (e.g., x1, x2, xn in the function), and the weight tree represents the coefficients of the function (e.g., a1, a2, an in the function). In addition, as can be seen from fig. 3, the key frame tree and the weight tree have the same components, that is, the key frame tree and the weight tree each include a plurality of nodes, and each node may include a node instance set and node description information, where the node instance set includes a value corresponding to the edit tree, and the node description information characterizes a type corresponding to the node, and the type corresponding to the node may include a page and a weight.
Optionally, fig. 4 shows a structural diagram of an optional key frame tree, as can be seen from fig. 4, the key frame tree includes a node instance set and node description information, where the node description information of the key frame tree is a Page (e.g., Page in fig. 4), the node instance set (e.g., node instance set in fig. 4) at least includes key frame data (e.g., node instance in fig. 4), and a child node corresponding to the key frame data includes the node instance set and the node description information (e.g., Page in fig. 4).
And S106, generating a weight tree which is isomorphic with the key frame tree, wherein the weight tree is used for representing animation data and states when the key frame data are displayed.
In step S106, the weight tree has the same structure as the key frame tree. Optionally, fig. 5 shows a structural diagram of an optional Weight tree that is identical to the key frame tree shown in fig. 4, and as can be seen from fig. 5, the Weight tree includes a node instance set and node description information, where the node description information of the Weight tree is a Weight (e.g., Weight in fig. 5). As can be seen from fig. 4 and 5, the key frame tree shown in fig. 4 has the same number of nodes and the same hierarchy as the weight tree shown in fig. 5.
And step S108, debugging the playing content based on the key frame tree and the weight tree.
After the key frame tree and the weight tree are obtained, a user can modify data corresponding to nodes in the key frame tree and the weight tree through a debugging system, so that the debugging of the playing content is realized. In the process of debugging the key frame tree and the weight tree, a user does not need to modify codes, so that the debugging efficiency of the fine arts personnel for debugging the playing content is improved.
Based on the schemes defined in steps S102 to S108, it can be known that, by adopting a manner of debugging the playing content based on the data structure of the key frame tree and the weight tree, after the structure description data and the key frame data are obtained, the key frame tree is generated according to the structure description data and the key frame data, the weight tree having the same structure as the key frame tree is generated at the same time, and finally, the playing content is debugged based on the key frame tree and the weight tree.
It is easy to notice that, the present application debugs the playing content based on the key frame tree and the weight tree isomorphic with the key frame tree, and effectively organizes the data in the art rendering process. In the process of debugging the playing content, only the data corresponding to the nodes in the key frame tree and the weight tree need to be modified, and background codes do not need to be modified by art workers, so that the debugging efficiency of the playing content is improved, and the complexity of debugging the playing content by the art workers is reduced. In addition, the generation of the key frame tree and the weight tree is related to the requirement information of the user for displaying the playing content, so that the generation of the key frame tree and the weight tree can better meet the specific requirement in a specific environment.
Therefore, the scheme provided by the application achieves the purpose of debugging the playing content, the technical effect of improving the debugging efficiency of the playing content is achieved, and the technical problem that the debugging efficiency of the playing content is low due to the fact that data in the art rendering process cannot be effectively organized in the prior art is solved.
In an alternative embodiment, the debugging system needs to call a first editor before obtaining the structure description data and the key frame data, wherein the first editor is a meta editor (e.g. MetaEditor), and a user can input the structure description data into the debugging system through the first editor.
Specifically, the debugging system firstly acquires demand information for displaying the playing content, and then detects whether the demand information meets a preset condition, wherein under the condition that the demand information meets the preset condition, a first editor corresponding to the demand information is called.
It should be noted that different first editors are called by different requirement information, so that the user has more pertinence in the process of debugging the played content, and the specific requirements of the user can be met.
In addition, the preset condition may include at least one of: the key frames of the playing content are independent; the key frames in the same set belong to the same frame class, and the key frames in the same set can be subjected to interpolation calculation; determining the playing effect at a preset moment according to the playing sequence of the key frames in the same set; the value of the static frame of the playing content is linearly interpolated by each subframe instance in the static frame set, wherein the key frame at least comprises: static frames and sequence frames.
Optionally, under the condition that the preset condition is that the key frames of the playing content are independent from each other, each key frame is in an independent state, and is not influenced by the previous key frame, and the next key frame is not influenced. In addition, the data at a certain moment of the key frame can be calculated by linear interpolation.
Optionally, under the preset condition that the key frames in the same set belong to the same frame class and the key frames in the same set can be subjected to interpolation computation, that is, under the condition that the requirement information satisfies the isomorphism of the key frames, all the key frames in the same set are instances generated after different data is input to the same frame class, wherein the key frames in any same set can be subjected to interpolation computation.
Optionally, under the preset condition that the playing effect at the preset time is determined according to the playing sequence of the key frames in the same set, that is, under the condition that the requirement information satisfies time linearity, the return values of the key frames are not considered, and each key frame is independent of each other. After the data corresponding to each key frame is played, because the key frame has no return value, the next key frame corresponding to the key frame cannot be determined, and usually, the direction of the next key frame is determined by a specified fixed frame. In addition, the final playing content can be obtained by arranging the key frames which are not related to the time, the key frames are in the same sequence set, and the effect data of the T moment can be calculated by utilizing linear interpolation for any time T.
Optionally, under the preset condition that the value of the static frame of the playing content is linearly interpolated by each subframe instance in the static frame set, that is, under the condition that the requirement information satisfies spatial linearity, for the static frame, the static frame may include data and a sub-static frame set S, where the key frame at least includes: static frames and sequence frames, the value of the current static frame is the linear interpolation of each sub-frame instance in the sub-static frame set S. Since the static frame only represents one time and the sequence frame represents a period of time, the sub-static frame set S is not a sequence frame.
Further, when the requirement information meets the preset condition, the debugging system calls a first editor corresponding to the requirement information, then obtains the structure description data based on the first editor, generates a second editor based on the structure description data, and finally obtains the key frame data based on the second editor.
In the above process, the structure description data is the business function that can be supported in the description that is required by the art personnel, for example, the format of the key frame data, the relationship between the data, and the like, defined by the formatted data by the user (for example, the technician who manufactures the tool).
Optionally, after the debugging system calls the first editor, the user inputs the structure description data into the first editor through the debugging system. The first border device generates a second editor with a specific function after receiving the structure description data, and delivers the second editor to the art personnel for use. Upon receipt of the second editor, the artist may define the content of the key frames in the second editor, which will be organized in the form of a key frame tree.
Further, after the structure description data and the key frame data are obtained, the debugging system generates a key frame tree according to the structure description data and the key frame data. Specifically, the debugging system firstly processes the structure description data based on the first editor to obtain first structure information of the key frame tree, then generates node data of each node in the key frame tree according to the key frame data, and finally generates the key frame tree according to the first structure information and the node data.
In the above process, the first structure information of the key frame tree characterizes the structure of the key frame tree, where the first structure information may include, but is not limited to, the number of layers of the key frame tree, the number of nodes corresponding to each hierarchy, the connection relationship between nodes, and the like. In addition, after the user inputs the key frame data through the second editor, the second editor may put the key frame data input by the user into the nodes of the corresponding key frame tree, thereby obtaining the key frame tree.
In addition, after obtaining the key frame tree, the debugging system may generate a weight tree based on the key frame tree. Specifically, the debugging system firstly determines second structure information of the weight tree according to the first structure information of the key frame tree, determines a linear interpolation mode, then performs linear interpolation on key frame data based on the linear interpolation mode to obtain a corresponding weight value, and finally generates the weight tree according to the second structure information and the weight value.
In the present application, the key frame tree and the weight tree have the same structure, that is, the key frame tree and the weight tree have the same number of layers, the number of nodes corresponding to each hierarchy is also the same, and the corresponding nodes have the same connection relationship, so that the second structure information of the weight tree can be determined according to the first structure information of the key frame tree.
In addition, when the key frame tree runs, that is, when the playing content corresponding to the corresponding key frame tree is played, the debugging system may generate a weight tree to be input, where the weight tree may be generated in a linear interpolation manner, and the weight tree represents animation data and states at each time.
In addition, when the key frame tree runs, the debugging system generates an isomorphic weight tree based on the key frame tree, and further can obtain the output of a certain state. Wherein the nodes of the key frame tree can be used as bases, and the weight tree is the weight coefficient of each base (i.e. key frame).
It should be noted that, in the process of generating the weight tree based on the key frame tree, the debugging system may perform linear interpolation by using at least one of the following manners:
The first method is as follows: and acquiring an index of the preset key frame, and determining a weighted value corresponding to the preset key frame according to the index. In a first mode, when the user inputs the structure description information to the first editor, the user may input an index of the key frame, and the debugging system may directly select the data of the key frame n to return, and determine that the weight value W of each key frame is (0, … 1 … 0), where the position corresponding to "1" is n.
The second method comprises the following steps: determining an upstream key frame and a downstream key frame which are closest to a preset moment, and respectively determining the weight values corresponding to the upstream key frame and the downstream key frame. In the second method, the weight values satisfy the time linearity, that is, according to the input time t, two keyframes closest to the time t are determined to obtain an upstream keyframe and a downstream keyframe, and an interpolation result is returned, where W of each keyframe is (… W,1-W, …), W is a weight value corresponding to the upstream keyframe, and 1-W is a weight value corresponding to the downstream keyframe. The time t may be a time input by a user, and is usually a running time corresponding to the currently played content.
The third method comprises the following steps: acquiring a preset weight value for each key frame, and obtaining the weight value according to the preset weight value, wherein the sum of the preset weight values is 1. In the third method, the weight values satisfy spatial linearity, that is, when constructing the weight tree, the weight value of each layer in the weight tree is input by self, and a fixed linear calculation result is returned, where W is (W0, W1.. Wn), where W0+ W1+ … + Wn is 1.0.
In addition, it should be noted that the user can input the structure description information through the first editor and input the corresponding mode of the linear interpolation.
As can be seen from the above, in the present application, in combination with the production environment, the input of the weight tree may only be a tree structure obtained after undergoing selection (e.g., a certain fixed node identifier during input) - > time sliding (e.g., a time T during input) - >3 weight value determination manners, where each weight value determination manner returns the weight tree corresponding to the key frame set, and the weight trees are sequentially and deeply traversed until reaching the leaf node.
In addition, in the process of determining the weight tree, after receiving the structure description data through a frame instance relationship generation function, the present application generates a function relationship (data) corresponding to the generated real weight tree, and after receiving 3 standard operations of the user (namely, the selection, the time sliding and the determination of the weight value), the function returns to the final weight mapping of a certain key frame set, and finally forms the weight tree. In the running state environment, after inputting the same structure description data, the user only needs to input the weight value corresponding to the weight tree to restore the current live frame.
According to an embodiment of the present invention, there is further provided an embodiment of a debugging apparatus for playing back content, where fig. 6 is a schematic diagram of the debugging apparatus for playing back content according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: an acquisition module 1201, a first generation module 1203, a second generation module 1205, and a debugging module 1207.
The obtaining module 1201 is configured to obtain structure description data and key frame data, where the structure description data is at least used to describe a structure relationship between the key frame data and a data format of a data filling position in the structure relationship; a first generating module 1203, configured to generate a key frame tree according to the structure description data and the key frame data, where the key frame tree is used to represent a playing order of the key frame data; a second generating module 1205, configured to generate a weight tree that is isomorphic with the key frame tree, where the weight tree is used to represent animation data and a state when the key frame data is displayed; and a debugging module 1207, configured to debug the playing content based on the key frame tree and the weight tree.
It should be noted here that the acquiring module 1201, the first generating module 1203, the second generating module 1205 and the debugging module 1207 correspond to steps S102 to S108 of the above embodiment, and the four modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in the above embodiment.
In an optional embodiment, the debugging apparatus for playing the content further includes: the device comprises a first acquisition module, a detection module and a calling module. The first acquisition module is used for acquiring the requirement information for displaying the playing content before acquiring the structure description data and the key frame data; the detection module is used for detecting whether the demand information meets a preset condition; and the calling module is used for calling the first editor corresponding to the demand information under the condition that the demand information meets the preset condition.
Optionally, the preset condition includes at least one of the following conditions: the key frames of the playing content are independent; the key frames in the same set belong to the same frame class, and the key frames in the same set can be subjected to interpolation calculation; determining the playing effect at a preset moment according to the playing sequence of the key frames in the same set; the value of the static frame of the playing content is linearly interpolated by each subframe instance in the static frame set, wherein the key frame at least comprises: static frames and sequence frames.
In an alternative embodiment, the obtaining module includes: the device comprises a second acquisition module, a third generation module and a third acquisition module. The second obtaining module is used for obtaining the structure description data based on the first editor; a third generating module for generating a second editor based on the structure description data; and the third acquisition module is used for acquiring the key frame data based on the second editor.
In an alternative embodiment, the first generating module comprises: the device comprises a processing module, a fourth generation module and a fifth generation module. The processing module is used for processing the structure description data based on the first editor to obtain first structure information of the key frame tree; the fourth generation module is used for generating node data of each node in the key frame tree according to the key frame data; and the fifth generating module is used for generating the key frame tree according to the first structure information and the node data.
In an alternative embodiment, the second generating module comprises: the device comprises a first determining module, a second determining module, an interpolation module and a sixth generating module. The first determining module is used for determining second structure information of the weight tree according to the first structure information of the key frame tree; the second determining module is used for determining a linear interpolation mode; the interpolation module is used for carrying out linear interpolation on the key frame data based on a linear interpolation mode to obtain a corresponding weight value; and the sixth generating module is used for generating the weight tree according to the second structure information and the weight value.
Optionally, the linear interpolation mode includes at least one of the following modes: acquiring an index of a preset key frame, and determining a weight value corresponding to the preset key frame according to the index; determining an upstream key frame and a downstream key frame which are closest to a preset moment, and respectively determining weight values corresponding to the upstream key frame and the downstream key frame; and acquiring a preset weight value of each key frame, and obtaining the weight value according to the preset weight value, wherein the sum of the preset weight values is 1.
According to another aspect of one embodiment of the present invention, there is also provided a storage medium including a stored program, where the program is executed to control a device on which the storage medium is located to execute the debugging method for playing back content of the foregoing embodiment.
According to another aspect of one embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes the debugging method for playing content of the foregoing embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A debugging method for playing contents is characterized by comprising the following steps:
Acquiring structure description data and key frame data, wherein the structure description data is at least used for describing a structural relationship among the key frame data and a data format of a data filling position in the structural relationship;
Generating a key frame tree according to the structure description data and the key frame data, wherein the key frame tree is used for representing the playing sequence of the key frame data;
Generating a weight tree which is isomorphic with the key frame tree, wherein the weight tree is used for representing animation data and states when the key frame data are displayed;
And debugging the playing content based on the key frame tree and the weight tree.
2. The method of claim 1, prior to obtaining the structure description data and the keyframe data, comprising:
Acquiring demand information for displaying the playing content;
Detecting whether the demand information meets a preset condition;
And calling a first editor corresponding to the demand information under the condition that the demand information meets the preset condition.
3. The method of claim 2, wherein the preset condition comprises at least one of:
The key frames of the playing content are mutually independent;
Key frames in the same set belong to the same frame class, and can be subjected to interpolation calculation;
Determining the playing effect at a preset moment according to the playing sequence of the key frames in the same set;
The value of the static frame of the playing content is linearly interpolated by each sub-frame instance in the static frame set, wherein the key frame at least comprises: the static frame and the sequence frame.
4. The method of claim 2, wherein obtaining structure description data and keyframe data comprises:
Acquiring the structure description data based on the first editor;
Generating a second editor based on the structure description data;
And acquiring the key frame data based on the second editor.
5. The method of claim 2, wherein generating a key frame tree from the structure description data and the key frame data comprises:
Processing the structure description data based on the first editor to obtain first structure information of the key frame tree;
Generating node data of each node in the key frame tree according to the key frame data;
And generating the key frame tree according to the first structure information and the node data.
6. The method of claim 5, wherein generating a weight tree that is isomorphic with the key frame tree comprises:
Determining second structure information of the weight tree according to the first structure information of the key frame tree;
Determining a linear interpolation mode;
Performing linear interpolation on the key frame data based on the linear interpolation mode to obtain a corresponding weight value;
And generating the weight tree according to the second structure information and the weight value.
7. The method of claim 6, wherein the linear interpolation mode comprises at least one of:
Acquiring an index of a preset key frame, and determining a weight value corresponding to the preset key frame according to the index;
Determining an upstream key frame and a downstream key frame which are closest to a preset moment, and respectively determining weight values corresponding to the upstream key frame and the downstream key frame;
Acquiring a preset weight value of each key frame, and obtaining the weight value according to the preset weight value, wherein the sum of the preset weight values is 1.
8. A debugging apparatus for playing back content, comprising:
The system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring structure description data and key frame data, and the structure description data is at least used for describing a structure relationship among the key frame data and a data format of a data filling position in the structure relationship;
The first generation module is used for generating a key frame tree according to the structure description data and the key frame data, wherein the key frame tree is used for representing the playing sequence of the key frame data;
The second generation module is used for generating a weight tree which is isomorphic with the key frame tree, wherein the weight tree is used for representing animation data and states when the key frame data are displayed;
And the debugging module is used for debugging the playing content based on the key frame tree and the weight tree.
9. A storage medium, comprising a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the debugging method for playing back content according to any one of claims 1 to 7.
10. A processor, configured to execute a program, wherein the program executes the debugging method for playing back content according to any one of claims 1 to 7.
CN202010312918.5A 2020-04-20 2020-04-20 Method and device for debugging play content Active CN111475418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010312918.5A CN111475418B (en) 2020-04-20 2020-04-20 Method and device for debugging play content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010312918.5A CN111475418B (en) 2020-04-20 2020-04-20 Method and device for debugging play content

Publications (2)

Publication Number Publication Date
CN111475418A true CN111475418A (en) 2020-07-31
CN111475418B CN111475418B (en) 2023-05-26

Family

ID=71755469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010312918.5A Active CN111475418B (en) 2020-04-20 2020-04-20 Method and device for debugging play content

Country Status (1)

Country Link
CN (1) CN111475418B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013207466A (en) * 2012-03-28 2013-10-07 Casio Comput Co Ltd Video playback apparatus and program
US20130271472A1 (en) * 2012-04-12 2013-10-17 Motorola Mobility, Inc. Display of Value Changes in Between Keyframes in an Animation Using a Timeline
CN106600665A (en) * 2016-12-01 2017-04-26 北京像素软件科技股份有限公司 Camera animation path generating method and device
CN108635851A (en) * 2018-05-16 2018-10-12 网易(杭州)网络有限公司 A kind for the treatment of method and apparatus of game picture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013207466A (en) * 2012-03-28 2013-10-07 Casio Comput Co Ltd Video playback apparatus and program
US20130271472A1 (en) * 2012-04-12 2013-10-17 Motorola Mobility, Inc. Display of Value Changes in Between Keyframes in an Animation Using a Timeline
CN106600665A (en) * 2016-12-01 2017-04-26 北京像素软件科技股份有限公司 Camera animation path generating method and device
CN108635851A (en) * 2018-05-16 2018-10-12 网易(杭州)网络有限公司 A kind for the treatment of method and apparatus of game picture

Also Published As

Publication number Publication date
CN111475418B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN105739983B (en) Shell script editing device and its implementation
CN106874066B (en) Virtual machine migration method and device and electronic equipment
KR100928192B1 (en) Offline optimization pipeline for 3D content on embedded devices
CN105511873B (en) User interface control display method and device
CN108984172B (en) Interface file generation method and device
US6466215B1 (en) Animation creating apparatus and method as well as medium having animation creating program recorded thereon
CN110008455A (en) Table edit method, apparatus, computer equipment and storage medium
US8522201B2 (en) Methods and apparatus for sub-asset modification
CN111199062A (en) Simulation method and system based on industrial development software and electronic equipment
CN112988123B (en) DDD-oriented software design method and system
US6483508B1 (en) Information processing apparatus and method, and providing medium
CN115421786A (en) Design component migration method and related equipment
CN116226112A (en) Data cleaning method and device, storage medium and electronic equipment
CN111475418B (en) Method and device for debugging play content
CN112052157A (en) Test message construction method, device and system
US20070085853A1 (en) Inheritance context for graphics primitives
CN116244482A (en) Circuit simulation display method and device
CN116206038A (en) Rendering method, rendering device, electronic equipment and storage medium
CN113450463B (en) Preform conversion method and apparatus
CN115934637A (en) Drawing file management method and device, storage medium and electronic equipment
CN111951355A (en) Animation processing method and device, computer equipment and storage medium
CN114385864A (en) Graph searching method, device, equipment and storage medium
Laramee Using visualization to debug visualization software
CN111949267A (en) UI front end generation method and device
Ma et al. Checking consistency in multimedia synchronization constraints

Legal Events

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