CN116051708A - Three-dimensional scene lightweight model rendering method, equipment, device and storage medium - Google Patents

Three-dimensional scene lightweight model rendering method, equipment, device and storage medium Download PDF

Info

Publication number
CN116051708A
CN116051708A CN202310101447.7A CN202310101447A CN116051708A CN 116051708 A CN116051708 A CN 116051708A CN 202310101447 A CN202310101447 A CN 202310101447A CN 116051708 A CN116051708 A CN 116051708A
Authority
CN
China
Prior art keywords
triangular
color
model
lightweight
description information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310101447.7A
Other languages
Chinese (zh)
Inventor
刘铭崴
徐怡婷
杨宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Sihuizhitu Space Information Technology Co ltd
Original Assignee
Sichuan Sihuizhitu Space Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Sihuizhitu Space Information Technology Co ltd filed Critical Sichuan Sihuizhitu Space Information Technology Co ltd
Priority to CN202310101447.7A priority Critical patent/CN116051708A/en
Publication of CN116051708A publication Critical patent/CN116051708A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • G06T17/205Re-meshing

Abstract

The invention discloses a three-dimensional scene lightweight model rendering method, equipment, a device and a storage medium. According to the method, the original data of the live-action three-dimensional model are analyzed to obtain geometric description information, the geometric description information is used for describing the surface structure change of an object, visual information is extracted from the geometric description information, a high-definition color triangular grid is constructed according to the visual information, the high-definition color triangular grid is adaptively simplified to generate a light-weight triangular grid, a rendering engine is called to load and render the light-weight triangular grid, the light-weight visualization of the live-action three-dimensional model is achieved, the model is light-weight on the basis of retaining the geometric structure and color expression of the model, the model data volume is reduced, and the rendering efficiency of the three-dimensional scene model visualization is improved.

Description

Three-dimensional scene lightweight model rendering method, equipment, device and storage medium
Technical Field
The invention relates to the technical field of geospatial data processing, in particular to a three-dimensional scene lightweight model rendering method, equipment, a device and a storage medium.
Background
Along with rapid development of digital city construction, the requirements on the expression range and the fineness of the city-level live-action three-dimensional model are higher and higher, and compared with traditional two-dimensional data, the live-action three-dimensional model can be used for quickly and completely knowing the condition of the whole entity city, and plays an important role in digital city construction.
However, in the concrete construction of the urban real-scene three-dimensional model, the situations of large range, dense buildings and the like are faced, and the problems of low model loading speed, low rendering efficiency, poor experience, easy system collapse and the like in the visualization process are caused by large quantity of refined single-model bodies and more components, so that the requirements of practical application are difficult to meet, and the real-scene three-dimensional model needs to be subjected to light weight treatment under the condition of limited hardware computing capacity, so that the reality and expression consistency of the visualized application scene are enhanced.
The current method for lightening the three-dimensional model can be divided into four types of multi-instance, compression, layering (LOD) and parameterization. The LOD processing technology is most commonly used, and mainly by simplifying the triangle or polygonal sides of the three-dimensional model, some unimportant data compared with the main structure of the model are removed, and main structural characteristics of the model are reserved, so that the three-dimensional model is light. The difficulty is that the degree of pruning of the triangular lattice points in the geometric simplification process can damage the main structure of the model when the pruning proportion of the model is large, so that the detail characteristics of the model are lost, and the visual effect of the live-action three-dimensional model is affected. Therefore, how to perform light weight processing on the basis of retaining the visual characteristics of the three-dimensional model is a technical problem to be solved.
Disclosure of Invention
The present invention has been made in view of the above problems, and has as its object to provide a three-dimensional scene lightweight model rendering method, apparatus, device and storage medium that are advantageous in improving the above problems or at least partially improving the above problems.
In a first aspect, an embodiment of the present disclosure provides a three-dimensional scene lightweight model rendering method, including the steps of:
analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the geometric description information is used for describing the surface structure change of an object;
extracting visual information from the geometric description information;
constructing a high-definition color triangular grid according to the visual information;
performing self-adaptive simplification on the high-definition color triangular mesh to generate a light-weight triangular mesh;
and calling a rendering engine to load and render the lightweight triangular meshes, so as to realize lightweight visualization of the live-action three-dimensional model.
Further, the live-action three-dimensional model comprises an OBJ format file and an MTL file;
analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the method comprises the following steps:
analyzing the OBJ file to obtain vertex data, elements and display/rendering attributes;
and analyzing the MTL file based on the vertex data, the elements and the display/rendering attributes to obtain the geometric description information.
Further, the visual information includes base geometry and color information;
the extracting visual information from the geometric description information comprises the following steps:
extracting vertex coordinates, vertex normals and tangents from the geometric description information, wherein the vertex coordinates, the vertex normals and the tangents are used for describing the basic geometric structure;
and extracting color information corresponding to the surface element in the geometric description information by analyzing the MTL file.
Further, the constructing a high-definition color triangle mesh according to the visual information comprises:
constructing a color triangular grid according to the vertex coordinates, the vertex normals and the tangent lines;
and carrying out triangular mesh subdivision on the color triangular mesh by utilizing a triangular mesh subdivision algorithm to generate a high-definition color triangular mesh.
Further, the adaptively simplifying the high-definition color triangle mesh to generate a light triangle mesh includes:
parameterizing the high-definition color triangular mesh to obtain triangular face piece included angles and color average values;
optimizing the folding cost in a triangular mesh simplified edge folding algorithm by the triangular patch included angle and the color mean value;
traversing all triangular patches in the high-definition color triangular mesh, calculating the optimized folding cost, and deleting the triangular patches with folding cost smaller than a preset value to generate the light-weight triangular mesh.
Further, the optimizing the triangle patch included angle and the color mean to fold cost in the triangle mesh simplified edge folding algorithm includes:
calculating a secondary error matrix of the vertex of the triangular patch according to a triangular mesh simplified edge folding algorithm;
and optimizing edge folding cost according to the secondary error matrix, the triangular patch included angle and the color mean value.
Further, the performing triangle mesh subdivision on the color triangle mesh by using a triangle mesh subdivision algorithm to generate a high-definition color triangle mesh includes:
and newly increasing the number of triangular patches on the basis of the original triangular patches by using a triangular mesh subdivision algorithm through a mode of inserting edge points and updating original points, so as to generate the high-definition color triangular mesh.
In a second aspect, embodiments of the present disclosure provide a three-dimensional scene lightweight model rendering apparatus, including: a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the three-dimensional scene lightweight model rendering method according to the first aspect described above.
In a third aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer instructions that, when run on a computer, cause the computer to perform the steps of the three-dimensional scene lightweight model rendering method according to the first aspect described above.
In a fourth aspect, embodiments of the present disclosure provide a three-dimensional scene lightweight model rendering apparatus, the apparatus including:
the analysis module is used for analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the geometric description information is used for describing the surface structure change of the object;
the extraction module is used for extracting visual information from the geometric description information;
the construction module is used for constructing a high-definition color triangular grid according to the visual information;
the generation module is used for adaptively simplifying the high-definition color triangular meshes and generating light-weight triangular meshes;
and the rendering module is used for calling a rendering engine to load and render the lightweight triangular meshes so as to realize the lightweight visualization of the live-action three-dimensional model.
The technical scheme provided in the embodiments of the present specification has at least the following technical effects or advantages:
according to the three-dimensional scene lightweight model rendering method, device and storage medium, the original data of the live-action three-dimensional model are analyzed to obtain the geometric description information, the geometric description information is used for describing the surface structure change of an object, visual information is extracted from the geometric description information, a high-definition color triangular grid is constructed according to the visual information, the high-definition color triangular grid is adaptively simplified to generate a lightweight triangular grid, a rendering engine is called to load and render the lightweight triangular grid, lightweight visualization of the live-action three-dimensional model is achieved, the model is lightened on the basis of retaining the geometric structure and color expression of the model, the data size of the model is reduced, and the rendering efficiency of the three-dimensional scene model visualization is improved.
The foregoing description is merely an overview of the technical solutions provided by the embodiments of the present specification, and may be implemented according to the content of the specification in order to make the technical means of the embodiments of the present specification more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the embodiments of the present specification more understandable, the following detailed description of the embodiments of the present specification.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a flowchart of a three-dimensional scene lightweight model rendering method according to a first aspect of an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of three-dimensional model lightweight processing in an embodiment of a three-dimensional scene lightweight model rendering method according to the first aspect of the embodiments of the present disclosure;
fig. 3 is a schematic flowchart of triangle mesh adaptive simplified process in an embodiment of the three-dimensional scene lightweight model rendering method according to the first aspect of the embodiments of the present disclosure;
fig. 4 is an exemplary diagram of an oversized scene three-dimensional model of an embodiment of a three-dimensional scene lightweight model rendering method provided in the first aspect of the embodiments of the present disclosure;
fig. 5 is an exemplary diagram of a lightweight three-dimensional model in an embodiment of a three-dimensional scene lightweight model rendering method according to the first aspect of the embodiments of the present disclosure;
fig. 6 is a schematic structural diagram of an exemplary three-dimensional scene lightweight model rendering device according to the second aspect of the embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an exemplary three-dimensional scene lightweight model rendering device according to a fourth aspect of the present disclosure.
Detailed Description
Exemplary embodiments of the present specification will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present specification are shown in the drawings, it should be understood that the present specification may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It should be noted that, the term "and/or" appearing herein is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. The term "plurality" includes two or more than two cases.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
In a first aspect, embodiments of the present disclosure provide a three-dimensional scene lightweight model rendering method, as shown in fig. 1, which may include the following steps S100 to S500.
And step S100, analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the geometric description information is used for describing the surface structure change of the object.
It should be understood that the execution subject of the present embodiment is the three-dimensional scene lightweight model rendering device, which is typically an electronic device such as a personal computer or a server, and the present embodiment is not limited thereto. And analyzing the original data of the real-scene three-dimensional model, and acquiring geometric description information capable of describing the structural change of the object surface and indexing the three-dimensional position and the point, line and surface elements of the color texture.
In some examples, the live three-dimensional model includes an OBJ format file and an MTL file;
the step S100 includes:
analyzing the OBJ file to obtain vertex data, elements and display/rendering attributes;
and analyzing the MTL file based on the vertex data, the elements and the display/rendering attributes to obtain the geometric description information.
As shown in fig. 2, a live-action three-dimensional model is input, including an OBJ format file and an MTL file; analyzing the OBJ file, and executing vertex data analysis, element analysis and display/rendering attribute analysis; and analyzing the MTL file on the basis of the analysis of the display/rendering attribute, and confirming the illumination textures of the material colors contained in the input model.
And step S200, extracting visual information from the geometric description information.
It will be appreciated that visual information is first defined, including the underlying geometry of the three-dimensional model and the true color of the object surface. And extracting vertex coordinates, vertex normals and tangents from the geometric description information, and describing the basic geometric structure. On this basis, RGB color information of each element is extracted from each element of the point, line and plane according to the vertex coordinates. And finally, reserving the basic geometric structure and the color information, deleting texture information of the original data, which occupies a large amount of memory resources, and generating model data only comprising the geometric and color information.
In some examples, the visual information includes base geometry and color information;
the step S200 includes:
extracting vertex coordinates, vertex normals and tangents from the geometric description information, wherein the vertex coordinates, the vertex normals and the tangents are used for describing the basic geometric structure;
and extracting color information corresponding to the surface element in the geometric description information by analyzing the MTL file.
In a specific implementation, the visual information extraction is performed according to the following steps:
(1) Defining the visual information concept and boundary, and defining visual information of a three-dimensional model based on image morphology and computer visual theory, wherein the visual information comprises a model basic geometric structure and a surface true color, and the visual information can be considered to be perceived by eyes and machines, and has the capability of distinguishing the object essence and model expression difference from a visual layer;
(2) And extracting the visual information from the three-dimensional model file, extracting three-dimensional coordinates of the vertexes of the geometric body and the normals of the vertexes of the vertex data, extracting surface elements in the element set and indexes of the corresponding vertexes and normals, and expressing the basic geometric structure of the model. In the process, RGB information corresponding to the surface elements is extracted through analyzing the MTL file and used for expressing the real color of the surface of the model;
(3) And (3) compressing the three-dimensional model with the visual information reserved, and reserving a source path of the visual information in the original three-dimensional model, wherein RGB information is added into the surface elements in an attribute form, and texture information occupying a large amount of memory resources is removed, wherein the texture information comprises texture coordinates of each element and external mapping files, so that the preliminary weight reduction of the three-dimensional model is realized.
And step S300, constructing a high-definition color triangular grid according to the visual information.
In specific implementation, the triangular meshes are subdivided, the triangular meshes with color information are constructed by using vertex positions and vertex normals in geometric information, then the number of triangular mesh patches of an original model is increased by using a Loop algorithm, and the high-definition color triangular meshes comprising a large number of triangular patches are generated by inserting positions and topological structures of edges, point elements and updated points.
In some examples, the step S300 includes:
constructing a color triangular grid according to the vertex coordinates, the vertex normals and the tangent lines;
and carrying out triangular mesh subdivision on the color triangular mesh by utilizing a triangular mesh subdivision algorithm to generate a high-definition color triangular mesh.
In some examples, triangulating the color triangular mesh using a triangulating algorithm to generate a high-definition color triangular mesh, comprising:
and newly increasing the number of triangular patches on the basis of the original triangular patches by using a triangular mesh subdivision algorithm through a mode of inserting edge points and updating original points, so as to generate the high-definition color triangular mesh.
It should be noted that the triangular mesh subdivision is performed according to the following steps:
(1) Constructing a color triangular grid, and constructing the color triangular grid by using the geometrical vertex subjected to compression treatment, the vertex normal and the plane element to serve as a triangular grid subdivision basis;
(2) And performing triangle mesh subdivision on the color triangle mesh by using a Loop algorithm, and specifically, increasing the number of triangular patches on the basis of the original triangular patches by inserting edge points and updating original points to generate the high-definition color triangle mesh.
Step S400, carrying out self-adaptive simplification on the high-definition color triangular meshes to generate light-weight triangular meshes.
It should be understood that, for the high-definition triangle mesh generated in the previous step, the self color of the triangle mesh unit and the space angle between adjacent mesh units are used as constraint conditions, and the triangle mesh units with similar space structures and surface colors are combined by using the edge folding algorithm with optimized cost, so that the self-adaptation simplification of the high-definition triangle mesh is realized, and the light-weight triangle mesh is generated.
In some examples, the step S400 includes:
parameterizing the high-definition color triangular mesh to obtain triangular face piece included angles and color average values;
optimizing the folding cost in a triangular mesh simplified edge folding algorithm by the triangular patch included angle and the color mean value;
traversing all triangular patches in the high-definition color triangular mesh, calculating the optimized folding cost, and deleting the triangular patches with folding cost smaller than a preset value to generate the light-weight triangular mesh.
In some examples, the optimizing the triangle patch angle and the color mean to optimize the folding cost in a triangle mesh simplified edge folding algorithm includes:
calculating a secondary error matrix of the vertex of the triangular patch according to a triangular mesh simplified edge folding algorithm;
and optimizing edge folding cost according to the secondary error matrix, the triangular patch included angle and the color mean value.
It will be appreciated that the adaptation of the triangular mesh to take into account visual information is simplified, as shown in fig. 3, by the following steps:
step 4.1, taking the visual information as a simplified constraint condition of the high-definition color triangular mesh, namely performing parameterization processing on the model geometry and the real color of the surface, wherein the parameterization processing comprises the steps of calculating the included angle theta of the triangular patches and calculating the RGB average value
Figure BDA0004073216760000091
The method specifically comprises the following steps:
and 4.1a, calculating an included angle theta of the triangular patches, namely an included angle formed by normal vectors of any adjacent triangular patches in the high-definition color triangular mesh.
Calculating the included angle of triangular patches, and calculating the normal vector of any triangular patch in the high-definition color triangular grid
Figure BDA0004073216760000092
And vector angle theta is taken as a triangular face piece included angle, and the calculation method comprises the following steps:
Figure BDA0004073216760000093
Figure BDA0004073216760000094
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure BDA0004073216760000095
respectively any two side vectors of the triangular surface patches, theta ij Is the normal vector angle of any two adjacent triangular patches.
Step 4.1b, calculating RGB mean value of triangular patches, multiplying RGB component values of each patch by average weight by weighted average method, adding, and using the obtained result as color mean value of the patch
Figure BDA0004073216760000096
Step 4.2, the included angle theta of the triangular patches and the color average value are calculated
Figure BDA0004073216760000097
Optimizing the folding cost in the triangle mesh simplified edge folding algorithm, and executing the following steps:
step 4.2a, setting a quadratic error matrix Q of the vertex p of the triangular patch i according to the edge folding algorithm i The following is shown
Figure BDA0004073216760000098
Wherein M= [ a, b, c, d ]] T Represents a plane defined by the equation ax+by+cz+d=0, and a 2 +b 2 +c 2 =1;
Step 4.2b, according to the included angle theta and the color average value of the triangular patches
Figure BDA0004073216760000099
The optimized edge fold Cost' is as follows:
Figure BDA00040732167600000910
Figure BDA00040732167600000911
wherein, Q i Is a quadratic error matrix of the vertex p of the triangular patch i, m= [ a, b, c, d] T Represents a plane defined by the equation ax+by+cz+d=0, and a 2 +b 2 +c 2 =1, cost is the edge folded valence of the adjacent triangular patches (i, j), p new A new vertex generated by folding the common edge of the triangular surface patches,
Figure BDA0004073216760000101
is the normal vector of the new vertex;
and 4.3, executing the steps, traversing all triangular patches, calculating the optimized root folding cost, deleting the triangular patches with small folding cost, and reserving the triangular patches with large folding cost, so as to realize the visual information self-adaptive simplification of the high-definition color triangular grid and generate the light-weight triangular grid.
And S500, calling a rendering engine to load and render the lightweight triangular meshes, and realizing lightweight visualization of the live-action three-dimensional model.
In the specific implementation, the lightweight visualization of the live-action three-dimensional model is realized by simultaneously executing the steps based on the parallel architecture and calling a rendering engine to load and render the simplified triangle network generated in real time until all models in the live-action three-dimensional data are loaded, and finally the lightweight visualization of the live-action three-dimensional model taking visual information into consideration is realized.
As shown in fig. 4, the oversized scene live-action three-dimensional model described in this embodiment has the problems of large volume, more components and information redundancy, which results in slow model loading speed and low rendering efficiency. After the three-dimensional model compression in the step S200, the amount of model information can be reduced by 60%, the step S300 and the step S400 are simultaneously executed by using parallel computation, and further, the three-dimensional model is further light-weighted, as shown in fig. 5, at this time, the light-weighted three-dimensional model does not use textures to express the appearance, but uses a triangle net with colors, so that the density of the triangle net can be seen to be non-uniform, thereby reflecting the details of objects such as a window of the model, and the rendering process can be stably operated at 60 frames/second.
The beneficial effects of this embodiment lie in: the visual information is based on the three-dimensional model light-weight process designed based on the accurate expression of main structural features and essential visual differences of objects by taking the visual perception of the real world as a core, so that the geometric structure and color expression of the model are reserved to the greatest extent, the data volume of the model is greatly reduced, and the richness of the model expression and the visual rendering efficiency of a platform are greatly improved.
In this embodiment, by analyzing the original data of the live-action three-dimensional model, geometric description information is obtained, the geometric description information is used for describing the surface structure change of an object, visual information is extracted from the geometric description information, a high-definition color triangular grid is constructed according to the visual information, the high-definition color triangular grid is adaptively simplified, a light-weight triangular grid is generated, a rendering engine is called to load and render the light-weight triangular grid, the light-weight visualization of the live-action three-dimensional model is realized, the model is lightened on the basis of retaining the geometric structure and color expression of the model, the data volume of the model is reduced, and the rendering efficiency of the three-dimensional scene model visualization is improved.
In a second aspect, embodiments of the present disclosure provide a three-dimensional scene lightweight model rendering apparatus. Referring to fig. 6, fig. 6 is a schematic hardware structure of a three-dimensional scene lightweight model rendering device according to an embodiment of the invention. In an embodiment of the present invention, the three-dimensional scene lightweight model rendering device may include a processor 1001 (e.g., CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the hardware architecture shown in fig. 6 does not constitute a limitation of the three-dimensional scene lightweight model rendering device, and may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components.
Referring to fig. 6, a memory 1005, which is one type of computer-readable storage medium in fig. 6, may include an operating system, a network communication module, and a three-dimensional scene lightweight model rendering program.
In fig. 6, the network communication module is mainly used for connecting to a server and performing data communication with the server; the processor 1001 may call the three-dimensional scene lightweight model rendering program stored in the memory 1005, and execute the three-dimensional scene lightweight model rendering method according to the first aspect of the present invention.
In a third aspect, embodiments of the present disclosure further provide a computer readable storage medium, where the computer readable storage medium stores computer instructions, when the computer instructions run on a computer, cause the computer to execute each process of the three-dimensional scene lightweight model rendering method provided in the first aspect, and achieve the same technical effect, so that repetition is avoided, and no further description is given here. The computer readable storage medium may be, for example, read-Only Memory (ROM), random access Memory (Random Access Memory RAM), magnetic or optical disk, etc.
In a fourth aspect, embodiments of the present disclosure further provide a three-dimensional scene lightweight model rendering apparatus, as shown in fig. 7, including:
the analysis module 10 is used for analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the geometric description information is used for describing the surface structure change of the object;
an extraction module 20 for extracting visual information from the geometric description information;
a construction module 30 for constructing a high-definition color triangle mesh according to the visual information;
a generating module 40, configured to adaptively simplify the high-definition color triangular mesh, and generate a lightweight triangular mesh;
and the rendering module 50 is used for calling a rendering engine to load and render the lightweight triangular meshes so as to realize the lightweight visualization of the live-action three-dimensional model.
Other embodiments or specific implementation manners of the three-dimensional scene lightweight model rendering device of the present invention may refer to the embodiments of the three-dimensional scene lightweight model rendering method provided in the first aspect, and may achieve the same technical effects, which are not described herein again.
It will be appreciated by those skilled in the art that the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While preferred embodiments of the present description have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the disclosure.

Claims (10)

1. A three-dimensional scene lightweight model rendering method, the method comprising:
analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the geometric description information is used for describing the surface structure change of an object;
extracting visual information from the geometric description information;
constructing a high-definition color triangular grid according to the visual information;
performing self-adaptive simplification on the high-definition color triangular mesh to generate a light-weight triangular mesh;
and calling a rendering engine to load and render the lightweight triangular meshes, so as to realize lightweight visualization of the live-action three-dimensional model.
2. The method of claim 1, wherein the live-action three-dimensional model comprises an OBJ format file and an MTL file;
analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the method comprises the following steps:
analyzing the OBJ file to obtain vertex data, elements and display/rendering attributes;
and analyzing the MTL file based on the vertex data, the elements and the display/rendering attributes to obtain the geometric description information.
3. The method of claim 2, wherein the visual information comprises base geometry and color information;
the extracting visual information from the geometric description information comprises the following steps:
extracting vertex coordinates, vertex normals and tangents from the geometric description information, wherein the vertex coordinates, the vertex normals and the tangents are used for describing the basic geometric structure;
and extracting color information corresponding to the surface element in the geometric description information by analyzing the MTL file.
4. A method according to claim 3, wherein said constructing a high definition color triangular grid from said visual information comprises:
constructing a color triangular grid according to the vertex coordinates, the vertex normals and the tangent lines;
and carrying out triangular mesh subdivision on the color triangular mesh by utilizing a triangular mesh subdivision algorithm to generate a high-definition color triangular mesh.
5. The method of claim 4, wherein said adaptively simplifying said high definition color triangular mesh to generate a lightweight triangular mesh comprises:
parameterizing the high-definition color triangular mesh to obtain triangular face piece included angles and color average values;
optimizing the folding cost in a triangular mesh simplified edge folding algorithm by the triangular patch included angle and the color mean value;
traversing all triangular patches in the high-definition color triangular mesh, calculating the optimized folding cost, and deleting the triangular patches with folding cost smaller than a preset value to generate the light-weight triangular mesh.
6. The method of claim 5, wherein optimizing the fold cost in a triangular mesh reduced edge folding algorithm with the triangular patch angle and the color mean comprises:
calculating a secondary error matrix of the vertex of the triangular patch according to a triangular mesh simplified edge folding algorithm;
and optimizing edge folding cost according to the secondary error matrix, the triangular patch included angle and the color mean value.
7. The method of claim 4, wherein triangulating the color triangular mesh using a triangulating algorithm to generate a high-definition color triangular mesh, comprising:
and newly increasing the number of triangular patches on the basis of the original triangular patches by using a triangular mesh subdivision algorithm through a mode of inserting edge points and updating original points, so as to generate the high-definition color triangular mesh.
8. A three-dimensional scene lightweight model rendering apparatus, characterized by comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the three-dimensional scene lightweight model rendering method as defined in any of claims 1-7.
9. A computer readable storage medium storing computer instructions which, when run on a computer, cause the computer to perform the steps of the three-dimensional scene lightweight model rendering method according to any of claims 1-7.
10. A three-dimensional scene lightweight model rendering device, the device comprising:
the analysis module is used for analyzing the original data of the live-action three-dimensional model to obtain geometric description information, wherein the geometric description information is used for describing the surface structure change of the object;
the extraction module is used for extracting visual information from the geometric description information;
the construction module is used for constructing a high-definition color triangular grid according to the visual information;
the generation module is used for adaptively simplifying the high-definition color triangular meshes and generating light-weight triangular meshes;
and the rendering module is used for calling a rendering engine to load and render the lightweight triangular meshes so as to realize the lightweight visualization of the live-action three-dimensional model.
CN202310101447.7A 2023-01-30 2023-01-30 Three-dimensional scene lightweight model rendering method, equipment, device and storage medium Pending CN116051708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310101447.7A CN116051708A (en) 2023-01-30 2023-01-30 Three-dimensional scene lightweight model rendering method, equipment, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310101447.7A CN116051708A (en) 2023-01-30 2023-01-30 Three-dimensional scene lightweight model rendering method, equipment, device and storage medium

Publications (1)

Publication Number Publication Date
CN116051708A true CN116051708A (en) 2023-05-02

Family

ID=86124220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310101447.7A Pending CN116051708A (en) 2023-01-30 2023-01-30 Three-dimensional scene lightweight model rendering method, equipment, device and storage medium

Country Status (1)

Country Link
CN (1) CN116051708A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116721218A (en) * 2023-07-08 2023-09-08 南京信息工程大学 Three-dimensional real estate model light-weight method, system and equipment
CN116977523A (en) * 2023-07-25 2023-10-31 深圳市快速直接工业科技有限公司 STEP format rendering method at WEB terminal
CN117009291A (en) * 2023-07-05 2023-11-07 湖南芒果无际科技有限公司 3D model asset file simplified conversion method and system based on mobile terminal
CN117036517A (en) * 2023-10-08 2023-11-10 北京飞渡科技股份有限公司 Method for eliminating model components in three-dimensional model
CN117392303A (en) * 2023-12-12 2024-01-12 广东省海洋发展规划研究中心 Energy operator-based optimized terrain rendering method, system, equipment and medium
CN117456110A (en) * 2023-12-25 2024-01-26 北京飞渡科技股份有限公司 Three-dimensional scene metamorphosis grid data lightweight processing method
CN117475109A (en) * 2023-12-21 2024-01-30 中建三局集团有限公司 Model running water segment dividing method, device and medium based on stretching body geometric cutting
CN117541751A (en) * 2024-01-04 2024-02-09 支付宝(杭州)信息技术有限公司 Three-dimensional model degradation method and device
CN116977523B (en) * 2023-07-25 2024-04-26 快速直接(深圳)精密制造有限公司 STEP format rendering method at WEB terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009291A (en) * 2023-07-05 2023-11-07 湖南芒果无际科技有限公司 3D model asset file simplified conversion method and system based on mobile terminal
CN117009291B (en) * 2023-07-05 2024-02-13 湖南芒果融创科技有限公司 3D model asset file simplified conversion method and system based on mobile terminal
CN116721218A (en) * 2023-07-08 2023-09-08 南京信息工程大学 Three-dimensional real estate model light-weight method, system and equipment
CN116721218B (en) * 2023-07-08 2024-01-26 南京信息工程大学 Three-dimensional real estate model light-weight method, system and equipment
CN116977523A (en) * 2023-07-25 2023-10-31 深圳市快速直接工业科技有限公司 STEP format rendering method at WEB terminal
CN116977523B (en) * 2023-07-25 2024-04-26 快速直接(深圳)精密制造有限公司 STEP format rendering method at WEB terminal
CN117036517A (en) * 2023-10-08 2023-11-10 北京飞渡科技股份有限公司 Method for eliminating model components in three-dimensional model
CN117036517B (en) * 2023-10-08 2023-12-26 北京飞渡科技股份有限公司 Method for eliminating model components in three-dimensional model
CN117392303A (en) * 2023-12-12 2024-01-12 广东省海洋发展规划研究中心 Energy operator-based optimized terrain rendering method, system, equipment and medium
CN117475109B (en) * 2023-12-21 2024-03-19 中建三局集团有限公司 Model running water segment dividing method, device and medium based on stretching body geometric cutting
CN117475109A (en) * 2023-12-21 2024-01-30 中建三局集团有限公司 Model running water segment dividing method, device and medium based on stretching body geometric cutting
CN117456110A (en) * 2023-12-25 2024-01-26 北京飞渡科技股份有限公司 Three-dimensional scene metamorphosis grid data lightweight processing method
CN117456110B (en) * 2023-12-25 2024-03-19 北京飞渡科技股份有限公司 Three-dimensional scene metamorphosis grid data lightweight processing method
CN117541751A (en) * 2024-01-04 2024-02-09 支付宝(杭州)信息技术有限公司 Three-dimensional model degradation method and device

Similar Documents

Publication Publication Date Title
CN116051708A (en) Three-dimensional scene lightweight model rendering method, equipment, device and storage medium
CN113178014B (en) Scene model rendering method and device, electronic equipment and storage medium
US11436800B2 (en) Interactive system and method providing real-time virtual reality visualization of simulation data
CN102184522A (en) Vertex data storage method, graphic processing unit and refinement device
US20230120253A1 (en) Method and apparatus for generating virtual character, electronic device and readable storage medium
KR20080018404A (en) Computer readable recording medium having background making program for making game
CN115222806B (en) Polygon processing method, device, equipment and computer readable storage medium
JP3650355B2 (en) Computer system, method and computer program for accelerating rendering of geometric models
CN114241151A (en) Three-dimensional model simplification method and device, computer equipment and computer storage medium
CN113327315A (en) Multi-level detail model generation method and device
JP4165695B2 (en) Computer program for expressing non-manifold implicit functions
CN109858059B (en) Application method of virtual reality technology based on CAD (computer-aided design) super-large model in hydropower station simulation
US11955246B2 (en) Unified anisotropic volume and surface mesh storage
Guo et al. Tetrahedral meshing via maximal Poisson-disk sampling
JPH0623989B2 (en) Boundary Representation Solid Modeling System
JP6565494B2 (en) Data reduction device for 3D object modeling
US10636210B2 (en) Dynamic contour volume deformation
CN114791986A (en) Three-dimensional information model processing method and device
US11488347B2 (en) Method for instant rendering of voxels
CN117576280B (en) Intelligent terminal cloud integrated generation method and system based on 3D digital person
CN103460252B (en) A method for reconstructing a 3d surface from a 2d sketch
WO2023184139A1 (en) Methods and systems for rendering three-dimensional scenes
CN117934764A (en) Model simplifying method and system based on mesh model
CN116934938A (en) Three-dimensional model texture processing method, apparatus and storage medium
JP3178808B2 (en) Object reconstruction method, object approximation method, and space rendering method

Legal Events

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