Complex model lightweight method and application thereof in cruise ship decoration engineering modeling

Through edge folding algorithm and grouping rendering technology based on geometric error, the problems of rendering performance and smoothness of three-dimensional models of large cruise ships are solved, and efficient grid reduction and visual effects are achieved, which is suitable for modeling of large cruise ship decoration projects.

CN119066934AInactive Publication Date: 2024-12-03SHANGHAI BUILDING DECORATION ENG GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411553910.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2024-12-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Due to the spatial complexity and high-mode grid count, the three-dimensional visual model of large cruise ships has extreme challenges in computing performance, which cannot achieve smooth interactive rendering, and the smoothness of the surface model after surface reduction is affected, which cannot meet application needs.

Method used

The edge folding algorithm based on geometric error is used to reduce the surface of the model, combined with grouping rendering and normal map mapping, and quadratic grouping is performed by calculating the angle of the normal direction of the continuous grid, and PBR physical rendering technology is used to achieve smooth and sum of visual effects. Real restore.

Benefits of technology

It effectively reduces the number of grids, reduces the computer performance overhead, and retains the visual effect of high-modes, real-time rendering and good visual effect of the three-dimensional visual model of large cruise ships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066934A_ABST
    Figure CN119066934A_ABST
Patent Text Reader

Abstract

The invention discloses a complex model lightweight method and application of the complex model lightweight method in cruise ship decoration engineering modeling. According to the complex model lightweight method, the normal chartlet of high-modulus details is extracted, then surface reduction is implemented through the edge folding algorithm based on geometric errors, the algorithm execution efficiency is high, the number of grids is greatly reduced while the details are reserved, and then through unique grouping rendering and mapping of the normal chartlet of the original model, the weight of the complex model is reduced. And the visual effect of the grid after surface reduction is enhanced. The method is particularly suitable for modeling of large cruise ship decoration engineering so as to support a good visual effect of real-time rendering of a large cruise ship three-dimensional visual model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional visualization construction, and more specifically, to a complex model lightweighting method and its application in cruise ship decoration engineering modeling. Background Art

[0002] With the help of 3D visualization technology, the construction of simulated scenes for on-site construction can be completed under conditions that are closest to the actual construction site conditions, so that the overall on-site environment during the construction of the building project can be planned and arranged more efficiently, and in the process of dynamic restoration, the momentum change conditions of materials and equipment can be supplemented to promote the optimization management of the project and maintain the rationality of the construction operation. The premise for the production of 3D visualization construction simulation animation is to establish an engineering model.

[0003] For a large cruise ship, due to the complex internal and external space of the cruise ship, the multi-functional, multi-block, staggered and cross-functional space partitions, and the complex personnel movement lines, in order to optimize the plane space and three-dimensional space layout, it is necessary to simulate the internal space in the early stage of construction. H1508 is the first large cruise ship made in China. The functional partition models, professional models, and hull structure models of the H1508 cruise ship are particularly large in volume, with more than 25 million model parts, more than 20,000 supporting equipment models, and 136 model systems. In addition, the number of curved surfaces of the cruise ship structure, shape, and finished surface is beyond imagination. The number of Mesh grids in the overall model is in the billions. Such high-modulus operation needs to challenge the performance limit of high-configuration computers, and it is impossible to smoothly deepen the application of the model. For example, when the interactive cruise ship high-modulus visualization program is running on the computer, the frame rate of the picture cannot meet the smoothness requirements of real-time rendering. Therefore, the lightweight processing of high-modulus is a technical difficulty that needs to be overcome urgently. However, after the direct reduction of the surface of each area model of the cruise ship, the number of model wiring segments involved in the surface was reduced, which seriously affected the smoothness of the surface model. The visualization effect of the surface model could not meet the final application requirements. How to balance the final visualization effect and performance overhead of the high-poly model is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the above-mentioned defects of the prior art, the present invention provides a complex model lightweight method and its application in the modeling of cruise ship decoration engineering. The surface reduction is implemented by an edge folding algorithm based on geometric errors. The algorithm has high execution efficiency, which can significantly reduce the number of meshes while retaining details. The visual effect of the mesh after surface reduction is enhanced through unique grouping rendering and mapping of the original model normal map. In addition, the present invention is particularly suitable for the modeling of large cruise ship decoration engineering to support the good visual effect of real-time rendering of large cruise ship three-dimensional visualization models.

[0005] To achieve the above object, on the one hand, the present invention provides a method for lightweighting a complex model, comprising the following steps: Step S1, extracting the normal map of all details of the high model; Step S2, analyzing the vertices and geometric topological structure of the model; Step S3, based on the vertex analysis results and the edge contour of the original mesh, the high-poly model is calculated using an edge folding algorithm based on geometric errors to obtain a lightweight model; Step S4, grouping the grids twice by calculating the normal direction angles of the continuous grids: the continuous grids with normal angles less than 20° are grouped into the same group; Step S5, performing lighting and shadow rendering and coloring with the same sampling on the grids of the same group to achieve a smooth arc transition visual effect; Step S6: Map the normal map obtained in step S1 to the lightweight model.

[0006] Furthermore, the edge folding algorithm in step S3 is based on the positioning principle of the tangent coordinate system and adopts a quadratic error metric algorithm to perform face reduction optimization on the model: the error quadratic matrix of each vertex is calculated, a priority queue is established, and the queues are sorted by error metric, and the positions of new vertices are accurately determined by edge folding based on the tangent coordinate system.

[0007] Furthermore, in step S3, the edge folding error is defined as the sum of squares of distances from the new vertex to a set of planes, where the set of planes is the planes of the original model associated with the two vertices of the folded edge.

[0008] Furthermore, the step S5 uses PBR physical rendering technology and combines grid grouping to restore the real scene effect. PBR (Physically Based Rendering) is a physical basic rendering technology that aims to achieve a more realistic rendering effect by simulating real lighting and material properties.

[0009] Furthermore, in step S6, the model is first UV-unwrapped and texture coordinates are mapped, and then the normal map is added to the Bump channel of the PBR material. The Bump channel is a texture processing technology, specifically a bump mapping technology, which refers to adding a normal map or a height map to the material channel to enhance the detail of the object surface and make it appear bumpy under light.

[0010] On the other hand, the present invention provides an application of a complex model lightweighting method in the modeling of a cruise ship decoration project, and adopts the above-mentioned complex model lightweighting method to perform three-dimensional visual modeling of the cruise ship decoration project.

[0011] Compared with the prior art, the present invention has the following technical effects: (1) The present invention adopts an edge collapse algorithm based on geometric errors to implement face reduction. The algorithm has high execution efficiency and can significantly reduce the number of grids while retaining details.

[0012] (2) The present invention performs secondary grouping of meshes by calculating the normal direction angles of continuous meshes and rendering them according to the groups, thereby effectively solving the problem of polygonal broken lines in the visual effect of the meshes after face reduction. The present invention can significantly reduce the number of high-poly faces while visually retaining the visual effect of the high-poly model and greatly reduce computer performance overhead.

[0013] (3) The present invention combines group rendering and normal map baking to lightweight the model while retaining the high-poly visual effects as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 Schematic diagram of the process of a complex model lightweight method in one embodiment of the present invention.

[0015] Figure 2 Schematic diagram of an application example of the same space model of a cruise ship before and after subtraction in one embodiment of the present invention.

[0016] Figure 3 This is a schematic diagram of an application example before and after group rendering of the same space model of a cruise ship in one embodiment of the present invention.

[0017] Figure 4 This is a rendering of a real-time rendering of a three-dimensional visualization model of an atrium of a lightweight cruise ship in one embodiment of the present invention.

[0018] Figure 5 This is a rendering of a real-time rendering of a lightweight cruise ship restaurant three-dimensional visualization model in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0020] In the following detailed description, many specific details are set forth to provide a more thorough understanding of the present invention. However, it is obvious to those skilled in the art that well-known algorithms and models are not shown in detail to avoid obscuring the subject matter of the present invention. Example

[0021] See also Figure 1 This embodiment provides a method for lightweighting a complex model, comprising the following steps: Step S1, extracting the normal map of all details of the high model; Step S2, analyzing the vertices and geometric topological structure of the model; Step S3, based on the vertex analysis results and the edge contour of the original mesh, the high-poly model is calculated using an edge folding algorithm based on geometric errors to obtain a lightweight model; Step S4, grouping the grids twice by calculating the normal direction angles of the continuous grids: the continuous grids with normal angles less than 20° are grouped into the same group; Step S5, performing lighting and shadow rendering and coloring with the same sampling on the meshes of the same group, so as to achieve a smooth arc transition visual effect, so that the model with low polygon count can achieve the purpose of visual arc; Step S6: Map the normal map obtained in step S1 to the lightweight model.

[0022] The following takes the high-poly model of the atrium of the H1508 cruise ship as an example to illustrate the implementation of the lightweight method of complex models.

[0023] First, extract the normal map of all the details of the atrium high model. More specifically, use Unity, UE5 and other development engines to bake the details of the high polygon model to generate the corresponding normal map; after obtaining the qualified normal map, paste the normal map into the corresponding map channel according to the different types of 3D software used by the user.

[0024] Secondly, the vertex and geometric topological structure of the high-poly model are analyzed, and based on the vertex analysis results and the edge contour of the original mesh, the high-poly model is calculated using an edge folding algorithm based on geometric errors.

[0025] The basic idea of ​​the edge collapse algorithm is to use the characteristics of geometric elements to delete mesh vertices and simplify the triangle mesh. After the edges of the triangles are collapsed during each mesh simplification operation, the triangle mesh can be simplified to the desired degree. The edge collapse algorithm must set appropriate constraints, otherwise the simplified result of the triangle mesh may not be satisfactory. More specifically, the edge collapse collapses the two vertices v of the collapsed edge. i and v j Merge into one vertex and determine the new vertex v according to the corresponding algorithm n position, and v i and v j The topological information of the new vertex v is updated n After folding, the two surfaces adjacent to the folded edge, the two endpoints of the folded edge and the three edges are usually deleted. The folding order of the edges will affect the shape of the simplified mesh, so it is particularly important to choose a suitable error metric to determine the folding sequence of the edges. In other words, in the process of simplifying the triangular mesh model, an error metric should be selected to measure the difference between the input model and the output model, and the final error of the simplified triangular mesh should be within the allowed error range.

[0026] The edge folding algorithm of this example is preferably based on the positioning principle of the tangent coordinate system, and adopts the quadratic error metric algorithm in the prior art, that is, calculating the error quadratic matrix of each vertex, establishing a priority queue, sorting by error metric, and accurately determining the position of the new vertex through edge folding based on the tangent coordinate system. The quadratic error metric algorithm defines the error of edge folding as the sum of the squares of the distances from the new vertex to a set of planes, which are the planes of the original model associated with the two vertices of the folded edge. This metric based on geometric error provides a constraint for the lightweighting of the model, ensuring that the simplified model does not deviate from the geometric form of the original model. At the same time, the amount of calculation is small and the algorithm execution efficiency is high. This method is particularly suitable for scenarios with high requirements for model accuracy, such as cruise applications.

[0027] Then, a priority queue is established, sorted by error metric, and an appropriate maximum geometric error threshold is set to effectively control the error introduced in the face reduction process and ensure the geometric accuracy of the model. Finally, the position of the new vertex is accurately determined by edge folding based on the tangent coordinate system.

[0028] See also Figure 2 After smoothing and simplifying the triangular mesh in the atrium bar area, the noise on the model surface is almost gone, the model is simplified, and the basic shape of the model has not changed. However, after directly reducing the surface of the cruise ship's location models, the number of model wiring segments involved in the surface is reduced. For some arc structures, due to the significant reduction of line segments, the arc structure will visually appear to be a polyline polygon structure, which affects the final shading and rendering effects, resulting in the visualization of the surface model completely unable to meet the final application requirements. Therefore, appropriate smoothing operations are required. The general triangular mesh model smoothing adopts the Laplace smoothing algorithm. The algorithm is based on the idea of ​​moving each vertex of the triangular mesh to the centroid position of its neighborhood. When the number of eigenvalues ​​is too large, the smoothing time and space consumption of the algorithm will also increase significantly. Therefore, it is necessary to propose a better smoothing algorithm.

[0029] We group the meshes twice by calculating the normal angle of continuous meshes: continuous meshes with normal angles less than 20° are grouped together. Then, the same sampling lighting and shadow rendering is performed on the meshes in the same group during shading and rendering, so as to achieve a smooth arc transition effect visually and reduce the polygonal polyline visual effect. For example, when using 3Dmax to handle this process, two adjacent polygons that meet the normal angle condition are assigned to the same Smooth Group, and the edge between them will appear smooth when rendered; if they belong to different SmoothGroups, the edge between them will appear as a sharp boundary, forming an obvious hard edge. See Figure 3In the cruise ship bar area, Smooth Group re-smoothed and analyzed the high-poly model after face reduction, effectively solving the polygonal folding line feeling of the mesh after face reduction. Therefore, while greatly reducing the number of high-poly faces, the visual effect of the high-poly model is retained visually, and the computer performance overhead is greatly reduced.

[0030] In previous land projects, after winning the bid, the construction party will generally receive a material list, which includes detailed information about the material design and high-resolution material maps, and complete the material mapping in the 3D animation based on this information. However, for cruise ship projects, due to different work processes, it is difficult for us to obtain high-resolution material maps in advance; at the same time, in order to meet the high simulation of the 3D simulation of the cruise ship interior, as a more preferred technical solution, we collect environmental data on the day of 3D laser scanning to determine the direction, angle, color temperature and hue of the ambient light and the parallel light of the sun; the above rendering uses PBR (Physically Based Rendering) physical rendering technology, combined with grid grouping to restore the real on-site effect.

[0031] Finally, the extracted high-poly normal map is mapped to the lightweight model to obtain a lightweight model with excellent visual effects. More specifically, the model is first UV-unwrapped and texture coordinates are mapped, and then the normal map is added to the Bump channel of the PBR material, so that the lightweight model has the details of the high-poly model and achieves the best visual effects with the lowest performance cost.

[0032] The interactive cruise ship interior visualization model processed using the above-mentioned complex model lightweight method runs more smoothly on the computer. Figure 4 and Figure 5 This is a real-time rendering of a lightweight 3D visualization model of a part of the cruise ship's interior. The resulting lightweight model can greatly improve the frame rate of the picture, and the visual effect is good when running real-time rendering.

[0033] In summary, the present invention provides a complex model lightweight method and its application in cruise ship decoration engineering modeling. The complex model lightweight method first extracts the normal map of high-polygon details, and then implements face reduction through an edge folding algorithm based on geometric errors. The algorithm has high execution efficiency, and can significantly reduce the number of meshes while retaining details. Then, through unique grouping rendering and mapping of the original model normal map, the visual effect of the mesh after face reduction is enhanced. The present invention is particularly suitable for the modeling of large cruise ship decoration engineering.

[0034] Those skilled in the art should understand that those skilled in the art can implement variations by combining the prior art and the above embodiments, which will not be described in detail here. Such variations do not affect the essential content of the present invention, and will not be described in detail here.

[0035] The above describes the preferred embodiments of the present invention. It should be understood that the present invention is not limited to the above-mentioned specific embodiments, and the devices and structures that are not described in detail should be understood to be implemented in a common manner in the art; any technician familiar with the art can use the above-disclosed methods and technical contents to make many possible changes and modifications to the technical solutions of the present invention without departing from the scope of the technical solutions of the present invention, or modify them into equivalent embodiments of equivalent changes, which does not affect the essential content of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention are still within the scope of protection of the technical solutions of the present invention.

[0036] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in conjunction with this embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed 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 be beyond the scope of this application.

Claims

1. A method for lightweighting a complex model, characterized in that: The following steps are involved: Step S1, extracting normal maps of all details of the high model; Step S2, analyzing the vertices and geometric topological structure of the model; Step S3, based on the vertex analysis results and the edge contour of the original mesh, the high-poly model is calculated using an edge folding algorithm based on geometric errors to obtain a lightweight model; Step S4, the grids are secondary grouped by calculating the normal direction angles of continuous grids: the continuous grids whose normal angles are less than 20° are grouped into the same group; Step S5, performing lighting and shadow rendering and coloring with the same sampling on the grids of the same group to achieve a smooth arc transition visual effect; Step S6: Map the normal map obtained in step S1 to the lightweight model.

2. A complex model lightweight method according to claim 1, characterized in that: The edge folding algorithm in step S3 is based on the positioning principle of the tangent coordinate system and adopts a quadratic error metric algorithm to perform face reduction optimization on the model: the error quadratic matrix of each vertex is calculated, a priority queue is established, and the order is sorted by the error metric, and the position of the new vertex is accurately determined by edge folding based on the tangent coordinate system.

3. A complex model lightweight method according to claim 2, characterized in that: In step S3, the edge folding error is defined as the sum of squares of distances from the new vertex to a set of planes, where the set of planes is the planes of the original model associated with the two vertices of the folded edge.

4. A complex model lightweight method according to claim 1, characterized in that: The step S5 adopts PBR physical rendering technology and combines grid grouping to restore the real scene effect.

5. A complex model lightweight method according to claim 1, characterized in that: In step S6, the model is first UV unfolded and texture coordinate mapped, and then the normal map is added to the Bump channel of the PBR material.

6. The application of complex model lightweight method in cruise ship decoration engineering modeling is characterized by: The complex model lightweighting method as described in any one of claims 1 to 4 is used to carry out three-dimensional visual modeling of cruise ship decoration engineering.

Citation Information

Patent Citations

  • Grid model simplification method for maintaining detail features and textures

    CN110223397A

  • Three-dimensional model lightweight method and system, storage medium and image processing device

    CN112734930A

  • Method for making three-dimensional reconstruction and PBR chartlet based on close-range photogrammetry

    CN114241159A

  • Spatial three-dimensional model edge folding parallel simplification method considering local feature difference

    CN118097061A