CN117009291B - 3D model asset file simplified conversion method and system based on mobile terminal - Google Patents

3D model asset file simplified conversion method and system based on mobile terminal Download PDF

Info

Publication number
CN117009291B
CN117009291B CN202310819262.XA CN202310819262A CN117009291B CN 117009291 B CN117009291 B CN 117009291B CN 202310819262 A CN202310819262 A CN 202310819262A CN 117009291 B CN117009291 B CN 117009291B
Authority
CN
China
Prior art keywords
vertex
model
representing
file
original
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.)
Active
Application number
CN202310819262.XA
Other languages
Chinese (zh)
Other versions
CN117009291A (en
Inventor
曾泽风
刘琛良
刘浪
刘亚
常帅
欧翔
彭湘媛
吴颖超
李阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Mango Rongchuang Technology Co ltd
Original Assignee
Hunan Mango Rongchuang 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 Hunan Mango Rongchuang Technology Co ltd filed Critical Hunan Mango Rongchuang Technology Co ltd
Priority to CN202310819262.XA priority Critical patent/CN117009291B/en
Publication of CN117009291A publication Critical patent/CN117009291A/en
Application granted granted Critical
Publication of CN117009291B publication Critical patent/CN117009291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

The invention discloses a 3D model asset file simplified conversion method and system based on a mobile terminal, wherein the method comprises the steps of obtaining an original 3D model asset file of the mobile terminal; analyzing the original 3D model asset file to obtain original 3D model file data; representing original 3D model file data into triangular meshes, obtaining vertexes of each triangular surface in the triangular meshes, and folding two adjacent vertexes in each triangular surface to generate folding cost; optimizing folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost; simplifying original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data; the simplified 3D model file data is converted into a new 3D model asset file. The invention can reduce the consumption of storage space and improve the rendering efficiency, realizes the conversion of various file types and greatly reduces the production cost.

Description

3D model asset file simplified conversion method and system based on mobile terminal
Technical Field
The invention relates to the technical field of file simplified conversion, in particular to a 3D model asset file simplified conversion method and system based on a mobile terminal.
Background
The current personalized 3D model asset file of the mobile terminal is the same as the file types used by the PC terminal, such as fbx, bundle, glb and the like, and the precision and content of the data in the file types are based on the calculation force of the PC terminal and are not suitable for the mobile terminal, so that on one hand, the mobile terminal takes longer time to realize high-precision rendering, and on the other hand, the excessive precision has no obvious effect on the mobile terminal. Most of the current solutions change the original high-modulus assets of the PC end into low-modulus assets by manual adjustment, which increases the extra production cost.
The currently popular rendering engines (such as units 3d, ue and threeJS) support asset files (such as fbx, bundle, glb and u sd) to different degrees, and have the problem of incompatibility, so that the multi-engine rendering of one asset file is difficult to realize at present. Most of the current solutions are realized by depending on the compatibility of a rendering engine or installing a plug-in conversion asset file, but due to real-time conversion, rendering time consumption is increased; a few options manually create asset files in a corresponding format for different engines, which also adds additional production costs.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides the 3D model asset file simplified conversion method and system based on the mobile terminal, which can reduce the consumption of storage space, improve rendering efficiency, realize conversion of various file types and greatly reduce production cost.
In a first aspect, an embodiment of the present invention provides a mobile-end-based 3D model asset file simplified conversion method, where the mobile-end-based 3D model asset file simplified conversion includes:
acquiring an original 3D model asset file of a mobile terminal;
analyzing the original 3D model asset file to obtain original 3D model file data;
representing the original 3D model file data into triangular meshes, obtaining vertexes of each triangular surface in the triangular meshes, and folding two adjacent vertexes in each triangular surface to generate folding cost;
optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost;
simplifying the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data;
and converting the simplified 3D model file data into a new 3D model asset file.
Compared with the prior art, the first aspect of the invention has the following beneficial effects:
the method comprises the steps of obtaining an original 3D model asset file of a mobile terminal, analyzing the original 3D model asset file to obtain original 3D model file data, expressing the original 3D model file data into triangular grids, obtaining vertexes of each triangular surface in the triangular grids, folding two adjacent vertexes in each triangular surface to generate folding cost, optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost, and optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex. The original 3D model file data is simplified based on the optimized folding cost, the simplified 3D model file data is obtained, the simplified 3D model file data is converted into a new 3D model asset file, the simplified 3D model file data is converted into the new 3D model asset file, the types of asset file formats needing to be converted do not need to be considered, therefore, the 3D model asset file conversion of various format types can be realized, and the production cost of a user is greatly reduced.
According to some embodiments of the invention, optimizing the folding cost using vertex texture feature information and vertex curvature for each of the vertices, obtaining an optimized folding cost includes:
performing weighted optimization on the vertex texture feature information and the vertex curvature to obtain vertex texture feature information and vertex curvature after weighted optimization;
calculating to obtain an optimization error matrix of each vertex according to the weighted and optimized vertex texture characteristic information and the vertex curvature;
and calculating to obtain the optimal folding cost according to the optimal error matrix of each vertex.
According to some embodiments of the invention, the optimal error matrix for each vertex is calculated by:
wherein Q is iweight Representing vertex v i Is a matrix of optimized errors, vertex texture(i) Representing vertex v i The value of the vertex texture feature information of each pixel, the factor represents a preset weight coefficient,representing vertex v i Is represented by the initial quadratic error matrix, Q jweight Representing vertex v j Is a matrix of optimized errors, vertex texture(j) Representing vertex v j The value of the vertex texture feature information for each pixel, of->Representing vertex v j Is defined by the curvature of the apex of the lens.
According to some embodiments of the invention, the optimized folding cost is calculated by:
wherein Q is iweight Representing vertex v i Is an optimized error matrix, Q jweight Representing vertex v j Is a function of the optimized error matrix, cost (v i ,v j ) Representing an optimized folding cost and,representing a vertex coordinate matrix.
According to some embodiments of the invention, before simplifying the original 3D model file data based on the optimized folding cost, the mobile-end-based 3D model asset file simplified conversion method further includes:
obtaining grid simplifying parameters and texture simplifying parameters;
presetting the grid simplifying parameters, and calculating to obtain first texture simplifying parameters according to the preset grid simplifying parameters; the range of the first texture reduction parameter is limited to 2 to 10.
According to some embodiments of the invention, the simplifying the original 3D model file data based on the optimized folding cost, obtaining simplified 3D model file data, includes:
and according to the grid simplifying parameters and the first texture simplifying parameters, carrying out grid simplifying and texture simplifying on the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data.
According to some embodiments of the invention, the converting the simplified 3D model file data into a new 3D model asset file includes:
the simplified 3D model file data is converted to a new 3D model asset file by a parser.
In a second aspect, an embodiment of the present invention further provides a 3D model file simplified conversion system based on a mobile terminal, where the 3D model file simplified conversion system based on the mobile terminal includes:
the data acquisition unit is used for acquiring an original 3D model asset file of the mobile terminal;
the file analysis unit is used for analyzing the original 3D model asset file to obtain original 3D model file data;
the vertex folding unit is used for representing the original 3D model file data into triangular grids, obtaining the vertex of each triangular surface in the triangular grids, and folding two adjacent vertexes in each triangular surface to generate folding cost;
the folding cost optimization unit is used for optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost;
the data simplifying unit is used for simplifying the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data;
and the file conversion unit is used for converting the simplified 3D model file data into a new 3D model asset file.
In a third aspect, an embodiment of the present invention further provides a 3D model file simplified conversion device based on a mobile terminal, including at least one control processor and a memory for communication connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform a mobile-side based 3D model file reduced conversion method as described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a 3D model file simplified conversion method based on a mobile terminal as described above.
It is to be understood that the advantages of the second to fourth aspects compared with the related art are the same as those of the first aspect compared with the related art, and reference may be made to the related description in the first aspect, which is not repeated herein.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a flow chart of a simplified conversion method of 3D model asset files based on mobile terminal according to an embodiment of the invention;
FIG. 2 is a flow chart of a simplified conversion method of 3D model asset files based on mobile terminal according to another embodiment of the present invention;
FIG. 3 is a simplified front-to-back comparison of data for one embodiment of the present invention;
FIG. 4 is a schematic diagram of a parser in accordance with one embodiment of the present invention;
fig. 5 is a block diagram of a 3D model asset file simplified conversion system based on a mobile terminal according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, the description of first, second, etc. is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, it should be understood that the direction or positional relationship indicated with respect to the description of the orientation, such as up, down, etc., is based on the direction or positional relationship shown in the drawings, is merely for convenience of describing the present invention and simplifying the description, and does not indicate or imply that the apparatus or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be determined reasonably by a person skilled in the art in combination with the specific content of the technical solution.
The current personalized 3D model asset file of the mobile terminal is the same as the file types used by the PC terminal, such as fbx, bundle, glb and the like, and the precision and content of the data in the file types are based on the calculation force of the PC terminal and are not suitable for the mobile terminal, so that on one hand, the mobile terminal takes longer time to realize high-precision rendering, and on the other hand, the excessive precision has no obvious effect on the mobile terminal. Most of the current solutions change the original high-modulus assets of the PC end into low-modulus assets by manual adjustment, which increases the extra production cost.
The currently popular rendering engines (such as units 3d, ue, threjs) support asset files (such as fbx, bundle, glb, usd) to different degrees, and thus, there is an incompatibility problem, so that it is difficult to implement multi-engine rendering by using one asset file at present. Most of the current solutions are realized by depending on the compatibility of a rendering engine or installing a plug-in conversion asset file, but due to real-time conversion, rendering time consumption is increased; a few options manually create asset files in a corresponding format for different engines, which also adds additional production costs.
In order to solve the problems, the method and the device solve the problems by acquiring the original 3D model asset file of the mobile terminal, analyzing the original 3D model asset file to obtain original 3D model file data, representing the original 3D model file data into triangular meshes, obtaining vertexes of each triangular surface in the triangular meshes, folding two adjacent vertexes in each triangular surface to generate folding cost, optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost, and optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex. The original 3D model file data is simplified based on the optimized folding cost, the simplified 3D model file data is obtained, the simplified 3D model file data is converted into a new 3D model asset file, the simplified 3D model file data is converted into the new 3D model asset file, the types of asset file formats needing to be converted do not need to be considered, therefore, the 3D model asset file conversion of various format types can be realized, and the production cost of a user is greatly reduced.
Referring to fig. 1, an embodiment of the present invention provides a 3D model asset file simplified conversion method based on a mobile terminal, where the simplified conversion of the 3D model file based on the mobile terminal includes, but is not limited to, steps S100 to S600, where:
step S100, an original 3D model asset file of a mobile terminal is obtained;
step S200, analyzing an original 3D model asset file to obtain original 3D model file data;
step S300, representing original 3D model file data into triangular grids, obtaining vertexes of each triangular surface in the triangular grids, and folding two adjacent vertexes in each triangular surface to generate folding cost;
step S400, optimizing folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost;
step S500, simplifying original 3D model file data based on optimized folding cost to obtain simplified 3D model file data;
step S600, converting the simplified 3D model file data into a new 3D model asset file.
In steps S100 to S600 of some embodiments, in order to reduce the size of a 3D model asset file and improve rendering efficiency, in this embodiment, by obtaining an original 3D model asset file of a mobile terminal, analyzing the original 3D model asset file to obtain original 3D model file data, representing the original 3D model file data as a triangular mesh, obtaining vertices of each triangular surface in the triangular mesh, folding two adjacent vertices in each triangular surface to generate folding cost, optimizing the folding cost by using vertex texture feature information and vertex curvature of each vertex, and obtaining optimized folding cost; in order to realize file conversion of multiple formats, the embodiment simplifies the original 3D model file data based on the optimized folding cost, obtains simplified 3D model file data, and converts the simplified 3D model file data into a new 3D model asset file.
In some embodiments, optimizing the cost of folding using vertex texture feature information and vertex curvature for each vertex, obtaining the optimized cost of folding includes:
performing weighted optimization on the vertex texture feature information and the vertex curvature to obtain vertex texture feature information and vertex curvature after weighted optimization;
according to the weighted and optimized vertex texture characteristic information and the vertex curvature, calculating to obtain an optimized error matrix of each vertex;
and calculating to obtain the optimal folding cost according to the optimal error matrix of each vertex.
In the embodiment, the folding cost is increased in a rich texture area, and the purpose of keeping certain model detail characteristics in simplification is achieved; therefore, the size of the 3D model asset file is reduced by reducing unnecessary data precision, the consumption of storage space is reduced by reducing the file size, the unnecessary data precision is reduced, and the rendering efficiency is improved.
In some embodiments, the optimal error matrix for each vertex is calculated by:
wherein Q is iweight Representing vertex v i Is a matrix of optimized errors, vertex texture(i) Representing vertex v i The value of the vertex texture feature information of each pixel, the factor represents a preset weight coefficient,representing vertex v i Is represented by Q, the initial twoSub-error matrix, Q jweight Representing vertex v j Is a matrix of optimized errors, vertex texture(j) Representing vertex v j The value of the vertex texture feature information for each pixel, of->Representing vertex v j Is defined by the curvature of the apex of the lens.
In some embodiments, the optimized fold cost is calculated by:
wherein Q is iweight Representing vertex v i Is an optimized error matrix, Q jweight Representing vertex v j Is a function of the optimized error matrix, cost (v i ,v j ) Representing an optimized folding cost and,representing a vertex coordinate matrix.
In some embodiments, before simplifying the original 3D model file data based on the optimized folding cost, the mobile-end-based 3D model asset file simplified conversion method further includes:
obtaining grid simplifying parameters and texture simplifying parameters;
presetting grid simplifying parameters, and calculating to obtain first texture simplifying parameters according to the preset grid simplifying parameters;
the range of the first texture reduction parameter is limited to 2 to 10.
In this embodiment, the texture reduction parameter (i.e., the resolution sampling index parameter) is optimized, the range of beta values is theoretically beta epsilon 1.0, ++ infinity ]; however, in practical applications, the infinite resolution is not significant, and in order to facilitate mobile-side display, the present embodiment limits the range of the first texture simplifying parameter to β∈ [2,10].
It should be noted that, the preset grid simplification parameters may be changed according to actual needs, and the embodiment is not limited specifically.
In some embodiments, simplifying the original 3D model file data based on optimizing folding costs, obtaining simplified 3D model file data, includes:
and according to the grid simplifying parameters and the first texture simplifying parameters, carrying out grid simplifying and texture simplifying on the original 3D model file data based on the optimized folding cost, and obtaining simplified 3D model file data.
In this embodiment, texture simplification in the prior art still has problems of texture distortion and deformation, and since texture is not simplified, the amount of model data is still large. Therefore, in this embodiment, both the mesh simplification and the texture simplification are performed on the original 3D model file data, and the folding cost is increased in the rich texture area, so that certain model detail features can be reserved in the simplification, thereby reducing unnecessary data precision, reducing the size of the 3D model asset file, and improving the rendering efficiency.
In some embodiments, converting the reduced 3D model file data into a new 3D model asset file includes:
the simplified 3D model file data is converted to a new 3D model asset file by a parser.
In the embodiment, 3D model asset file conversion of various format types can be realized through the parser, so that the production cost of a user is greatly reduced.
For ease of understanding by those skilled in the art, a set of preferred embodiments are provided below:
referring to fig. 2, the present embodiment acquires an asset file in a format of fbx, glb, bundle or the like uploaded by a user; the parser parses the asset file content; simplifying original 3D model file data (high-modulus data) into 3D model data (low-modulus data) through QEM algorithm rules; the parser generates other types of asset files such as glb, bundle and the like from the simplified 3D model data; and finally, storing all the files into a warehouse. Wherein:
1. the original 3D model file data is simplified.
The original 3D model file data simplification of this embodiment is based on the currently popular QEM algorithm, which is introduced as follows:
firstly, the original 3D model file data is expressed as a triangular mesh, and the vertexes of each triangular surface in the triangular mesh are obtained and are all vertexesDefining a 4 x 4 initial quadratic error matrix Q, in the grid model, < >>The error of (2) is of the form +.>For the vertex v of a face in the mesh model j 、v i 、v k Assuming that the edge formed by any two vertices is (v) i ,v j ). By folding the edge (v) i ,v j ) Generating a new vertex v new And is the new vertex v new Defining a quadratic error matrix Q new =Q i +Q j
The error matrix Q is related to the sum of squares of the first order abutment surface distances between the new vertex and the original vertex, which is generated by folding of the edges. Let the plane equation be ax+by+cz+d=0, where a 2 +b 2 +c 2 =0, d is a constant. Calculating the distance d according to the point-to-plane distance formula 2 (v new ) The square of (2), namely:
d 2 (v new )=v new T (pp T )v new
wherein p= [ abcd ]] T ,v new Representing the position of the new vertex.
Pp is applied T Denoted as k p It can be expressed as a 4 x 4 symmetric matrix, expressed as follows:
then the quadratic element error matrix Q (v) for vertex v can be expressed as:
wherein plane (v) represents the set of all triangular faces containing vertex v.
In summary, for a folded edge (v i ,v j ) This edge becomes the new vertex v new Cost (v) i ,v j ) The representation is:
wherein v is new =[xyz1] T
The folding cost depends on the new vertex v new There is an optimal position such that cost (v i ,v j ) A local minimum is obtained. The present embodiment selects a point with the smallest folding cost as the new vertex v new Is a position of (c).
In the existing QEM algorithm, texture simplification still has the problems of texture distortion and deformation, and the original 3D model file data volume is still large because the texture is not simplified. The present embodiment therefore optimizes the QEM algorithm as follows:
(1) The resolution sampling index parameter is optimized.
When the QEM algorithm is used, the QEM has a mesh reduction parameter a and a texture reduction parameter β, where a e (0.0, 1.0) is determined according to the actual requirement, and a smaller a indicates a greater reduction degree. Vertex deletion and merging, edge folding, face deletion and merging are performed on the original fine three-dimensional grid using the QEM algorithm. The texture reduction parameter beta (i.e., the resolution sampling level of the reference image) is determined. The value of beta can be determined independently or estimated from the grid reduction parameter a, in particular:
the calculation formula proposed in the present embodiment is β=round (1/a). In theory, the range of beta values is beta.epsilon.1.0, ++ infinity ]; however, in practical applications, the resolution is infinite, and in order to facilitate mobile-side display, the range of the embodiment is limited to be beta e [2,10].
(2) The folding cost of the QEM algorithm is optimized.
Texture information is added in the folding cost calculation, and the vertex texture information and the vertex curvature are weighted to obtain a new error matrix and the folding cost of the vertex.
Wherein Q is iweight Representing vertex v i Is a matrix of optimized errors, vertex texture(i) Representing vertex v i The value of the vertex texture feature information of each pixel, the factor represents a preset weight coefficient,representing vertex v i Is represented by the initial quadratic error matrix, Q jweight Representing vertex v j Is a matrix of optimized errors, vertex texture(j) Representing vertex v j The value of the vertex texture feature information for each pixel, of->Representing vertex v j Is defined by the curvature of the apex of the lens.
Wherein Q is iweight Representing vertex v i Is an optimized error matrix, Q jweight Representing vertex v j Is a function of the optimized error matrix, cost (v i ,v j ) Representing an optimized folding cost and,representing a vertex coordinate matrix.
By optimizing the folding cost, the folding cost is increased in a rich texture area, the purpose of keeping certain model detail characteristics in simplification is achieved, the realization effect is shown in fig. 3, a is a schematic diagram before data simplification in fig. 3, and b is a schematic diagram after data simplification in fig. 3.
2. A 3D model file parser.
Referring to fig. 4, by analyzing the underlying storage format of each 3D model file (i.e., the original 3D model asset file in this embodiment), the data information and the file metadata of each aspect such as the polygon mesh, the texture map, the skeleton system, the material attribute, the scene parameter, etc. are obtained, after simplifying the mesh and the texture, these information are formed into corresponding files according to other 3D model file formats, so as to achieve the effect of uploading a 3D model file in one format to obtain 3D model files in multiple formats, thereby reducing the production cost of the 3D model file.
The inside of the resolver is composed of: the device comprises a reader, a converter and a constructor. The reader is responsible for reading the content of the input 3D model file, namely reading the content of the 3D model file into the memory according to the structure of the file, including but not limited to header information, global settings, materials, grids, maps, environments and the like; the converter is responsible for operating on the read-out content, including but not limited to simplification, compression, etc.; the constructor is responsible for reconstructing the converted data into a new 3D model file and outputting the new 3D model file, namely, the file data read into the memory and converted are then output according to the requirement, the corresponding file is generated by re-assembling, and the file of the same type as the input model file can be output and the file of different types can be output.
In the embodiment, unnecessary data precision can be reduced by increasing texture information simplification and texture parameter optimization, so that the size of an asset file is reduced by 30%, the consumption of a storage space is reduced, the rendering efficiency is improved, various types of file conversion is realized through a parser, and the production cost of a user is greatly reduced.
Referring to fig. 5, an embodiment of the present invention provides a 3D model file simplified conversion system based on a mobile terminal, where the 3D model file simplified conversion system based on a mobile terminal includes a data acquisition unit 100, a file analysis unit 200, a vertex folding unit 300, a folding cost optimization unit 400, a data simplified unit 500, and a file conversion unit 600, where:
a data acquisition unit 100, configured to acquire an original 3D model asset file of a mobile terminal;
the file parsing unit 200 is configured to parse the original 3D model asset file to obtain original 3D model file data;
the vertex folding unit 300 is configured to represent the original 3D model file data into a triangular mesh, obtain vertices of each triangular surface in the triangular mesh, and fold two adjacent vertices in each triangular surface to generate folding cost;
a folding cost optimizing unit 400, configured to optimize folding cost by using vertex texture feature information and vertex curvature of each vertex, and obtain optimized folding cost;
a data simplifying unit 500, configured to simplify original 3D model file data based on the optimized folding cost, and obtain simplified 3D model file data;
a file conversion unit 600 for converting the simplified 3D model file data into a new 3D model asset file.
It should be noted that, since a 3D model file simplified conversion system based on a mobile terminal in the present embodiment and the above-mentioned 3D model file simplified conversion method based on a mobile terminal are based on the same inventive concept, the corresponding content in the method embodiment is also applicable to the system embodiment, and will not be described in detail herein.
The embodiment of the invention also provides 3D model file simplified conversion equipment based on the mobile terminal, which comprises the following steps: at least one control processor and a memory for communication connection with the at least one control processor.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
A non-transitory software program and instructions required to implement a mobile-side-based 3D model file simplified conversion method of the above embodiments are stored in a memory, and when executed by a processor, one of the mobile-side-based 3D model file simplified conversion methods of the above embodiments is performed, for example, the method steps S100 to S600 in fig. 1 described above are performed.
The system embodiments described above are merely illustrative, in that the units illustrated as separate components may or may not be physically separate, i.e., may be located in one place, or may be distributed over a plurality of network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that are executed by one or more control processors to cause the one or more control processors to perform a mobile-end-based 3D model file simplified conversion method in the above method embodiments, for example, to perform the functions of the method steps S100 to S600 in fig. 1 described above.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
While the preferred embodiment of the present application has been described in detail, the embodiment of the present application is not limited to the above-described embodiment, and various equivalent modifications and substitutions can be made by one skilled in the art without departing from the spirit of the embodiment of the present application, and these equivalent modifications and substitutions are intended to be included in the scope of the present application as defined in the appended claims
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention.

Claims (7)

1. The 3D model asset file simplified conversion method based on the mobile terminal is characterized by comprising the following steps of:
acquiring an original 3D model asset file of a mobile terminal;
analyzing the original 3D model asset file to obtain original 3D model file data;
representing the original 3D model file data into triangular meshes, obtaining vertexes of each triangular surface in the triangular meshes, and folding two adjacent vertexes in each triangular surface to generate folding cost;
optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost; the method comprises the following steps:
performing weighted optimization on the vertex texture feature information and the vertex curvature to obtain vertex texture feature information and vertex curvature after weighted optimization;
calculating to obtain an optimization error matrix of each vertex according to the weighted and optimized vertex texture characteristic information and the vertex curvature; the optimization error matrix of each vertex is obtained through calculation in the following mode:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing vertex->Error matrix optimization of>Representing vertex->The value of the vertex texture feature information for each pixel, of->Representing a preset weight coefficient, +.>Representing vertex->Is>Representing an initial quadratic error matrix,>representing vertex->Error matrix optimization of>Representing vertex->The value of the vertex texture feature information for each pixel, of->Representing vertex->Is defined by the vertex curvature of (a);
according to the optimization error matrix of each vertex, calculating to obtain an optimized folding cost; the optimized folding cost is calculated by the following method:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing vertex->Error matrix optimization of>Representing vertex->Is used for the optimization of the error matrix of (a),representing optimized folding costs, < >>Representing a vertex coordinate matrix;
simplifying the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data;
and converting the simplified 3D model file data into a new 3D model asset file.
2. The mobile-side-based 3D model asset file reduction conversion method according to claim 1, wherein before reducing the original 3D model file data based on the optimized folding cost, the mobile-side-based 3D model asset file reduction conversion method further comprises:
obtaining grid simplifying parameters and texture simplifying parameters;
presetting the grid simplifying parameters, and calculating to obtain first texture simplifying parameters according to the preset grid simplifying parameters;
the range of the first texture reduction parameter is limited to 2 to 10.
3. The mobile-end-based 3D model asset file simplified conversion method according to claim 2, wherein the simplifying the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data includes:
and according to the grid simplifying parameters and the first texture simplifying parameters, carrying out grid simplifying and texture simplifying on the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data.
4. The mobile-side-based 3D model asset file simplified conversion method according to claim 1, wherein the converting the simplified 3D model file data into a new 3D model asset file comprises:
the simplified 3D model file data is converted to a new 3D model asset file by a parser.
5. A mobile-based 3D model asset file simplified conversion system, wherein the mobile-based 3D model asset file simplified conversion system comprises:
the data acquisition unit is used for acquiring an original 3D model asset file of the mobile terminal;
the file analysis unit is used for analyzing the original 3D model asset file to obtain original 3D model file data;
the vertex folding unit is used for representing the original 3D model file data into triangular grids, obtaining the vertex of each triangular surface in the triangular grids, and folding two adjacent vertexes in each triangular surface to generate folding cost;
the folding cost optimization unit is used for optimizing the folding cost by adopting vertex texture characteristic information and vertex curvature of each vertex to obtain optimized folding cost; the method comprises the following steps:
performing weighted optimization on the vertex texture feature information and the vertex curvature to obtain vertex texture feature information and vertex curvature after weighted optimization;
calculating to obtain an optimization error matrix of each vertex according to the weighted and optimized vertex texture characteristic information and the vertex curvature; the optimization error matrix of each vertex is obtained through calculation in the following mode:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing vertex->Error matrix optimization of>Representing vertex->The value of the vertex texture feature information for each pixel, of->Representing a preset weight coefficient, +.>Representing vertex->Is>Representing an initial quadratic error matrix,>representing vertex->Error matrix optimization of>Representing vertex->The value of the vertex texture feature information for each pixel, of->Representing vertex->Is defined by the vertex curvature of (a);
according to the optimization error matrix of each vertex, calculating to obtain an optimized folding cost; the optimized folding cost is calculated by the following method:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing vertex->Error matrix optimization of>Representing vertex->Is used for the optimization of the error matrix of (a),representing optimized folding costs, < >>Representing a vertex coordinate matrix;
the data simplifying unit is used for simplifying the original 3D model file data based on the optimized folding cost to obtain simplified 3D model file data;
and the file conversion unit is used for converting the simplified 3D model file data into a new 3D model asset file.
6. A mobile-side-based 3D model asset file simplified conversion device, comprising at least one control processor and a memory for communicative connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the mobile-end-based 3D model asset file simplified conversion method as claimed in any one of claims 1 to 4.
7. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the mobile-based 3D model asset file simplified conversion method according to any one of claims 1 to 4.
CN202310819262.XA 2023-07-05 2023-07-05 3D model asset file simplified conversion method and system based on mobile terminal Active CN117009291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310819262.XA CN117009291B (en) 2023-07-05 2023-07-05 3D model asset file simplified conversion method and system based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310819262.XA CN117009291B (en) 2023-07-05 2023-07-05 3D model asset file simplified conversion method and system based on mobile terminal

Publications (2)

Publication Number Publication Date
CN117009291A CN117009291A (en) 2023-11-07
CN117009291B true CN117009291B (en) 2024-02-13

Family

ID=88566465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310819262.XA Active CN117009291B (en) 2023-07-05 2023-07-05 3D model asset file simplified conversion method and system based on mobile terminal

Country Status (1)

Country Link
CN (1) CN117009291B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6362820B1 (en) * 1999-06-24 2002-03-26 Microsoft Corporation Quadric metric for simplifying meshes with appearance attributes
CN102420839A (en) * 2010-09-27 2012-04-18 中国电信股份有限公司 Method and system for realizing browse of 3D (three-dimensional) model as well as server
KR20180117499A (en) * 2017-04-19 2018-10-29 에스케이텔레콤 주식회사 Apparatus and method for simplification of 3D mesh data
CN111275805A (en) * 2020-01-20 2020-06-12 广州极点三维信息科技有限公司 Model mesh optimization method and device based on 3D model texture
CN112562085A (en) * 2020-12-22 2021-03-26 广联达科技股份有限公司 BIM model simplification method and device
CN113870437A (en) * 2021-09-26 2021-12-31 瑞测(江苏)空间信息技术有限公司 Digital twin BIM model conversion and lightweight method and device
CN113947668A (en) * 2021-10-15 2022-01-18 东软集团股份有限公司 Model simplification method and related equipment thereof
CN115718726A (en) * 2022-06-14 2023-02-28 海纳云物联科技有限公司 Lightweight and encrypted storage method for BIM model data
CN115731354A (en) * 2022-11-29 2023-03-03 国网冀北电力有限公司超高压分公司 Visual relationship-based power grid equipment three-dimensional twin model slice simplification method
CN116051708A (en) * 2023-01-30 2023-05-02 四川视慧智图空间信息技术有限公司 Three-dimensional scene lightweight model rendering method, equipment, device and storage medium
CN116126809A (en) * 2023-04-19 2023-05-16 中亿丰数字科技集团有限公司 Building information model data storage conversion method based on national standard

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101525054B1 (en) * 2008-01-03 2015-06-03 삼성전자주식회사 Apparatus and method for simplifing three dimensional mesh data
US20130271453A1 (en) * 2011-01-05 2013-10-17 Rightware Oy Method and system for generating a three-dimensional user-interface for an embedded device
US8766979B2 (en) * 2012-01-20 2014-07-01 Vangogh Imaging, Inc. Three dimensional data compression
EP3032495B1 (en) * 2014-12-10 2019-11-13 Dassault Systèmes Texturing a 3d modeled object
US10846943B2 (en) * 2018-05-14 2020-11-24 Microsoft Technology Licensing, Llc Optimizing viewing assets

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6362820B1 (en) * 1999-06-24 2002-03-26 Microsoft Corporation Quadric metric for simplifying meshes with appearance attributes
CN102420839A (en) * 2010-09-27 2012-04-18 中国电信股份有限公司 Method and system for realizing browse of 3D (three-dimensional) model as well as server
KR20180117499A (en) * 2017-04-19 2018-10-29 에스케이텔레콤 주식회사 Apparatus and method for simplification of 3D mesh data
CN111275805A (en) * 2020-01-20 2020-06-12 广州极点三维信息科技有限公司 Model mesh optimization method and device based on 3D model texture
CN112562085A (en) * 2020-12-22 2021-03-26 广联达科技股份有限公司 BIM model simplification method and device
CN113870437A (en) * 2021-09-26 2021-12-31 瑞测(江苏)空间信息技术有限公司 Digital twin BIM model conversion and lightweight method and device
CN113947668A (en) * 2021-10-15 2022-01-18 东软集团股份有限公司 Model simplification method and related equipment thereof
CN115718726A (en) * 2022-06-14 2023-02-28 海纳云物联科技有限公司 Lightweight and encrypted storage method for BIM model data
CN115731354A (en) * 2022-11-29 2023-03-03 国网冀北电力有限公司超高压分公司 Visual relationship-based power grid equipment three-dimensional twin model slice simplification method
CN116051708A (en) * 2023-01-30 2023-05-02 四川视慧智图空间信息技术有限公司 Three-dimensional scene lightweight model rendering method, equipment, device and storage medium
CN116126809A (en) * 2023-04-19 2023-05-16 中亿丰数字科技集团有限公司 Building information model data storage conversion method based on national standard

Also Published As

Publication number Publication date
CN117009291A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
Hoppe Progressive meshes
US7656401B2 (en) Techniques for representing 3D scenes using fixed point data
Cignoni et al. BDAM—Batched Dynamic Adaptive Meshes for high performance terrain visualization
CN105787909B (en) Image procossing for high dynamic range images
Burger et al. Principles of digital image processing: fundamental techniques
US8665266B2 (en) Global visualization process terrain database builder
USRE41983E1 (en) Method of organizing and compressing spatial data
US8766979B2 (en) Three dimensional data compression
US9245383B2 (en) Accelerated three-dimensional intersection testing using compressed volumes
US20090317020A1 (en) Variable Resolution Images
US20090317010A1 (en) Multiple Resolution Image Storage
EP1031094A2 (en) System and method for computer modeling of 3d objects and 2d images by mesh constructions that incorporate non-spatial data such as color or texture
CN110969691B (en) WebGL-based photographic data scheduling method and system
CN107992589B (en) SVG map data loading method, device and system
CN110597900B (en) Method for generating vector slice by GDB data in real time according to needs
Nguyen et al. Raw image reconstruction using a self-contained srgb–jpeg image with small memory overhead
CN109002452A (en) Map tile update method, device and computer readable storage medium
CN115129801A (en) Map data processing method, device, equipment and storage medium
CN112989482A (en) BIM model data generation method and device and building method and device
CN117009291B (en) 3D model asset file simplified conversion method and system based on mobile terminal
CN115187445A (en) Visualization method and device based on Unity engine loading model
WO2008021839A1 (en) Interpolation according to a function represented using unevenly spaced samples of the function
Ai et al. Continuous-scale 3D terrain visualization based on a detail-increment model
US20150091929A1 (en) Relevant method and device for compression, decompression and progressive transmission of spatial data
CN117115348A (en) Rendering method and device of three-dimensional model and computer readable storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 410000, east side of Building 1, 3001, Phase I, Malanshan Mango Cultural and Creative Plaza, No. 30 Yazipu Road, Yuehu Street, Kaifu District, Changsha City, Hunan Province

Applicant after: Hunan Mango Rongchuang Technology Co.,Ltd.

Address before: 410005 Room 4, Room 96, No.1 Yazipu Road, Yuehu Street, Kaifu District, Changsha City, Hunan Province

Applicant before: Hunan Mango Wuji Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant