Animation scene construction method, device, equipment and medium
By splitting and pre-calculating the elements of the animation scene, generating assembly element files, and assembling them according to the lens data table, the problem of low efficiency in building complex animation scenes is solved, and the rapid construction and efficient display of animation scenes are achieved.
Patent Information
- Application Number
- CN202210137186.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-15
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2042-02-15
AI Technical Summary
The existing technology is difficult to efficiently build complex large-scale animation scenes, resulting in inefficient animation production.
By receiving scene element design table and scene elements, split according to preset element splitting rules, perform pre-calculation, generate assembly element files, and store them in the database, assemble according to the lens data table to quickly build animations Scene.
It improves the display efficiency and construction efficiency of complex animation scenes, realizes rapid adjustment of assembly element files, and enhances the construction efficiency of animation scenes.
Smart Images

Figure CN114663554B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of animation production technology, and in particular to an animation scene construction method, device, equipment and medium. Background Art
[0002] Animation is a common form of artistic expression. In traditional technology, animation files can be created frame by frame, and animation files can be played sequentially to achieve animation effects. Nowadays, people have higher and higher requirements for animation quality. With the development of technology, three-dimensional animation production methods have been used more and more. Three-dimensional scenes can be constructed based on three-dimensional scene elements, and cameras can be imported to capture the lens images of three-dimensional scenes to complete animation production. Three-dimensional animation production methods can greatly improve production efficiency. However, when faced with large and complex scenes, the scenes contain a large number of scene elements, resulting in low display efficiency of large and complex scenes during construction, which seriously affects the efficiency of animation production. Therefore, the existing technical methods have the problem of being unable to efficiently build complex large-scale animation scenes. Summary of the invention
[0003] The embodiments of the present invention provide an animation scene construction method, device, equipment and medium, aiming to solve the problem that the existing technical methods cannot efficiently construct complex large-scale animation scenes.
[0004] In a first aspect, an embodiment of the present invention provides a method for building an animation scene, the method comprising:
[0005] If the input scene element design table and scene elements are received, the scene elements are split according to the scene element design table and the preset element splitting rules to obtain corresponding element splitting information;
[0006] Precalculating the scene elements according to the element splitting information and preset precalculation parameters to obtain corresponding precalculation results;
[0007] Performing element assembly on the pre-calculation results and the corresponding element splitting information to obtain scene assembly elements corresponding to each element splitting information;
[0008] Arrange and combine the scene assembly elements according to the scene element design table to obtain a corresponding assembly element file set and store it in a preset database;
[0009] According to the scene lens data table in the database, the corresponding assembly element file is obtained from the database for assembly, so as to construct an animation scene corresponding to each scene lens in the scene lens data table.
[0010] In a second aspect, an embodiment of the present invention provides an animation scene construction device, which includes:
[0011] A scene element splitting unit, configured to split the scene element according to the scene element design table and preset element splitting rules to obtain corresponding element splitting information if the scene element design table and the scene element are received as input;
[0012] A pre-calculation result acquisition unit, used to pre-calculate the scene element according to the element splitting information and preset pre-calculation parameters to obtain a corresponding pre-calculation result;
[0013] An element assembly unit, used for performing element assembly on the pre-calculation result and the corresponding element splitting information to obtain a scene assembly element corresponding to each element splitting information;
[0014] An assembly element file storage unit, used for arranging and combining the scene assembly elements according to the scene element design table, obtaining a corresponding assembly element file set and storing it in a preset database;
[0015] The animation scene building unit is used to obtain the corresponding assembly element file from the database according to the scene lens data table in the database for assembly, so as to build an animation scene corresponding to each scene lens in the scene lens data table.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the animation scene building method described in the first aspect when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the animation scene building method described in the first aspect above.
[0018] The embodiment of the present invention provides a method, device, equipment and medium for building an animation scene. According to a scene element design table and an element splitting rule, the scene elements are split to obtain corresponding element splitting information, pre-calculation is performed according to the element splitting information and pre-calculation parameters to obtain pre-calculation results, the pre-calculation results and the corresponding element splitting information are assembled to obtain corresponding scene assembly elements, the scene assembly elements are arranged and combined according to the scene element design table to obtain an assembly element file set and stored in a database, and the corresponding assembly element file is obtained according to the scene lens data table in the database for assembly to build an animation scene corresponding to each scene lens. Through the above method, the scene elements can be pre-calculated to obtain pre-calculation results. When building an animation scene of a scene lens, the assembly element file can be quickly adjusted according to the pre-calculation results, which can greatly improve the display efficiency of complex animation scenes, thereby improving the building efficiency of animation scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of a flow chart of a method for constructing an animation scene provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a sub-process of the animation scene construction method provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of another sub-process of the animation scene construction method provided by an embodiment of the present invention;
[0023] Figure 4 Another schematic diagram of the process of building an animation scene according to an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of another sub-process of the animation scene construction method provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of another sub-process of the animation scene construction method provided by an embodiment of the present invention;
[0026] Figure 7 A schematic diagram of the latter sub-process of the animation scene construction method provided by an embodiment of the present invention;
[0027] Figure 8 A schematic block diagram of an animation scene construction device provided by an embodiment of the present invention;
[0028] Fig. 9 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0031] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0032] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0033] See also Figure 1 , Figure 1 A flow chart of an animation scene construction method provided in an embodiment of the present invention; the animation scene construction method is applied to a user terminal or a management server, and the animation scene construction method is executed by application software installed in the user terminal or the management server; the user terminal can be used to execute the animation scene construction method to obtain a corresponding animation scene according to a scene element design table and scene elements input by a user, and the user terminal can be a terminal device such as a desktop computer, a laptop computer, a tablet computer or a mobile phone, and the management server is a server end for executing the animation scene construction method to obtain a scene element design table and scene elements uploaded by the user terminal and to construct a corresponding animation scene, such as a server end constructed within an enterprise. Figure 1 As shown, the method includes steps S110 to S150.
[0034] S110: If the input scene element design table and scene elements are received, split the scene elements according to the scene element design table and preset element splitting rules to obtain corresponding element splitting information.
[0035] If the input scene element design table and scene elements are received, the scene elements are split according to the scene element design table and the preset element splitting rules to obtain corresponding element splitting information. The user can input the scene element design table and scene elements. The scene element design table contains detailed information of each scene element, such as asset name, production focus, file type, etc. The scene element is a three-dimensional element obtained by the animation creator through three-dimensional modeling. The scene element is composed of multiple renderings and program files. In order to overcome the problem of low display efficiency of a large number of scene elements in the scene, the overall file corresponding to a scene element can be split first to obtain a set of element splitting information. Specifically, the scene element can be split according to the scene element design table and the element splitting rules. First, the file type corresponding to the scene element is determined according to the scene element design table, and the corresponding file branch mapping information in the element splitting rule is obtained according to the file type to split the corresponding scene element, thereby obtaining element splitting information. The element splitting information can be reflected as a tree structure diagram.
[0036] In one embodiment, if Figure 2 As shown, step S110 includes sub-steps S111, S112 and S113.
[0037] S111. Determine a file type corresponding to the scene element according to the scene element design table.
[0038] The scene element design table records the file type corresponding to each scene element, and the file type corresponding to the current scene element can be obtained from the scene element design table.
[0039] S112. Obtain file branch mapping information corresponding to the element splitting rule according to the file type.
[0040] The element splitting rules contain file branch mapping information corresponding to each file type. The structure of the overall file corresponding to element files of different file types is different. The corresponding file branch mapping information can be obtained from the element splitting rules according to the file type corresponding to the scene element. The file branch mapping information is the branch structure information obtained by mapping the tree branch structure of the file.
[0041] S113. Split the scene elements according to the file branch mapping information to obtain corresponding element splitting information.
[0042] The scene elements can be split according to the file branch mapping information to obtain element splitting information. The element splitting information is specific information obtained by acquiring data corresponding to each layer of the tree branch structure according to the file branch mapping information.
[0043] For example, the element splitting information obtained by splitting a certain scene element is shown in Table 1.
[0044] Table 1
[0045]
[0046] S120: Precalculate the scene elements according to the element splitting information and preset precalculation parameters to obtain corresponding precalculation results.
[0047] According to the element splitting information and the preset pre-calculation parameters, the scene elements are pre-calculated to obtain corresponding pre-calculation results. After the scene elements are split to obtain the element splitting information, the element splitting information obtained by the splitting can be displayed in the user terminal (or the management server feeds back to the corresponding user terminal), and the important data information in the element splitting information can be displayed based on an independent tool, such as displaying the data information related to image generation in the element splitting information. The user can configure the corresponding pre-calculation parameters according to the data information displayed in the independent tool. As shown in Table 1, the data information related to image generation includes the data information in the bBox corresponding file "tree_355n.initial.bBox.ma", the geo corresponding file "tree_355n.initial.geo.ma" and the gpu corresponding file "tree_355n.initial.gpu.abc".
[0048] In one embodiment, if Figure 3 As shown, step S120 includes sub-steps S121 and S122.
[0049] S121. Obtain corresponding calculation basic data from the element splitting information.
[0050] Specifically, the calculation basic data can be the data information in the bBox corresponding file "tree_355n.initial.bBox.ma" and the geo corresponding file "tree_355n.initial.geo.ma", among which the file "tree_355n.initial.bBox.ma" is used for geometry display, which contains the most original geometry data of the element model, and "tree_355n.initial.geo.ma" is used for wireframe display, which contains the basic position and coverage area information of the element model.
[0051] S122: Pre-calculate each scaling ratio included in the calculation basic data and the pre-calculation parameters respectively, so as to use the calculated cache information corresponding to each scaling ratio as the corresponding pre-calculation result.
[0052] Precalculation can be performed based on the calculation basic data and the precalculation parameters configured by the user. Specifically, the precalculation parameters of a scene element may include one or more scaling ratios. The calculation basic data and each scaling ratio included in the precalculation parameters can be combined separately, and precalculation can be performed for each scaling ratio to obtain cache information corresponding to each scaling ratio, and one or more cache information corresponding to a scene element can be stored as the corresponding precalculation result. For example, if the scaling ratios in the precalculation parameters include 25%, 50% and 75%, precalculation can be performed based on the geometric model of the scene element and the corresponding scaling ratio to obtain cache information corresponding to the three levels of 25%, 50% and 75%. The cache information is the GPU cache information corresponding to the geometric model of the corresponding scale.
[0053] S130: assembling elements on the pre-calculation results and the corresponding element splitting information to obtain scene assembly elements corresponding to each element splitting information.
[0054] Element assembly is performed on the pre-calculation results and the corresponding element splitting information to obtain scene assembly elements corresponding to each element splitting information.
[0055] The pre-calculation results and the element splitting information can be assembled to obtain scene assembly elements corresponding to each element splitting information. For example, the pre-calculation results corresponding to each scene element can be encapsulated into the "tree_355n.initial.gpu.abc" file corresponding to the corresponding scene element, so as to realize element assembly of the element splitting information. After assembly, the overall element file corresponding to each element splitting information can be formed, and the overall element file can be used as the scene assembly element corresponding to each element splitting information for subsequent use.
[0056] S140, arranging and combining the scene assembly elements according to the scene element design table to obtain a corresponding assembly element file set and storing it in a preset database.
[0057] The scene assembly elements are arranged and combined according to the scene element design table to obtain the corresponding assembly element file set and store it in a preset database. The obtained scene assembly elements can be arranged and combined according to the scene element design table. Specifically, firstly, the single scene assembly elements are arranged. The element splitting information contains the assembly number of the scene element. At this time, the assembly number can be directly inherited for use. Each scene element uniquely corresponds to an assembly number; then, the single scene assembly elements are combined according to the element combination information in the scene element design table to obtain the combination elements corresponding to each element combination information and arrange them. The assembly number corresponding to each combination element can be generated according to the arranged combination elements. Each combination element uniquely corresponds to an assembly number, and the assembly number of the combination element does not overlap with the assembly number of the scene element; all single scene assembly elements and combination elements are integrated to form an assembly element file set, and the elements contained in the assembly element file set are stored in the database. In addition, you can also obtain the basic information of each element in the assembly element file set to generate an information table and store it in the database as a local database file. The basic information of the element includes the author, name, creation time, tag, output type, display name, type, etc. Users can obtain the information table corresponding to the assembly element file set and quickly obtain the basic information of each element therein.
[0058] For example, the basic information of an element is shown in Table 2.
[0059] Table 2
[0060] author xinmengmin name Pine Tree E Creation time 2021-06-10,17:17 mark 000000 Output Type gpu、geo display name PineE type tree
[0061] In one embodiment, if Figure 4 As shown, step S140 also includes step S1401 after step S140.
[0062] S1401: Generate corresponding element preview images according to the elements included in the scene assembly element set and add them to the database for storage.
[0063] After the elements in the scene assembly element set are stored in the database, the corresponding element preview image can be generated according to the information contained in each element in the scene assembly element set and added to the database. Because each scene element is pre-calculated before the element assembly, the cache information corresponding to the scene element can be directly used in the process of generating the element preview image, which greatly improves the efficiency of generating the element preview image. Users can quickly obtain the view information corresponding to the element by viewing the element preview image, which improves the efficiency of element editing.
[0064] In actual application, a database can be configured in the cloud, and various materials, assemblies, animations, textures and other information can be stored through the database configured in the cloud, so that multiple people can share the information stored in the database, and different production teams can work together to complete the animation production.
[0065] S150, acquiring corresponding assembly element files from the database according to the scene lens data table in the database for assembly, so as to construct an animation scene corresponding to each scene lens in the scene lens data table.
[0066] According to the scene lens data table in the database, the corresponding assembly element files are obtained from the database for assembly, so as to construct an animation scene corresponding to each scene lens in the scene lens data table. In the current production process, high-quality film and television animation production makes extensive use of montage methods. Each lens may have different compositions and material selections. Therefore, when constructing animation scenes, corresponding adjustments need to be made according to different lenses. Specifically, the corresponding assembly element files can be obtained from the database according to the scene lens data table for assembly. After assembling the assembly element files corresponding to a scene lens, a corresponding animation scene can be constructed. Through this technical method, an animation scene corresponding to each scene lens in the scene lens data table can be constructed.
[0067] In one embodiment, if Figure 5 As shown, step S150 includes sub-steps S151 and S152.
[0068] S151. Acquire, from the database according to the assembly table of each scene shot, an assembly element file corresponding to the element in the assembly table.
[0069] The scene lens data table contains an assembly table corresponding to each scene lens. The assembly table contains assembly numbers corresponding to the elements. The assembly element file corresponding to the corresponding element can be obtained from the database according to the assembly number contained in the assembly table. The assembly numbers in the assembly table can be repeated. If the assembly table corresponding to a scene lens contains repeated assembly numbers, it means that the scene lens contains multiple repeated elements.
[0070] S152: adjusting the assembly element file corresponding to each scene shot according to the displacement information of each scene shot, so as to construct an animation scene corresponding to each scene shot.
[0071] The scene lens data table also contains displacement information corresponding to each scene lens. The assembly element file corresponding to the scene lens can be adjusted according to the displacement information. After adjustment, the 3D animation model corresponding to the scene lens can be obtained, and the 3D animation model is also the corresponding animation scene. Specifically, the displacement information includes the scaling ratio (size information), position information (3D coordinate value) and direction information (rotation angle) of the element. Then, the corresponding element can be scaled, 3D position adjusted, rotation adjusted, etc. according to the displacement information to obtain the lens elements matching the scene lens and combine them, so as to build the animation scene corresponding to the scene lens.
[0072] In one embodiment, if Figure 6 As shown, step S152 also includes sub-steps S1521, S1522 and S1523.
[0073] S1521. Determine the cache information closest to the adjustment ratio for each assembly element file in the scene shot according to the scaling ratio in the displacement information; S1522. Further adjust the cache information closest to each assembly element file according to the adjustment ratio to obtain a lens element; S1523. Adjust and combine the corresponding lens elements in the scene shot according to the position information and direction information in the displacement information to construct an animation scene corresponding to each scene shot.
[0074] When scaling the elements contained in the scene lens, the cache information corresponding to the elements can be used directly. The specific steps are: first obtain the cache information corresponding to the level closest to the scaling ratio in the scaling adjustment, and further perform a small scaling adjustment based on the cache information, that is, further adjust the elements contained in the scene lens based on the pre-calculated results. For example, if the scaling ratio of the element is 55%, the cache information corresponding to the level close to the scaling ratio can be directly used. The level close to 55% is 50%, then the cache information corresponding to 50% is obtained, and further perform a small scaling adjustment based on the cache information, thereby greatly improving the display efficiency of each element in the scene lens, thereby greatly improving the efficiency of building the animation scene corresponding to the scene lens.
[0075] After adjusting the assembly element file, the lens elements are obtained. The lens elements contained in each scene lens are adjusted according to the position information and direction information in the displacement information, and the adjusted lens elements of the same scene lens are combined to build an animation scene corresponding to each scene lens.
[0076] In one embodiment, if Figure 7 As shown, step S150 also includes sub-steps S1501 and S1502.
[0077] S1501, real-time monitoring of the construction process of the animation scene corresponding to each of the scene shots to obtain the construction status corresponding to each of the scene shots; S1502, synchronizing the construction status of each of the scene shots in real time to the scene shot data table for storage.
[0078] The construction process of the animation scene corresponding to the scene lens can also be monitored in real time, so as to obtain the construction status corresponding to each scene lens. The construction status is also the completion degree of each element involved in the scene lens, such as the construction status including animation, cloth solution, special effects, cache and assembly completion degree. The construction status of each scene lens can be synchronized in real time to the scene lens data table, so that the user can grasp the construction status of each scene lens in real time by checking the scene lens data table.
[0079] After completing the construction of the animation scene for each scene lens, import the camera lens information corresponding to each animation scene, and then capture the lens image of the constructed animation scene through the camera angle corresponding to the camera lens information, thereby completing the animation production.
[0080] In the animation scene construction method provided by the embodiment of the present invention, the scene elements are split according to the scene element design table and the element splitting rules to obtain the corresponding element splitting information, the pre-calculation is performed according to the element splitting information and the pre-calculation parameters to obtain the pre-calculation results, the pre-calculation results and the corresponding element splitting information are assembled to obtain the corresponding scene assembly elements, the scene assembly elements are arranged and combined according to the scene element design table to obtain the assembly element file set and stored in the database, and the corresponding assembly element file is obtained according to the scene lens data table in the database for assembly to build the animation scene corresponding to each scene lens. Through the above method, the scene elements can be pre-calculated to obtain the pre-calculation results, and when the animation scene of the scene lens is built, the assembly element file can be quickly adjusted according to the pre-calculation results, which can greatly improve the display efficiency of complex animation scenes, thereby improving the construction efficiency of animation scenes.
[0081] The embodiment of the present invention further provides an animation scene construction device, which can be configured in a user terminal or a management server, and is used to execute any embodiment of the above-mentioned animation scene construction method. Figure 8 , Figure 8 A schematic block diagram of an animation scene construction device provided in an embodiment of the present invention.
[0082] like Figure 8As shown, the animation scene construction device 100 includes a scene element splitting unit 110 , a pre-calculation result obtaining unit 120 , an element assembling unit 130 , an assembly element file storage unit 140 and an animation scene construction unit 150 .
[0083] The scene element splitting unit 110 is used to split the scene element according to the scene element design table and preset element splitting rules to obtain corresponding element splitting information if the input scene element design table and scene elements are received.
[0084] In a specific embodiment, the scene element splitting unit 110 includes sub-units: a file type determination unit, used to determine the file type corresponding to the scene element according to the scene element design table; a file branch mapping information acquisition unit, used to obtain the file branch mapping information corresponding to the element splitting rule according to the file type; a splitting processing unit, used to split the scene element according to the file branch mapping information to obtain corresponding element splitting information.
[0085] The pre-calculation result acquisition unit 120 is used to pre-calculate the scene elements according to the element segmentation information and preset pre-calculation parameters to obtain corresponding pre-calculation results.
[0086] In a specific embodiment, the pre-calculation result acquisition unit 120 includes sub-units: a calculation basic data acquisition unit, used to obtain corresponding calculation basic data from the element splitting information; a pre-calculation processing unit, used to perform pre-calculation according to the calculation basic data and each scaling ratio included in the pre-calculation parameters, so as to use the calculated cache information corresponding to each scaling ratio as the corresponding pre-calculation result.
[0087] The element assembly unit 130 is used to perform element assembly on the pre-calculation results and the corresponding element splitting information to obtain a scene assembly element corresponding to each element splitting information.
[0088] The assembly element file storage unit 140 is used to arrange and combine the scene assembly elements according to the scene element design table, obtain a corresponding assembly element file set and store it in a preset database.
[0089] In a specific embodiment, the animation scene construction device 100 further includes a subunit: an element preview image adding unit, which is used to generate corresponding element preview images according to the elements included in the scene assembly element set and add them to the database for storage.
[0090] The animation scene building unit 150 is used to obtain the corresponding assembly element file from the database according to the scene lens data table in the database for assembly, so as to build an animation scene corresponding to each scene lens in the scene lens data table.
[0091] In a specific embodiment, the animation scene building unit 150 includes sub-units: an assembly element file acquisition unit, which is used to acquire the assembly element file corresponding to the element in the assembly table from the database according to the assembly table of each of the scene shots; and a scene building unit, which is used to adjust the assembly element file corresponding to the scene shot according to the displacement information of each of the scene shots, so as to build an animation scene corresponding to each of the scene shots.
[0092] In a specific embodiment, the animation scene construction unit 150 also includes sub-units: a construction status acquisition unit, which is used to monitor the construction process of the animation scene corresponding to each of the scene shots in real time to obtain the construction status corresponding to each of the scene shots; a construction status synchronization storage unit, which is used to synchronize the construction status of each of the scene shots in real time to the scene shot data table for storage.
[0093] The animation scene building device provided in the embodiment of the present invention applies the above-mentioned animation scene building method, splits the scene elements according to the scene element design table and the element splitting rules to obtain the corresponding element splitting information, pre-calculates according to the element splitting information and the pre-calculation parameters to obtain the pre-calculation results, assembles the pre-calculation results and the corresponding element splitting information to obtain the corresponding scene assembly elements, arranges and combines the scene assembly elements according to the scene element design table to obtain the assembly element file set and stores it in the database, obtains the corresponding assembly element file according to the scene lens data table in the database for assembly, so as to build the animation scene corresponding to each scene lens. Through the above-mentioned method, the scene elements can be pre-calculated to obtain the pre-calculation results, and when the animation scene of the scene lens is built, the assembly element file can be quickly adjusted according to the pre-calculation results, which can greatly improve the display efficiency of complex animation scenes, thereby improving the building efficiency of animation scenes.
[0094] The above-mentioned animation scene construction device can be implemented in the form of a computer program, and the computer program can be used in Fig. 9 Runs on the computer device shown.
[0095] See also Fig. 9 , Fig. 9 : is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a user terminal or a management server for executing an animation scene construction method to obtain a corresponding animation scene according to an input scene element design table and scene element construction.
[0096] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0097] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the animation scene construction method, wherein the storage medium 503 can be a volatile storage medium or a non-volatile storage medium.
[0098] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0099] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the animation scene construction method.
[0100] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0101] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned animation scene construction method.
[0102] Those skilled in the art will understand that Fig. 9 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Fig. 9 The embodiments shown are consistent and will not be described again here.
[0103] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0104] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the above-mentioned animation scene construction method are implemented.
[0105] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0106] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0108] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0109] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable 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, Read-Only Memory), a magnetic disk or an optical disk.
[0110] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for building an animation scene, characterized in that: The method comprises: If the input scene element design table and scene elements are received, the scene elements are split according to the scene element design table and the preset element splitting rules to obtain corresponding element splitting information; Precalculating the scene elements according to the element splitting information and preset precalculation parameters to obtain corresponding precalculation results; Performing element assembly on the pre-calculation results and the corresponding element splitting information to obtain scene assembly elements corresponding to each element splitting information; Arrange and combine the scene assembly elements according to the scene element design table to obtain a corresponding assembly element file set and store it in a preset database; According to the scene lens data table in the database, corresponding assembly element files are obtained from the database for assembly, so as to construct an animation scene corresponding to each scene lens in the scene lens data table; The pre-calculation parameters include at least one scaling ratio, and the pre-calculation of the scene elements according to the element splitting information and the preset pre-calculation parameters to obtain corresponding pre-calculation results includes: Obtaining corresponding calculation basic data from the element splitting information; Pre-calculation is performed respectively according to the calculation basic data and each scaling ratio included in the pre-calculation parameters, so as to use the calculated cache information corresponding to each scaling ratio as the corresponding pre-calculation result.
2. The method for constructing an animation scene according to claim 1, characterized in that: The step of splitting the scene elements according to the scene element design table and the preset element splitting rules to obtain corresponding element splitting information includes: Determine the file type corresponding to the scene element according to the scene element design table; Obtain file branch mapping information corresponding to the element splitting rule according to the file type; The scene elements are split according to the file branch mapping information to obtain corresponding element splitting information.
3. The method for constructing an animation scene according to claim 1, characterized in that: After the scene assembly elements are arranged and combined according to the scene element design table to obtain an assembly element file set and stored in a preset database, the method further includes: Generate corresponding element preview images according to the elements included in the scene assembly element set and add them to the database for storage.
4. The method for constructing an animation scene according to claim 1, characterized in that: The step of obtaining corresponding assembly element files from the database according to the scene lens data table in the database for assembly to construct an animation scene corresponding to each scene lens in the scene lens data table includes: Acquire the corresponding assembly element file from the database according to the assembly table of each scene shot; The assembly element file corresponding to each scene shot is adjusted according to the displacement information of each scene shot, so as to construct an animation scene corresponding to each scene shot.
5. The method for constructing an animation scene according to claim 4, characterized in that: The step of adjusting the assembly element file corresponding to each scene shot according to the displacement information of each scene shot to construct an animation scene corresponding to each scene shot includes: Determine, according to the scaling ratio in the displacement information, cache information that is closest to the scaling ratio of each assembly element file in the scene shot; Further adjusting the closest cache information in each assembly element file according to the scaling ratio to obtain a lens element; According to the position information and direction information in the displacement information, the corresponding lens elements in the scene lens are adjusted and combined to construct an animation scene corresponding to each of the scene lenses.
6. The method for constructing an animation scene according to claim 4, characterized in that: The step of obtaining corresponding assembly element files from the database according to the scene lens data table in the database for assembly, so as to construct an animation scene corresponding to each scene lens in the scene lens data table, further comprises: The construction process of the animation scene corresponding to each of the scene shots is monitored in real time to obtain the construction status corresponding to each of the scene shots; The construction status of each of the scene shots is synchronized in real time to the scene shot data table for storage.
7. An animation scene construction device, characterized in that: The device comprises: A scene element splitting unit, configured to split the scene element according to the scene element design table and preset element splitting rules to obtain corresponding element splitting information if the scene element design table and the scene element are received as input; A pre-calculation result acquisition unit, used to pre-calculate the scene element according to the element splitting information and preset pre-calculation parameters to obtain a corresponding pre-calculation result; An element assembly unit, used for performing element assembly on the pre-calculation result and the corresponding element splitting information to obtain a scene assembly element corresponding to each element splitting information; An assembly element file storage unit, used for arranging and combining the scene assembly elements according to the scene element design table, obtaining a corresponding assembly element file set and storing it in a preset database; An animation scene building unit, used for acquiring corresponding assembly element files from the database according to the scene lens data table in the database for assembly, so as to build an animation scene corresponding to each scene lens in the scene lens data table; The pre-calculation parameters include at least one scaling ratio, and the pre-calculation of the scene elements according to the element splitting information and the preset pre-calculation parameters to obtain corresponding pre-calculation results includes: Obtaining corresponding calculation basic data from the element splitting information; Pre-calculation is performed respectively according to the calculation basic data and each scaling ratio included in the pre-calculation parameters, so as to use the calculated cache information corresponding to each scaling ratio as the corresponding pre-calculation result.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the animation scene building method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the animation scene building method according to any one of claims 1 to 6 is implemented.