A method and related equipment for three-dimensional animation rendering of intangible cultural heritage products
By using 3D digital scanning technology to obtain three-dimensional point cloud data in the three-dimensional animation rendering of intangible cultural heritage morphology products, preprocessing and dense sampling, modeling paths and spatial triangle mesh models are generated, and rendering parameters are obtained by combining the renderer and rendering rotation track, and tuning the rendering parameters through simulation rendering simulation, the problem of insufficient shape of the three-dimensional model and low matching degree of rendering parameters in the existing technology is solved, achieving more accurate modeling and more ideal rendering effects.
Patent Information
- Application Number
- CN202411427516.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-10-14
AI Technical Summary
The existing technology lacks modeling path considerations in the three-dimensional animation rendering of intangible cultural heritage products, resulting in the shape and curve of the three-dimensional model being insufficiently accurate, and the matching parameters of the three-dimensional animation rendering are not high, so the expected effect cannot be achieved.
Three-dimensional point cloud data is obtained based on 3D digital scanning technology, preprocessing and dense sampling are performed, modeling paths and spatial triangle mesh models are generated, rendering parameters are obtained in combination with the renderer and the rendering rotation track, and rendering parameters are tuned through simulated rendering simulation.
It realizes more accurate modeling and clearer edge contours of the three-dimensional models of intangible cultural heritage products, improves the effect and matching of three-dimensional animation rendering, and achieves a more ideal rendering effect.
Smart Images

Figure CN119399331B_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of data processing technology, and in particular to a method and related equipment for three-dimensional animation rendering of intangible cultural heritage products. Background Art
[0002] Intangible cultural heritage is an important part of China's excellent traditional culture. The application of digital technology provides new means for the creative transformation and innovative development of intangible cultural heritage. The digital product transformation of intangible cultural heritage products has been increasingly valued, and the three-dimensional animation rendering of intangible cultural heritage products is a very important part of it. At present, in the three-dimensional animation rendering of intangible cultural heritage products, the three-dimensional modeling of intangible cultural heritage products usually lacks the consideration of modeling paths. The lack of consideration of modeling paths will lead to the inability to accurately create complex shapes and curves in the model, resulting in a large deviation between the constructed three-dimensional model and the actual situation. At the same time, due to the huge amount of three-dimensional point cloud data obtained, it is necessary to generate cross-sectional contours and spatial triangular meshes for the three-dimensional point cloud data. At present, cross-sectional contours and spatial triangular meshes are usually generated by polynomial coefficients and vector modeling, but the accuracy of this method is not high, resulting in the contour edge of the constructed three-dimensional model not being clear enough. At the same time, in the current three-dimensional animation rendering, a fixed three-dimensional framework is usually used to directly determine the rendering parameters, which easily leads to a low matching degree between the determined rendering parameters and the animation rendering object determined by the three-dimensional model, and the rendering parameters determined by this method are not comprehensive enough, resulting in the failure of the three-dimensional animation rendering of intangible cultural heritage products to achieve the expected effect. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and related equipment for three-dimensional animation rendering of intangible cultural heritage products, so that the three-dimensional animation rendering of intangible cultural heritage products can achieve more ideal effects, and realize the innovative transformation of the three-dimensional model of intangible cultural heritage products into digital cultural products.
[0004] In order to solve the above technical problems, the present invention provides a method for three-dimensional animation rendering of an intangible cultural heritage product, the method comprising:
[0005] Acquire three-dimensional point cloud data of the intangible cultural heritage product based on 3D digital scanning technology, and pre-process the three-dimensional point cloud data to obtain pre-processed three-dimensional point cloud data;
[0006] Generate two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and construct a modeling path based on the two-dimensional slice plane data;
[0007] Performing dense sampling processing on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, generating a cross-sectional geometric profile based on the dense three-dimensional point cloud data by using constraint fitting, and constructing a spatial triangular mesh model based on the cross-sectional geometric profile;
[0008] Based on the modeling path and the spatial triangular mesh model, three-dimensional modeling of the intangible cultural heritage morphology product is performed to obtain a target three-dimensional model;
[0009] Determine a three-dimensional animation rendering object based on the target three-dimensional model, and obtain rendering parameters of the three-dimensional animation rendering object based on a renderer and a rendering rotation track;
[0010] Performing a simulated rendering simulation based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and optimizing the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters;
[0011] Based on the optimized rendering parameters and the three-dimensional animation rendering object, three-dimensional animation rendering processing of the intangible cultural heritage form product is performed.
[0012] Optionally, preprocessing the three-dimensional point cloud data to obtain preprocessed three-dimensional point cloud data includes:
[0013] Performing registration processing on the three-dimensional point cloud data to obtain three-dimensional point cloud data after registration processing;
[0014] Performing denoising on the three-dimensional point cloud data after the registration process to obtain denoised three-dimensional point cloud data;
[0015] The denoised three-dimensional point cloud data is streamlined to obtain pre-processed three-dimensional point cloud data.
[0016] Optionally, generating two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and constructing a modeling path based on the two-dimensional slice plane data includes:
[0017] Slice the preprocessed three-dimensional point cloud data to obtain two-dimensional slice plane data;
[0018] Setting a Hamiltonian path, and obtaining modeling path nodes based on the Hamiltonian path combined with a preset decomposition graph;
[0019] A modeling path is generated based on the two-dimensional slice plane data using the modeling path nodes in combination with a non-uniform rational B-spline method.
[0020] Optionally, the preprocessed three-dimensional point cloud data is densely sampled to obtain dense three-dimensional point cloud data, a cross-sectional geometric profile is generated based on the dense three-dimensional point cloud data by using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric profile, including:
[0021] Obtaining a number of triangular facets in the preprocessed three-dimensional point cloud data, and obtaining the three-dimensional coordinates of the vertices of each triangular facet;
[0022] Random sampling is performed based on the three-dimensional coordinates of the vertices of each triangle to obtain a number of random sampling points;
[0023] Based on several random sampling points, the implicit function of the implicit surface is used to perform point cloud upsampling processing to obtain dense three-dimensional point cloud data;
[0024] Performing straight line fitting based on the dense three-dimensional point cloud data using the least squares method to obtain contour segments, and performing global fitting based on the contour segments using a constraint function to obtain a cross-sectional geometric profile;
[0025] Based on the cross-sectional geometric profile, triangulation is performed using a Delaunay growth algorithm to obtain a spatial triangular mesh model.
[0026] Optionally, performing three-dimensional modeling of the intangible cultural heritage morphological product based on the modeling path and the spatial triangular mesh model to obtain a target three-dimensional model includes:
[0027] Eliminating the hanging edges and hanging points of the spatial triangular mesh model to obtain a new spatial triangular mesh model;
[0028] Based on the modeling path and the new spatial triangular mesh model, three-dimensional modeling of the intangible cultural heritage morphological product is performed to obtain a target three-dimensional model.
[0029] Optionally, the acquiring rendering parameters of the three-dimensional animation rendering object based on the renderer and the rendering rotation track includes:
[0030] Acquire a rendering rotation track of the 3D animation rendering object based on rendering requirements, and determine a stacking order and a scaling degree of the 3D animation rendering object based on the rendering rotation track;
[0031] Get particle animation parameters and basic particle parameters based on particle editor;
[0032] Defining a renderer object based on the three-dimensional animation rendering object, acquiring object rendering parameters of the renderer object, and generating a rendering color space based on the object rendering parameters;
[0033] Rendering parameters are generated based on the stacking order, the scaling degree, the particle animation parameters, the particle basic parameters, the object rendering parameters and the rendering color space.
[0034] Optionally, performing simulation rendering based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulation rendering result includes:
[0035] Based on the Unreal Engine, the three-dimensional animation rendering object is simulated by using the rendering parameters to obtain a simulated rendering result, and a simulation data file is generated based on the simulated rendering result.
[0036] In addition, the present invention also provides a device for three-dimensional animation rendering of intangible cultural heritage products, the device comprising:
[0037] 3D point cloud data preprocessing module: used to obtain 3D point cloud data of intangible cultural heritage products based on 3D digital scanning technology, and preprocess the 3D point cloud data to obtain preprocessed 3D point cloud data;
[0038] A modeling path construction module: used to generate two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and to construct a modeling path based on the two-dimensional slice plane data;
[0039] A spatial triangular mesh model construction module is used to perform dense sampling processing on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, generate a cross-sectional geometric profile based on the dense three-dimensional point cloud data by using constraint fitting, and construct a spatial triangular mesh model based on the cross-sectional geometric profile;
[0040] Three-dimensional modeling module: used for performing three-dimensional modeling of intangible cultural heritage morphological products based on the modeling path and the spatial triangular mesh model to obtain a target three-dimensional model;
[0041] A rendering parameter acquisition module: used for determining a three-dimensional animation rendering object based on the target three-dimensional model, and acquiring rendering parameters of the three-dimensional animation rendering object based on a renderer and a rendering rotation track;
[0042] A rendering parameter tuning module: used to perform a simulated rendering simulation based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and to tune the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters;
[0043] Three-dimensional animation rendering module: used to perform three-dimensional animation rendering processing of intangible cultural heritage products based on the optimized rendering parameters and the three-dimensional animation rendering object.
[0044] In addition, the present invention also provides an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned method of three-dimensional animation rendering of intangible cultural heritage products.
[0045] In addition, the present invention also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned method of three-dimensional animation rendering of intangible cultural heritage products.
[0046] In an embodiment of the present invention, a modeling path is generated based on two-dimensional slice plane data using modeling path nodes combined with a non-uniform rational B-spline method, and the modeling path can better reflect the complex shapes and curved surfaces in the intangible cultural heritage morphological products. Based on dense three-dimensional point cloud data, a cross-sectional geometric contour is generated using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric contour, so that the generated cross-sectional geometric contour and spatial triangular mesh model are more accurate, avoiding the interference of discrete noise points in the point cloud data. Three-dimensional modeling of intangible cultural heritage morphological products is performed based on the modeling path and the spatial triangular mesh model, so that the obtained three-dimensional model can be more in line with the actual intangible cultural heritage morphological products, and the edge contour and surface of the generated three-dimensional model are clearer. The rendering parameters of the three-dimensional animation rendering object are obtained based on the renderer and the rendering rotation track. The rendering parameters include stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space. More comprehensive and accurate rendering parameters can be obtained, so that the determined rendering parameters and the animation rendering object determined by the three-dimensional model have a higher matching degree. The rendering parameters are tuned based on the simulated rendering simulation results to generate optimized rendering parameters. The three-dimensional animation rendering processing of the intangible cultural heritage form product is performed based on the optimized rendering parameters in combination with the three-dimensional animation rendering object, so that the three-dimensional animation rendering of the intangible cultural heritage form product can achieve a more ideal effect, and realize the innovative transformation of the three-dimensional model of the intangible cultural heritage form product to the digital cultural product. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 It is a flowchart of a method for three-dimensional animation rendering of an intangible cultural heritage form product in an embodiment of the present invention;
[0049] Figure 2 is a flow chart of a method for three-dimensional animation rendering of an intangible cultural heritage form product in another embodiment of the present invention;
[0050] Figure 3It is a schematic diagram of the structure of a device for three-dimensional animation rendering of an intangible cultural heritage form product in an embodiment of the present invention;
[0051] Figure 4 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Embodiment 1
[0054] See also Figure 1 , Figure 1 : is a flow chart of a method for three-dimensional animation rendering of an intangible cultural heritage form product in an embodiment of the present invention, the method comprising:
[0055] S11: Acquire three-dimensional point cloud data of the intangible cultural heritage product based on 3D digital scanning technology, and pre-process the three-dimensional point cloud data to obtain pre-processed three-dimensional point cloud data;
[0056] In the specific implementation process of the present invention, the preprocessing of the three-dimensional point cloud data to obtain the preprocessed three-dimensional point cloud data includes: performing registration processing on the three-dimensional point cloud data to obtain the registered three-dimensional point cloud data; performing denoising processing on the registered three-dimensional point cloud data to obtain the denoised three-dimensional point cloud data; performing simplification processing on the denoised three-dimensional point cloud data to obtain the preprocessed three-dimensional point cloud data.
[0057] Specifically, the three-dimensional point cloud data of the intangible cultural heritage form product is obtained based on the 3D digital scanning technology. The laser scanner can be used to perform three-dimensional scanning on the intangible cultural heritage form product to obtain the three-dimensional point cloud data. The intangible cultural heritage form product can be the intangible cultural heritage traditional skills of the hometown of overseas Chinese, such as Dongyi Palace Lantern and its production process. The three-dimensional point cloud data is registered, the three-dimensional point cloud data is transformed based on the normal distribution transformation method to obtain the registration transformation matrix, and each point in the three-dimensional point cloud data is transformed by the registration transformation matrix to obtain the three-dimensional point cloud data after rough registration. The iterative nearest point method with the introduction of simulated annealing strategy is used to perform multiple iterative registrations on the three-dimensional point cloud data after rough registration to obtain the three-dimensional point cloud data after registration. The three-dimensional point cloud data after registration is denoised, and the spatial binary tree is used to search for the nearest neighbor point for denoising, that is, the neighborhood of each point of the three-dimensional point cloud data after registration is searched in the spatial binary tree, and the three-dimensional point cloud data after denoising is obtained by depth-first retrieval, starting from the root of the spatial binary tree until the leaf node is found. The denoised 3D point cloud data is simplified based on the equal density method and the surrounding grid method, and a sub-grid is established. The distance from the point in the 3D point cloud data to the center of the grid is calculated within the sub-grid. The denoised 3D point cloud data is simplified based on the distance, that is, data points with excessive deviations are deleted. After the simplification of the 3D point cloud data is completed, the preprocessing is completed and the preprocessed 3D point cloud data is obtained.
[0058] S12: generating two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and constructing a modeling path based on the two-dimensional slice plane data;
[0059] In the specific implementation process of the present invention, the two-dimensional slicing plane data is generated based on the preprocessed three-dimensional point cloud data, and the modeling path is constructed based on the two-dimensional slicing plane data, including: slicing the preprocessed three-dimensional point cloud data to obtain two-dimensional slicing plane data; setting a Hamiltonian path, and obtaining modeling path nodes based on the Hamiltonian path combined with a preset decomposition diagram; based on the two-dimensional slicing plane data, using the modeling path nodes combined with the non-uniform rational B-spline method to generate a modeling path.
[0060] Specifically, the preprocessed three-dimensional point cloud data is sliced, and the normal plane is extracted according to the preset distance interval. The preprocessed three-dimensional point cloud data is sliced according to the extracted normal plane combined with the selected slicing direction, and the slicing direction includes the horizontal direction or the direction perpendicular to the horizontal plane, and the sheet point cloud is extracted, and a projection plane with the same slicing direction is generated, and the sheet point cloud is projected onto the corresponding projection plane to obtain two-dimensional slice plane data. A Hamiltonian path is set, and the Hamiltonian path refers to a path starting from a vertex in the graph, walking along the edge, passing through each vertex of the graph, and each vertex is visited only once, and then returning to the starting point. Based on the Hamiltonian path and the preset decomposition graph, a modeling path node is obtained, and an outer package graph of the preprocessed three-dimensional point cloud data is constructed. A Thiessen polygon network is constructed based on the constructed outer package graph. A decomposition path in a three-dimensional modeling object is obtained according to the preset decomposition graph. The decomposition graph is a decomposition graph corresponding to a three-dimensional modeling scene. A decomposition path corresponds to a group of dividing lines of at least one object link. Starting from any node in the Thiessen polygon network, all nodes of the Thiessen polygon are linked in sequence using the decomposition path to obtain a corresponding solution, which is a modeling path node. Based on the two-dimensional slice plane data, the modeling path is generated by using the modeling path node in combination with the non-uniform rational B-spline method. Based on the modeling path node, the two-dimensional slice plane data is Boolean spliced using the non-uniform rational B-spline method to obtain the modeling path. The non-uniform rational B-spline method is used to generate and represent curves and surfaces. It provides great flexibility and accuracy for processing analytical functions and model shapes. The modeling path refers to the way to create complex shapes and curves in the surface morphology of objects in three-dimensional modeling. The non-uniform rational B-spline method is based on the Bezier curve principle and can generate highly complex shapes, while generating very smooth curves, and better handle the transition problem between details and surfaces. The modeling path can better reflect the complex shapes and surfaces in the intangible cultural heritage morphological products.
[0061] S13: performing dense sampling processing on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, generating a cross-sectional geometric profile based on the dense three-dimensional point cloud data by using constraint fitting, and constructing a spatial triangular mesh model based on the cross-sectional geometric profile;
[0062] In the specific implementation process of the present invention, the pre-processed three-dimensional point cloud data is densely sampled to obtain dense three-dimensional point cloud data, a cross-sectional geometric contour is generated based on the dense three-dimensional point cloud data using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric contour, including: obtaining a number of triangular facets in the pre-processed three-dimensional point cloud data, and obtaining the three-dimensional coordinates of the vertices of each triangular facet; performing random sampling based on the three-dimensional coordinates of the vertices of each triangular facet to obtain a number of random sampling points; performing point cloud upsampling processing based on the several random sampling points using implicit functions of implicit surfaces to obtain dense three-dimensional point cloud data; performing straight line fitting based on the dense three-dimensional point cloud data using the least squares method to obtain contour segments, and performing global fitting based on the contour segments using constraint functions to obtain the cross-sectional geometric contour; performing triangulation based on the cross-sectional geometric contour using the Delaunay growth algorithm to obtain a spatial triangular mesh model.
[0063] Specifically, the pre-processed point cloud data is triangulated to obtain a number of triangular facets, and the three-dimensional coordinates of the vertices of each triangular facet are obtained based on the three-dimensional coordinate system. Random sampling is performed based on the three-dimensional coordinates of the vertices of each triangular facet, and the centroid of the triangular facet is determined as a sampling point based on the Monte Carlo probability distribution method using the three-dimensional coordinates of the vertices of each triangular facet. The sampling point is used for cyclic random sampling until the number of the obtained multiple sampling points is in a preset proportional relationship with the area of the triangular facet, and a number of sampling points are obtained, that is, a number of random sampling points are obtained. Based on several random sampling points, the implicit function of the implicit surface is used to perform point cloud upsampling processing. The implicit surface is used to illustrate the relationship satisfied by all points on the surface, and the implicit function is used to identify complex three-dimensional objects. The maximum gradient modulus of the implicit function in a preset bounded area is calculated. The gradient vector is calculated based on the maximum gradient modulus using random sampling points, and the plane is fitted using the weighted least squares method according to the gradient vector. New sampling points are generated according to the fitting results until all random sampling points are processed, that is, by generating additional sampling points, the density of the original sparse point cloud is increased to a higher level. Due to the surface fitting, the surface of the point cloud can be smoothed, and the noise and irregularity of the shape can be reduced. The implicit function of the implicit surface can make the generated dense three-dimensional point cloud data evenly distributed, that is, the point cloud can be made equally dense everywhere on the surface, and dense three-dimensional point cloud data can be obtained. Based on the dense three-dimensional point cloud data, the least square method is used to perform straight line fitting, and the correlation matrix and similarity matrix are calculated. The correlation matrix is calculated for the dense three-dimensional point cloud data according to the Gaussian kernel function, and the point cloud is mapped to different subspaces, where points approximately on a straight line belong to the same subspace. The correlation matrix is multiplied by its transposed matrix to obtain the similarity matrix, and the point clouds belonging to different subspaces are clustered. The clustering of the dense three-dimensional point cloud data is fitted with a line using the least square method to obtain the straight line parameters where the point cloud in each cluster of different categories is located, that is, the contour segment is obtained. Based on the contour segment, a constraint function is used to perform global fitting. Under the premise of considering the connectivity between the contour segments, the adjacent contour lines are perpendicular to each other, and the constraint function is used for global fitting to obtain the cross-sectional geometric contour. Based on the cross-sectional geometric contour, triangulation is performed using the Delaunay growing algorithm. The Delaunay growing algorithm is based on the Delaunay empty circle property, that is, the circumscribed circle of any triangle of the Delaunay triangulation does not contain any other points in the point set. The Delaunay triangulation is unique, that is, for a given plane point set, there is a unique Delaunay triangulation. Based on the Delaunay growing algorithm, a plane triangulated network is constructed using the cross-sectional geometric contour, and a spatial triangulated mesh model is obtained according to the topological link relationship of the points in the plane.
[0064] S14: Performing three-dimensional modeling of the intangible cultural heritage morphological product based on the modeling path and the spatial triangular mesh model to obtain a target three-dimensional model;
[0065] In the specific implementation process of the present invention, the three-dimensional modeling of the intangible cultural heritage morphological product is performed based on the modeling path and the spatial triangular mesh model to obtain the target three-dimensional model, including: eliminating the hanging edges and hanging points of the spatial triangular mesh model to obtain a new spatial triangular mesh model; the three-dimensional modeling of the intangible cultural heritage morphological product is performed based on the modeling path and the new spatial triangular mesh model to obtain the target three-dimensional model.
[0066] Specifically, dangling edges and dangling points are common forms of topological ambiguity in the model. Dangling edges refer to one or more connected edges that do not belong to any triangle in the model, and dangling points refer to vertices that do not belong to any edge. The spatial triangular mesh model needs to be processed for dangling edges and dangling points elimination, and the vertex array, triangle array and adjacent relationship array of each triangle in the spatial triangular mesh model are obtained. The topological units of the triangle array of each triangle are sequentially accessed, and the vertex coordinates are obtained in the vertex array according to the three vertex indexes of each triangle, and inserted into the newly constructed vertex array in a non-overlapping manner. The newly constructed vertex array is sequentially accessed, and the triangle index is written into the adjacent relationship array row corresponding to the vertex according to the three vertex indexes of each topological unit. All adjacent relationship arrays of the triangular mesh are checked, and the vertices corresponding to the rows without data in the adjacent relationship array are marked as unavailable, thereby completing the dangling edge and dangling point elimination processing and obtaining a new spatial triangular mesh model. Based on the modeling path and the new spatial triangular mesh model, three-dimensional modeling of intangible cultural heritage morphological products is performed, that is, the modeling path and the new spatial triangular mesh model are combined according to the modeling tool to obtain the target three-dimensional model.
[0067] S15: determining a three-dimensional animation rendering object based on the target three-dimensional model, and acquiring rendering parameters of the three-dimensional animation rendering object based on a renderer and a rendering rotation track;
[0068] In the specific implementation process of the present invention, the rendering parameters of the three-dimensional animation rendering object are obtained based on the renderer and the rendering rotation track, including: obtaining the rendering rotation track of the three-dimensional animation rendering object based on rendering requirements, and determining the stacking order and scaling degree of the three-dimensional animation rendering object based on the rendering rotation track; obtaining particle animation parameters and particle basic parameters based on a particle editor; defining a renderer object based on the three-dimensional animation rendering object, obtaining object rendering parameters of the renderer object, and generating a rendering color space based on the object rendering parameters; generating rendering parameters based on the stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space.
[0069] Specifically, a 3D animation rendering object is determined based on the target 3D model. The target 3D model can be each state of the Dongyi Palace Lantern. The 3D animation rendering object includes the production steps and characters of the Dongyi Palace Lantern that need to be displayed. The rendering rotation orbit of the 3D animation rendering object is obtained based on the rendering requirements. The rotation orbit can be understood as the rotation of the rendering object around a certain center distributed in an ellipse or circle. The rendering requirements may include the position displayed at each moment and the rendering orbit parameters, and the stacking order and scaling degree of the 3D animation rendering object are determined based on the rendering rotation orbit. The stacking order is used to characterize the upper and lower three-dimensional relationship of the rendering object in the stacking order. The distance between the 3D animation rendering object and the viewpoint is determined according to the rendering rotation orbit. The scaling degree and stacking order are determined according to the distance between the 3D animation rendering object and the viewpoint, so as to present the effects of near big and far small and mutual covering in reality, so that the displayed 3D rendering animation is closer to the actual 3D effect. Based on the particle editor, particle animation parameters and basic particle parameters are obtained, a three-dimensional animation rendering object is imported into the particle editor, animation parameter editing instructions and basic parameter editing instructions are obtained, and particle animation parameters are obtained using the particle editor based on the animation parameter editing instructions. The particle animation parameters include at least one of the number of animation characters, the initial size of the animation characters, and the ending size of the animation characters. Based on the basic parameter editing instructions, the particle editor is used to obtain basic particle parameters, and the basic particle parameters include at least one of the number of particles, the life cycle of particles, the initial size of particles, the ending size of particles, the rotation angle of particles, and the duration of particles. The particle parameters are the display effects of the animation, such as water flow, flame, and smoke. Based on the three-dimensional animation rendering object, a renderer object is defined, object rendering parameters of the renderer object are obtained, and a rendering color space is generated based on the object rendering parameters. The renderer object is each animation drawing of the three-dimensional animation rendering object. The object rendering parameters include rendering resolution, renderer type and anti-aliasing settings, etc. The spatial motion trajectory of the renderer object is obtained according to the object rendering parameters, and the position offset of each rendering point in the renderer object is calculated according to the spatial motion trajectory. According to the position offset of the rendering point, several color subspaces are rendered to obtain several rendered color subspaces, and several rendered color subspaces are superimposed according to a preset hierarchical structure to obtain a rendering color space. The rendering color space can enrich the diversity of rendering results, make the color of the animation rendering object closer to the actual situation, and provide a more realistic, artistic and rich visual effect. The rendering parameters are composed of the stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space.
[0070] S16: performing a simulated rendering simulation based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and optimizing the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters;
[0071] In the specific implementation process of the present invention, the simulation rendering is performed based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain the simulation rendering result, including: based on the Unreal Engine, using the rendering parameters to perform simulation rendering on the three-dimensional animation rendering object to obtain the simulation rendering result, and generating a simulation data file based on the simulation rendering result.
[0072] Specifically, a simulation rendering instruction is obtained, and the Unreal Engine simulates the rendering of the three-dimensional animation rendering object based on the simulation rendering instruction. The Unreal Engine uses a built-in physical engine to perform simulation rendering to obtain a simulation rendering result, and generates a simulation data file based on the simulation rendering result, that is, a simulation rendering data file is generated according to the simulation rendering result, and the simulation rendering data includes animation action, color, size, and artistic effect, etc. The rendering parameters are tuned based on the simulation rendering result, and the information in the generated simulation data file is compared with the preset expected value, and the rendering parameters are adjusted according to the comparison result to obtain optimized rendering parameters, so that the obtained optimized rendering parameters are more in line with the ideal animation rendering situation.
[0073] S17: Perform three-dimensional animation rendering processing on the intangible cultural heritage form product based on the optimized rendering parameters and the three-dimensional animation rendering object.
[0074] In the specific implementation process of the present invention, three-dimensional animation rendering processing of intangible cultural heritage form products is performed on the three-dimensional animation rendering object in the animation rendering software according to the optimized rendering parameters, so as to realize the three-dimensional animation of the production techniques and production products of the intangible cultural heritage form products.
[0075] In an embodiment of the present invention, a modeling path is generated based on two-dimensional slice plane data using modeling path nodes combined with a non-uniform rational B-spline method, and the modeling path can better reflect the complex shapes and curved surfaces in the intangible cultural heritage morphological products. Based on dense three-dimensional point cloud data, a cross-sectional geometric contour is generated using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric contour, so that the generated cross-sectional geometric contour and spatial triangular mesh model are more accurate, avoiding the interference of discrete noise points in the point cloud data. Three-dimensional modeling of intangible cultural heritage morphological products is performed based on the modeling path and the spatial triangular mesh model, so that the obtained three-dimensional model can be more in line with the actual intangible cultural heritage morphological products, and the edge contour and surface of the generated three-dimensional model are clearer. The rendering parameters of the three-dimensional animation rendering object are obtained based on the renderer and the rendering rotation track. The rendering parameters include stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space. More comprehensive and accurate rendering parameters can be obtained, so that the determined rendering parameters and the animation rendering object determined by the three-dimensional model have a higher matching degree. The rendering parameters are tuned based on the simulated rendering simulation results to generate optimized rendering parameters. The three-dimensional animation rendering processing of the intangible cultural heritage form product is performed based on the optimized rendering parameters in combination with the three-dimensional animation rendering object, so that the three-dimensional animation rendering of the intangible cultural heritage form product can achieve a more ideal effect, and realize the innovative transformation of the three-dimensional model of the intangible cultural heritage form product to the digital cultural product.
[0076] Embodiment 2
[0077] See also Figure 2 , Figure 2 : is a flow chart of a method for three-dimensional animation rendering of an intangible cultural heritage form product in another embodiment of the present invention, the method comprising:
[0078] S201: Acquire three-dimensional point cloud data of the intangible cultural heritage product based on 3D digital scanning technology, and pre-process the three-dimensional point cloud data to obtain pre-processed three-dimensional point cloud data;
[0079] S202: generating two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and constructing a modeling path based on the two-dimensional slice plane data;
[0080] S203: Acquire a plurality of triangular facets in the preprocessed three-dimensional point cloud data, and acquire the three-dimensional coordinates of the vertices of each triangular facet;
[0081] In the specific implementation process of the present invention, the pre-processed point cloud data is triangulated to obtain a number of triangular facets, and the three-dimensional coordinates of the vertices of each triangular facet are obtained based on a three-dimensional coordinate system.
[0082] S204: performing random sampling based on the three-dimensional coordinates of the vertices of each triangular face to obtain a number of random sampling points;
[0083] In the specific implementation process of the present invention, random sampling is performed based on the three-dimensional coordinates of the vertices of each triangular face, and the center of gravity of the triangular face is determined as a sampling point based on the three-dimensional coordinates of the vertices of each triangular face based on the Monte Carlo probability distribution method. The sampling point is used for cyclic random sampling until the number of multiple sampling points obtained is in a preset proportional relationship with the area of the triangular face, and a number of sampling points, that is, a number of random sampling points, are obtained.
[0084] S205: performing point cloud upsampling processing based on a number of random sampling points using an implicit function of an implicit surface to obtain dense three-dimensional point cloud data;
[0085] In the specific implementation process of the present invention, the implicit function of the implicit surface is used to perform point cloud upsampling processing based on a number of random sampling points. The implicit surface is used to illustrate the relationship satisfied by all points on the surface, and the implicit function is used to identify complex three-dimensional objects. The maximum gradient modulus of the implicit function in a preset bounded area is calculated, and the gradient vector is calculated based on the maximum gradient modulus using random sampling points. The plane is fitted using the weighted least squares method according to the gradient vector, and new sampling points are generated according to the fitting results until all random sampling points are processed, that is, by generating additional sampling points, the density of the original sparse point cloud is increased to a higher level. Due to the surface fitting, the surface of the point cloud can be smoothed, and the noise and irregularity of the shape can be reduced. The implicit function of the implicit surface can make the generated dense three-dimensional point cloud data evenly distributed, that is, the point cloud can be made equally dense everywhere on the surface, and dense three-dimensional point cloud data can be obtained.
[0086] S206: performing straight line fitting based on the dense three-dimensional point cloud data using the least square method to obtain contour segments, and performing global fitting based on the contour segments using a constraint function to obtain a cross-sectional geometric contour;
[0087] In the specific implementation process of the present invention, based on the dense three-dimensional point cloud data, the least square method is used to perform straight line fitting, and the correlation matrix and similarity matrix are calculated. The correlation matrix is calculated for the dense three-dimensional point cloud data according to the Gaussian kernel function, and the point cloud is mapped to different subspaces, where points approximately on a straight line belong to the same subspace, and the correlation matrix is multiplied by its transposed matrix to obtain the similarity matrix, and the point clouds belonging to different subspaces are clustered. The clustering of the dense three-dimensional point cloud data is fitted with a line using the least square method to obtain the straight line parameters where the point cloud in each different category of clusters is located, that is, the contour segment is obtained. Based on the contour segment, a constraint function is used to perform global fitting. Under the premise of considering the connectivity between the contour segments, the adjacent contour lines are perpendicular to each other, and the constraint function is used for global fitting to obtain the cross-sectional geometric contour.
[0088] S207: performing triangulation based on the cross-sectional geometric profile using a Delaunay growth algorithm to obtain a spatial triangular mesh model;
[0089] In the specific implementation process of the present invention, the Delaunay growing algorithm is used to perform triangulation based on the cross-sectional geometric contour. The Delaunay growing algorithm is based on the Delaunay empty circle property, that is, the circumscribed circle of any triangle of the Delaunay triangulation does not contain any other points in the point set. The Delaunay triangulation is unique, that is, for a given plane point set, there is a unique Delaunay triangulation. A plane triangulated network is constructed based on the Delaunay growing algorithm using the cross-sectional geometric contour, and a spatial triangulated mesh model is obtained according to the topological link relationship of the points in the plane.
[0090] S208: Performing three-dimensional modeling of the intangible cultural heritage morphological product based on the modeling path and the spatial triangular mesh model to obtain a target three-dimensional model;
[0091] S209: determining a 3D animation rendering object based on the target 3D model, acquiring a rendering rotation track of the 3D animation rendering object based on a rendering requirement, and determining a stacking order and a scaling degree of the 3D animation rendering object based on the rendering rotation track;
[0092] In the specific implementation process of the present invention, a three-dimensional animation rendering object is determined based on the target three-dimensional model. The target three-dimensional model can be each state of the Dongyi Palace Lantern. The three-dimensional animation rendering object includes the production steps and characters of the Dongyi Palace Lantern that need to be displayed. The rendering rotation orbit of the three-dimensional animation rendering object is obtained based on the rendering requirements. The rotation orbit can be understood as the rotation of the rendering object around a certain center distributed in an ellipse or circle. The rendering requirements may include the position displayed at each moment and the rendering orbit parameters, and the stacking order and scaling degree of the three-dimensional animation rendering object are determined based on the rendering rotation orbit. The stacking order is used to characterize the upper and lower three-dimensional relationship of the rendering object in the stacking order. The distance between the three-dimensional animation rendering object and the viewpoint is determined according to the rendering rotation orbit. The scaling degree and stacking order are determined according to the distance between the three-dimensional animation rendering object and the viewpoint, so as to present the effects of near big and far small and mutual covering in reality, so that the displayed three-dimensional rendering animation is closer to the actual three-dimensional effect.
[0093] S210: Obtain particle animation parameters and particle basic parameters based on the particle editor;
[0094] In the specific implementation process of the present invention, particle animation parameters and basic particle parameters are obtained based on a particle editor, a three-dimensional animation rendering object is imported into the particle editor, animation parameter editing instructions and basic parameter editing instructions are obtained, and particle animation parameters are obtained using the particle editor based on the animation parameter editing instructions. The particle animation parameters include at least one of the number of animation characters, the initial size of the animation characters, and the ending size of the animation characters. Based on the basic parameter editing instructions, the particle basic parameters are obtained using the particle editor. The particle basic parameters include at least one of the number of particles, the life cycle of particles, the initial size of particles, the ending size of particles, the rotation angle of particles, and the duration of particles. The particle parameters are the display effects of the animation, such as water flow, flame, and smoke.
[0095] S211: defining a renderer object based on the three-dimensional animation rendering object, acquiring object rendering parameters of the renderer object, and generating a rendering color space based on the object rendering parameters;
[0096] In the specific implementation process of the present invention, a renderer object is defined based on the three-dimensional animation rendering object, object rendering parameters of the renderer object are obtained, and a rendering color space is generated based on the object rendering parameters. The renderer object is each animation drawing of the three-dimensional animation rendering object. The object rendering parameters include rendering resolution, renderer type and anti-aliasing settings, etc. The spatial motion trajectory of the renderer object is obtained according to the object rendering parameters, and the position offset of each rendering point in the renderer object is calculated according to the spatial motion trajectory. According to the position offset of the rendering point, several color subspaces are rendered to obtain several rendered color subspaces, and the several rendered color subspaces are superimposed according to a preset hierarchical structure to obtain a rendering color space. The rendering color space can enrich the diversity of rendering results, make the color of the animation rendering object closer to the actual situation, and provide more realistic, artistic and rich visual effects.
[0097] S212: generating rendering parameters based on the stacking order, the scaling degree, the particle animation parameters, the particle basic parameters, the object rendering parameters and the rendering color space;
[0098] S213: performing a simulated rendering simulation based on the rendering parameters and the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and optimizing the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters;
[0099] S214: Perform three-dimensional animation rendering processing on the intangible cultural heritage form product based on the optimized rendering parameters and the three-dimensional animation rendering object.
[0100] In an embodiment of the present invention, a modeling path is generated based on two-dimensional slice plane data using modeling path nodes combined with a non-uniform rational B-spline method, and the modeling path can better reflect the complex shapes and curved surfaces in the intangible cultural heritage morphological products. Based on dense three-dimensional point cloud data, a cross-sectional geometric contour is generated using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric contour, so that the generated cross-sectional geometric contour and spatial triangular mesh model are more accurate, avoiding the interference of discrete noise points in the point cloud data. Three-dimensional modeling of intangible cultural heritage morphological products is performed based on the modeling path and the spatial triangular mesh model, so that the obtained three-dimensional model can be more in line with the actual intangible cultural heritage morphological products, and the edge contour and surface of the generated three-dimensional model are clearer. The rendering parameters of the three-dimensional animation rendering object are obtained based on the renderer and the rendering rotation track. The rendering parameters include stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space. More comprehensive and accurate rendering parameters can be obtained, so that the determined rendering parameters and the animation rendering object determined by the three-dimensional model have a higher matching degree. The rendering parameters are tuned based on the simulated rendering simulation results to generate optimized rendering parameters. The three-dimensional animation rendering processing of the intangible cultural heritage form product is performed based on the optimized rendering parameters in combination with the three-dimensional animation rendering object, so that the three-dimensional animation rendering of the intangible cultural heritage form product can achieve a more ideal effect, and realize the innovative transformation of the three-dimensional model of the intangible cultural heritage form product to the digital cultural product.
[0101] Embodiment 3
[0102] See also Figure 3 , Figure 3 : is a schematic diagram of the structure of a device for three-dimensional animation rendering of an intangible cultural heritage product in an embodiment of the present invention, the device comprising:
[0103] The three-dimensional point cloud data preprocessing module 21 is used to obtain the three-dimensional point cloud data of the intangible cultural heritage morphological product based on the 3D digital scanning technology, and preprocess the three-dimensional point cloud data to obtain the preprocessed three-dimensional point cloud data;
[0104] A modeling path construction module 22 is used to generate two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and to construct a modeling path based on the two-dimensional slice plane data;
[0105] The spatial triangular mesh model construction module 23 is used to perform dense sampling processing on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, generate a cross-sectional geometric profile based on the dense three-dimensional point cloud data by using constraint fitting, and construct a spatial triangular mesh model based on the cross-sectional geometric profile;
[0106] 3D modeling module 24: used for performing 3D modeling of the intangible cultural heritage morphological product based on the modeling path and the spatial triangular mesh model to obtain a target 3D model;
[0107] A rendering parameter acquisition module 25 is used to determine a 3D animation rendering object based on the target 3D model, and to acquire rendering parameters of the 3D animation rendering object based on a renderer and a rendering rotation track;
[0108] The rendering parameter tuning module 26 is used to perform a simulated rendering simulation based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and to tune the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters;
[0109] The three-dimensional animation rendering module 27 is used to perform three-dimensional animation rendering processing of the intangible cultural heritage form product based on the optimized rendering parameters and the three-dimensional animation rendering object.
[0110] In the specific implementation process of the present invention, the specific implementation method of the device item can refer to the implementation method of the above-mentioned method item, which will not be repeated here.
[0111] In an embodiment of the present invention, a modeling path is generated based on two-dimensional slice plane data using modeling path nodes combined with a non-uniform rational B-spline method, and the modeling path can better reflect the complex shapes and curved surfaces in the intangible cultural heritage morphological products. Based on dense three-dimensional point cloud data, a cross-sectional geometric contour is generated using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric contour, so that the generated cross-sectional geometric contour and spatial triangular mesh model are more accurate, avoiding the interference of discrete noise points in the point cloud data. Three-dimensional modeling of intangible cultural heritage morphological products is performed based on the modeling path and the spatial triangular mesh model, so that the obtained three-dimensional model can be more in line with the actual intangible cultural heritage morphological products, and the edge contour and surface of the generated three-dimensional model are clearer. The rendering parameters of the three-dimensional animation rendering object are obtained based on the renderer and the rendering rotation track. The rendering parameters include stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space. More comprehensive and accurate rendering parameters can be obtained, so that the determined rendering parameters and the animation rendering object determined by the three-dimensional model have a higher matching degree. The rendering parameters are tuned based on the simulated rendering simulation results to generate optimized rendering parameters. The three-dimensional animation rendering processing of the intangible cultural heritage form product is performed based on the optimized rendering parameters in combination with the three-dimensional animation rendering object, so that the three-dimensional animation rendering of the intangible cultural heritage form product can achieve a more ideal effect, and realize the innovative transformation of the three-dimensional model of the intangible cultural heritage form product to the digital cultural product.
[0112] A computer-readable storage medium provided by an embodiment of the present invention stores a computer program on the computer-readable storage medium, and when the program is executed by a processor, a method for three-dimensional animation rendering of an intangible cultural heritage form product of any one of the above embodiments is implemented. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0113] Embodiment 4
[0114] See also Figure 4 , Figure 4 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention.
[0115] The embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, the electronic device includes a memory 31, a processor 33, and a computer program 32 stored in the memory 31 and executable on the processor 33. Those skilled in the art will appreciate that Figure 3The electronic device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 31 can be used to store the computer program 32 and various functional modules, and the processor 33 runs the computer program 32 stored in the memory 31, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory can include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The processor 33 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general processor may be a microprocessor, a single chip microcomputer or the processor 33 may also be any conventional processor, etc. The processor and memory disclosed in the present invention include but are not limited to these types of processors and memories. The processor and memory disclosed in the present invention are only examples and not limitations.
[0116] As an embodiment, the electronic device includes: one or more processors 33, a memory 31, and one or more computer programs 32, wherein the one or more computer programs 32 are stored in the memory 31 and are configured to be executed by the one or more processors 33, and the one or more computer programs 32 are configured to execute the method for three-dimensional animation rendering of the intangible cultural heritage form product in any of the above-mentioned embodiments. For the specific implementation process, please refer to the above-mentioned embodiments and will not be repeated here.
[0117] In an embodiment of the present invention, a modeling path is generated based on two-dimensional slice plane data using modeling path nodes combined with a non-uniform rational B-spline method, and the modeling path can better reflect the complex shapes and curved surfaces in the intangible cultural heritage morphological products. Based on dense three-dimensional point cloud data, a cross-sectional geometric contour is generated using constraint fitting, and a spatial triangular mesh model is constructed based on the cross-sectional geometric contour, so that the generated cross-sectional geometric contour and spatial triangular mesh model are more accurate, avoiding the interference of discrete noise points in the point cloud data. Three-dimensional modeling of intangible cultural heritage morphological products is performed based on the modeling path and the spatial triangular mesh model, so that the obtained three-dimensional model can be more in line with the actual intangible cultural heritage morphological products, and the edge contour and surface of the generated three-dimensional model are clearer. The rendering parameters of the three-dimensional animation rendering object are obtained based on the renderer and the rendering rotation track. The rendering parameters include stacking order, scaling degree, particle animation parameters, particle basic parameters, object rendering parameters and rendering color space. More comprehensive and accurate rendering parameters can be obtained, so that the determined rendering parameters and the animation rendering object determined by the three-dimensional model have a higher matching degree. The rendering parameters are tuned based on the simulated rendering simulation results to generate optimized rendering parameters. The three-dimensional animation rendering processing of the intangible cultural heritage form product is performed based on the optimized rendering parameters in combination with the three-dimensional animation rendering object, so that the three-dimensional animation rendering of the intangible cultural heritage form product can achieve a more ideal effect, and realize the innovative transformation of the three-dimensional model of the intangible cultural heritage form product to the digital cultural product.
[0118] In addition, the above is a detailed introduction to the method and related equipment for three-dimensional animation rendering of an intangible cultural heritage product provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for three-dimensional animation rendering of intangible cultural heritage products, characterized in that: The method comprises: Acquire three-dimensional point cloud data of the intangible cultural heritage product based on 3D digital scanning technology, and pre-process the three-dimensional point cloud data to obtain pre-processed three-dimensional point cloud data; Generate two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and construct a modeling path based on the two-dimensional slice plane data; Performing dense sampling processing on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, generating a cross-sectional geometric profile based on the dense three-dimensional point cloud data by using constraint fitting, and constructing a spatial triangular mesh model based on the cross-sectional geometric profile; Based on the modeling path and the spatial triangular mesh model, three-dimensional modeling of the intangible cultural heritage morphology product is performed to obtain a target three-dimensional model; Determine a three-dimensional animation rendering object based on the target three-dimensional model, and obtain rendering parameters of the three-dimensional animation rendering object based on a renderer and a rendering rotation track; Performing a simulated rendering simulation based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and optimizing the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters; Performing three-dimensional animation rendering processing on the intangible cultural heritage form product based on the optimized rendering parameters and the three-dimensional animation rendering object; The method of generating two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data and constructing a modeling path based on the two-dimensional slice plane data includes: slicing the preprocessed three-dimensional point cloud data to obtain two-dimensional slice plane data; setting a Hamiltonian path, and obtaining modeling path nodes based on the Hamiltonian path combined with a preset decomposition diagram; and generating a modeling path based on the two-dimensional slice plane data using the modeling path nodes combined with a non-uniform rational B-spline method; The method of generating a cross-sectional geometric contour based on the dense three-dimensional point cloud data by using constraint fitting, and constructing a spatial triangular mesh model based on the cross-sectional geometric contour, includes: performing straight line fitting based on the dense three-dimensional point cloud data by using the least squares method to obtain contour segments, and performing global fitting based on the contour segments by using constraint functions to obtain the cross-sectional geometric contour; and performing triangulation based on the cross-sectional geometric contour by using the Delaunay growth algorithm to obtain the spatial triangular mesh model.
2. The method for three-dimensional animation rendering of intangible cultural heritage products according to claim 1, characterized in that: The preprocessing of the three-dimensional point cloud data to obtain the preprocessed three-dimensional point cloud data includes: Performing registration processing on the three-dimensional point cloud data to obtain three-dimensional point cloud data after registration processing; Performing denoising on the three-dimensional point cloud data after the registration process to obtain denoised three-dimensional point cloud data; The denoised three-dimensional point cloud data is streamlined to obtain pre-processed three-dimensional point cloud data.
3. The method for three-dimensional animation rendering of intangible cultural heritage morphological products according to claim 1, characterized in that: The dense sampling process is performed on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, including: Obtaining a number of triangular facets in the preprocessed three-dimensional point cloud data, and obtaining the three-dimensional coordinates of the vertices of each triangular facet; Random sampling is performed based on the three-dimensional coordinates of the vertices of each triangle to obtain a number of random sampling points; Based on several random sampling points, the implicit function of the implicit surface is used to perform point cloud upsampling processing to obtain dense three-dimensional point cloud data.
4. The method for three-dimensional animation rendering of intangible cultural heritage morphological products according to claim 1, characterized in that: The three-dimensional modeling of the intangible cultural heritage morphological product based on the modeling path and the spatial triangular mesh model to obtain the target three-dimensional model includes: Eliminating the hanging edges and hanging points of the spatial triangular mesh model to obtain a new spatial triangular mesh model; Based on the modeling path and the new spatial triangular mesh model, three-dimensional modeling of the intangible cultural heritage morphological product is performed to obtain a target three-dimensional model.
5. The method for three-dimensional animation rendering of intangible cultural heritage products according to claim 1, characterized in that: The step of obtaining the rendering parameters of the three-dimensional animation rendering object based on the renderer and the rendering rotation track includes: Acquire a rendering rotation track of the 3D animation rendering object based on rendering requirements, and determine a stacking order and a scaling degree of the 3D animation rendering object based on the rendering rotation track; Get particle animation parameters and basic particle parameters based on particle editor; Defining a renderer object based on the three-dimensional animation rendering object, acquiring object rendering parameters of the renderer object, and generating a rendering color space based on the object rendering parameters; Rendering parameters are generated based on the stacking order, the scaling degree, the particle animation parameters, the particle basic parameters, the object rendering parameters and the rendering color space.
6. The method for three-dimensional animation rendering of intangible cultural heritage products according to claim 1, characterized in that: The performing simulation rendering based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulation rendering result includes: Based on the Unreal Engine, the three-dimensional animation rendering object is simulated by using the rendering parameters to obtain a simulated rendering result, and a simulation data file is generated based on the simulated rendering result.
7. A device for three-dimensional animation rendering of intangible cultural heritage products, characterized in that: The device comprises: 3D point cloud data preprocessing module: used to obtain 3D point cloud data of intangible cultural heritage products based on 3D digital scanning technology, and preprocess the 3D point cloud data to obtain preprocessed 3D point cloud data; A modeling path construction module: used to generate two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data, and to construct a modeling path based on the two-dimensional slice plane data; A spatial triangular mesh model construction module is used to perform dense sampling processing on the preprocessed three-dimensional point cloud data to obtain dense three-dimensional point cloud data, generate a cross-sectional geometric profile based on the dense three-dimensional point cloud data by using constraint fitting, and construct a spatial triangular mesh model based on the cross-sectional geometric profile; Three-dimensional modeling module: used for performing three-dimensional modeling of intangible cultural heritage morphological products based on the modeling path and the spatial triangular mesh model to obtain a target three-dimensional model; A rendering parameter acquisition module: used for determining a three-dimensional animation rendering object based on the target three-dimensional model, and acquiring rendering parameters of the three-dimensional animation rendering object based on a renderer and a rendering rotation track; A rendering parameter tuning module: used to perform a simulated rendering simulation based on the rendering parameters in combination with the three-dimensional animation rendering object to obtain a simulated rendering simulation result, and to tune the rendering parameters based on the simulated rendering simulation result to obtain optimized rendering parameters; 3D animation rendering module: used for performing 3D animation rendering processing of the intangible cultural heritage morphological product based on the optimized rendering parameters and the 3D animation rendering object; The method of generating two-dimensional slice plane data based on the preprocessed three-dimensional point cloud data and constructing a modeling path based on the two-dimensional slice plane data includes: slicing the preprocessed three-dimensional point cloud data to obtain two-dimensional slice plane data; setting a Hamiltonian path, and obtaining modeling path nodes based on the Hamiltonian path combined with a preset decomposition diagram; and generating a modeling path based on the two-dimensional slice plane data using the modeling path nodes combined with a non-uniform rational B-spline method; The method of generating a cross-sectional geometric contour based on the dense three-dimensional point cloud data by using constraint fitting, and constructing a spatial triangular mesh model based on the cross-sectional geometric contour, includes: performing straight line fitting based on the dense three-dimensional point cloud data by using the least squares method to obtain contour segments, and performing global fitting based on the contour segments by using constraint functions to obtain the cross-sectional geometric contour; and performing triangulation based on the cross-sectional geometric contour by using the Delaunay growth algorithm to obtain the spatial triangular mesh model.
8. An electronic device, comprising a processor and a memory, characterized in that: The memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the method for three-dimensional animation rendering of intangible cultural heritage products as described in any one of claims 1 to claim 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method for three-dimensional animation rendering of an intangible cultural heritage form product as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Object rendering method and device
CN111476870A
Animation generation method, animation playing method and related devices
CN112037311A