[go: up one dir, main page]

CN112419511B - Three-dimensional model file processing method and device, storage medium and server - Google Patents

Three-dimensional model file processing method and device, storage medium and server Download PDF

Info

Publication number
CN112419511B
CN112419511B CN202011570023.8A CN202011570023A CN112419511B CN 112419511 B CN112419511 B CN 112419511B CN 202011570023 A CN202011570023 A CN 202011570023A CN 112419511 B CN112419511 B CN 112419511B
Authority
CN
China
Prior art keywords
dimensional model
model file
user
terminal
receiving
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
CN202011570023.8A
Other languages
Chinese (zh)
Other versions
CN112419511A (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.)
Foshan Siyu Technology Service Co.,Ltd.
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202011570023.8A priority Critical patent/CN112419511B/en
Publication of CN112419511A publication Critical patent/CN112419511A/en
Application granted granted Critical
Publication of CN112419511B publication Critical patent/CN112419511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a three-dimensional model file processing method, a three-dimensional model file processing device, a storage medium and a server. The method comprises the following steps: receiving three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters. The method and the device solve the technical problems of complex process, long time consumption and high labor cost caused by adopting image processing software to optimally process the three-dimensional model file.

Description

Three-dimensional model file processing method and device, storage medium and server
Technical Field
The present invention relates to the field of three-dimensional model processing, and in particular, to a three-dimensional model file processing method, device, storage medium and server.
Background
Computer graphic image technology has been widely used in the fields of game entertainment, industrial manufacturing auxiliary design, indoor and outdoor building design, etc.
Thanks to the development of graphic image technology, AR/VR technology has also developed rapidly in recent years, and its biggest feature is to bring realistic real-time picture effects and interactive experience to users. Thus, the "realistic real-time visual effects" and "interactive experiences" are key goals that must be achieved in the AR/VR content production process.
The operation process of the AR/VR content mainly comprises the following three steps: firstly, reading three-dimensional model file data into a memory, then performing rendering calculation through a GPU, obtaining pixel picture effects of a single frame after finishing calculation, and finally transmitting the picture effects to a user interface for display for a user. This process must be repeated more than 30-40 times per second to ensure that the user is able to get a comfortable and smooth experience.
Because the computational power of the hardware is limited by cost (a cost of purchase acceptable to a typical consumer), more stringent requirements are imposed on the production of AR/VR content to achieve the above requirements. The more triangles a three-dimensional model to be presented on a screen contains, the longer the calculation time is needed, and conversely, the less the calculation time is needed. The more triangles a three-dimensional model contains, the higher the fidelity of the picture, and vice versa. Therefore, the main contradiction is that the realistic effect of the rendered picture is ensured, and the rendering speed of 30-40 frames is kept under the hardware environment with limited computing power.
To solve the contradiction, the common practice in the industry is to optimize the three-dimensional model to be displayed by a 3D art designer, and control the total number of triangular faces contained in the three-dimensional model in a reasonable range. On one hand, the most abundant model details are represented by the least triangular faces as possible, and on the other hand, unnecessary triangular faces are reduced as much as possible, so that the calculation time is reduced, and the experience requirement of a user is met.
However, the optimization process includes multiple processes of building a high-precision model, subtracting a surface, developing UV, baking a normal map and the like, and depends on a designer to operate through various image processing software, and the time is different from a few hours to a few days, so that labor and time are very consumed.
Aiming at the problems of complex process, long time consumption and high labor cost caused by adopting image processing software to optimally process a three-dimensional model file in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a three-dimensional model file processing method, a device, a storage medium and a server, so as to solve the problems of complex process, long time consumption and high labor cost caused by adopting image processing software to optimally process the three-dimensional model file.
In order to achieve the above object, according to one aspect of the present application, there is provided a three-dimensional model file processing method.
The three-dimensional model file processing method comprises the following steps: receiving three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters.
Further, the receiving the three-dimensional model optimization parameters and the three-dimensional model file configured by the user at the terminal includes: receiving a face reduction ratio or polygon total face number parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises: and when the three-dimensional model optimization parameters meet preset conditions, performing face reduction calculation operation on the three-dimensional model file according to face reduction proportion or polygon total face number parameters.
Further, the receiving the three-dimensional model optimization parameters and the three-dimensional model file configured by the user at the terminal includes: receiving a spreading UV mode parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises: and when the three-dimensional model optimization parameters meet preset conditions, performing unfolding UV mapping calculation operation on the three-dimensional model file according to the unfolding UV mode parameters.
Further, the receiving the three-dimensional model optimization parameters and the three-dimensional model file configured by the user at the terminal includes: receiving a chord height tolerance value and a chord angle tolerance value parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises: and when the three-dimensional model optimization parameters meet preset conditions, executing curved surface transformation triangle operation on the three-dimensional model file according to the chord height tolerance value and the chord angle tolerance value parameters.
Further, the receiving the three-dimensional model optimization parameters and the three-dimensional model file configured by the user at the terminal includes: receiving a face reduction ratio or polygon total face number parameter, an unfolding UV mode parameter and a baking parameter which are set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises: when the three-dimensional model optimization parameters meet preset conditions, performing face reduction calculation operation on the three-dimensional model file according to face reduction proportion or polygon total face number parameters; performing an unfolding UV map calculation operation on the three-dimensional model file according to the unfolding UV mode parameters; and performing baking normal map calculation operation on the three-dimensional model file according to baking parameters.
Further, when the three-dimensional model optimization parameter meets a preset condition, optimizing the three-dimensional model file according to the three-dimensional model optimization parameter further comprises: when a query request sent by a user at a terminal is received, judging whether the optimization of the three-dimensional model file is completed or not; if yes, establishing a mapping relation between the optimized three-dimensional model file and the target address; and when receiving a downloading request sent by a user through the target address, outputting the optimized three-dimensional model file to a terminal according to the mapping relation.
In order to achieve the above object, according to another aspect of the present application, there is provided a three-dimensional model file processing apparatus.
The three-dimensional model file processing device according to the present application includes: the parameter receiving module is used for receiving three-dimensional model optimization parameters and three-dimensional model files configured by a user at the terminal; and the file optimization module is used for optimizing the three-dimensional model file according to the three-dimensional model optimization parameters when the three-dimensional model optimization parameters meet preset conditions.
Further, the method further comprises the following steps: the task judging module is used for judging whether the optimization of the three-dimensional model file is finished or not when a query request sent by a user at the terminal is received; the relation establishing module is used for establishing the mapping relation between the optimized three-dimensional model file and the target address if the relation is positive; and the file output module is used for outputting the optimized three-dimensional model file to the terminal according to the mapping relation when receiving a downloading request sent by a user through the target address.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium.
According to the storage medium, the three-dimensional model file processing method is stored.
To achieve the above object, according to another aspect of the present application, there is provided a server.
A server according to the present application, comprising: the three-dimensional model file processing device comprises a memory and a processor, wherein the processor is used for executing the three-dimensional model file processing method stored in the memory.
In the embodiment of the application, a three-dimensional model file processing mode is adopted, and three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal are received; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters; the method achieves the aim of optimizing the three-dimensional model file by adopting the three-dimensional model file processing software to replace the image processing software, thereby realizing the technical effects of simple process, short time consumption and low labor cost, and further solving the technical problems of complex process, long time consumption and high labor cost caused by optimizing the three-dimensional model file by adopting the image processing software.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, are included to provide a further understanding of the application and to provide a further understanding of the application with regard to the other features, objects and advantages of the application. The drawings of the illustrative embodiments of the present application and their descriptions are for the purpose of illustrating the present application and are not to be construed as unduly limiting the present application. In the drawings:
FIG. 1 is a flow diagram of a three-dimensional model file processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for processing a three-dimensional model file according to a preferred embodiment of the present application;
FIG. 3 is a schematic structural view of a three-dimensional model file processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural view of a three-dimensional model file processing apparatus according to a preferred embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the present application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate an azimuth or a positional relationship based on that shown in the drawings. These terms are only used to better describe the present invention and its embodiments and are not intended to limit the scope of the indicated devices, elements or components to the particular orientations or to configure and operate in the particular orientations.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present invention will be understood by those of ordinary skill in the art according to the specific circumstances.
Furthermore, the terms "mounted," "configured," "provided," "connected," "coupled," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; may be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements, or components. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to an embodiment of the present invention, there is provided a three-dimensional model file processing method, as shown in fig. 1, including the following steps S101 to S102:
step S101, receiving three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal;
in this embodiment, the three-dimensional model file is AR/VR content. The three-dimensional model optimization parameters relate to parameters such as face reduction proportion or polygon total face number, UV unfolding mode, baking, chord height tolerance value, chord angle tolerance value and the like. The above parameters may be configured individually or in combination, and the user may configure one, two or more of the above parameters according to agreed rules.
In a specific embodiment, the convention for the subtractive surface proportionality parameter is in units of "percent" and ranges from 0% to 100%.
In one specific embodiment, the rules of convention for the polytropic total parameter range from 0 to 99,999,999 in "individual" units.
In a specific embodiment, the rule of convention for developing UV mode parameters is 4, including (1) automatically identifying (2) for organisms (3) for hard surface objects, based on the face-to-face included angle (4) for hard surface objects, based on the face coordinate direction.
In a specific embodiment, the convention for chord height tolerance value parameters is in units of "millimeters" ranging from 0.0001 to 1000 millimeters.
In a specific embodiment, the rules of the chord angle tolerance value parameter are set by taking an angle as a unit, and the value ranges from 0 to 90 degrees.
In a specific embodiment, the three-dimensional model file format entered by the user includes: fbx, obj, gltf, stl, ply,3ds, blend, lws, lwo,3d, uc, dxf, prt, stp, step, stl, cgr, igs, iges, catart, cat product, asm,3dm, jt, sldasm, sldprt, ipt, iam, rvt, gda, zip.
In a specific embodiment, the terminal may be an intelligent device such as a computer or a mobile phone; the application processing software is installed on the server, the software is opened, a user can perform any one or more of the above parameter configuration in a software interface and upload the server, and parameter preparation is provided for the optimization processing of the three-dimensional model file.
And step S102, when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters.
In this embodiment, the server presets one or more optimization processing modes, so that configured and uploaded three-dimensional model optimization parameters can be input into the optimization processing modes to perform optimization processing on the three-dimensional model file.
In a specific embodiment, a server presets a convention condition, when judging that the convention condition is met, the parameter type of the uploaded three-dimensional model optimization parameter is determined, and a certain corresponding parameter or a plurality of parameters can be input into a corresponding optimization processing mode according to different parameter types to perform optimization processing, so that the optimization processing of constructing a high-precision model, subtracting a surface, expanding UV, baking a normal map and the like of a three-dimensional model file by adopting the preset optimization processing mode is realized, and the optimization processing of constructing the high-precision model, subtracting the surface, expanding UV, baking the normal map and the like is performed empirically without using image processing software by personnel.
In a specific embodiment, if the server judges that the contract condition is not met, the server triggers the discovery of an abnormal event, generates specific cause content of the abnormality, and returns the specific cause content to the terminal in a text form. The user can check the reasons of the abnormality through the terminal software interface and reconfigure the parameters meeting the conditions.
In a preferred embodiment, the rule of engagement is an rule of engagement of each parameter, that is, whether the three-dimensional model optimization parameter set by the user meets a rule of engagement in advance, for example: whether the UV mode of expansion is one of the 4 agreed types or not within the percentage range of the subtractive surface ratio, and the like.
In some embodiments, the server sends a message waiting about 1-3 seconds to the terminal after uploading the parameters, and reminds personnel to wait for a little time, so that enough time is provided for the server to perform optimization processing of the three-dimensional model file.
In a preferred embodiment, as shown in fig. 2, when the three-dimensional model optimization parameter meets a preset condition, the method further comprises the following steps after optimizing the three-dimensional model file according to the three-dimensional model optimization parameter:
step S103, judging whether the optimization of the three-dimensional model file is finished or not when a query request sent by a user at a terminal is received;
step S104, if yes, establishing a mapping relation between the optimized three-dimensional model file and the target address;
and step 105, outputting the optimized three-dimensional model file to a terminal according to the mapping relation when receiving a downloading request sent by a user through the target address.
In this embodiment, after the user configures the parameters 1-3s, a request for inquiring the optimization result may be sent to the server through the operation of the software interface, after the server receives the request, it checks whether the optimization task is completed, if so, the mapping relationship is established between the optimized three-dimensional model file and the target address, and the target address is sent to the software interface of the terminal, when the user clicks the target address link, the server sends the optimized three-dimensional model file to the terminal for display.
In a preferred embodiment, a download link for retrieving the target address is further provided, and when the user clicks on the download link of the target address, the server downloads the optimized three-dimensional model file to the terminal and saves the file.
From the above description, it can be seen that the following technical effects are achieved:
in the embodiment of the application, a three-dimensional model file processing mode is adopted, and three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal are received; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters; the method achieves the aim of optimizing the three-dimensional model file by adopting the three-dimensional model file processing software to replace the image processing software, thereby realizing the technical effects of simple process, short time consumption and low labor cost, and further solving the technical problems of complex process, long time consumption and high labor cost caused by optimizing the three-dimensional model file by adopting the image processing software.
According to an embodiment of the present invention, preferably,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a face reduction ratio or polygon total face number parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
and when the three-dimensional model optimization parameters meet preset conditions, performing face reduction calculation operation on the three-dimensional model file according to face reduction proportion or polygon total face number parameters.
Because the 3D model input by the user comprises tens of millions and hundreds of millions of triangular surfaces, the use condition of the consumer-level application scene cannot be met, and the surface reduction optimization processing is required.
The intelligent face-subtracting algorithm in the embodiment carries out reconstruction calculation based on the morphological boundary of the input model, combines adjacent vertexes and faces, and constructs a new triangular face structure similar to the original morphology. For example, two line segments containing three vertices are combined into one line segment and two vertices. The two triangular faces contain six vertices and are combined into three vertices of a triangular face. Generating a new triangular surface will approximately preserve the coordinate orientation and boundary size of the original shape.
According to an embodiment of the present invention, preferably,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a spreading UV mode parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
and when the three-dimensional model optimization parameters meet preset conditions, performing unfolding UV mapping calculation operation on the three-dimensional model file according to the unfolding UV mode parameters.
The surface texture of the 3D model file contains picture information such as diffuse reflection mapping, highlight mapping, AO mapping, normal mapping, and the like. These pieces of picture information data are stored based on a two-dimensional coordinate system (indicated by U, V). The three-dimensional structure of the 3D model includes information data such as vertices, line segments, triangular surfaces, and the like, which are stored based on a three-dimensional coordinate system (indicated by X, Y, Z).
In the intelligent UV display in this embodiment, after the 3D model is reconstructed, the mapping relationship between the newly generated stereo structure and the texture map can be recalculated. This ensures that the texture map contained in the model before the non-optimization can be used on the newly generated model.
According to an embodiment of the present invention, preferably,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a chord height tolerance value and a chord angle tolerance value parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
and when the three-dimensional model optimization parameters meet preset conditions, executing curved surface transformation triangle operation on the three-dimensional model file according to the chord height tolerance value and the chord angle tolerance value parameters.
The user imports (uploads from the client to the cloud) the CAD model data, and optimally converts the CAD model data into a 3D model based on vertexes, lines and trigonometry surfaces. Since CAD model data is actually an abstract set of functions, it does not contain specific numerical results. When the accuracy difference exists in the conversion, the higher the accuracy of the parameter input by the user is, the closer the converted triangular surface grid is to the shape of the function curve, and otherwise, the lower the accuracy is, the simpler the converted triangular surface grid shape is. In popular terms, the difference perceived by the naked eyes of a user is that the smoother the surface of the 3D model with higher precision is, the more true the details are, whereas the 3D model with lower precision is, the rougher the surface is, the less and the unreal the details are.
Aiming at the first type of CAD model data, in the embodiment, the intelligent optimization CAD algorithm is adopted to calculate the topological structure of the curved surface data, a plurality of triangular surfaces are created, the overlapped vertexes and boundaries are combined with each other, and then a new three-dimensional grid structure is formed. The purpose of this is to convert the surface data type into a triangle surface data type, i.e. to change it into a second type of data.
In a specific embodiment, the accuracy parameters may be preset, and then the "intelligent optimization CAD algorithm" is used to convert the CAD model data that is imported (uploaded from the user terminal to the cloud) into triangular model data, so as to obtain a 3D model file that can be smoothly operated in the corresponding terminal device.
According to an embodiment of the present invention, preferably,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a face reduction ratio or polygon total face number parameter, an unfolding UV mode parameter and a baking parameter which are set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
when the three-dimensional model optimization parameters meet preset conditions, performing face reduction calculation operation on the three-dimensional model file according to face reduction proportion or polygon total face number parameters;
performing an unfolding UV map calculation operation on the three-dimensional model file according to the unfolding UV mode parameters;
and performing baking normal map calculation operation on the three-dimensional model file according to baking parameters.
The AR/VR content will typically include a wide variety of 3D models such as personas, clothing, props, mechanical structures, architectural shapes, etc. The appearance of these models varies and the object surface contains various texture details such as leather texture, cloth fabric, metal scratches, metal rust, wood grain cracks, etc. The higher the degree of restoration of these details in the picture, the more realistic the user can get a more realistic substitution experience. It is therefore critical for the user experience to preserve as much as possible the texture details of the object surfaces.
In a specific embodiment, the above-mentioned process is an intelligent PBR algorithm, and three-dimensional texture data can be stored in the process by analyzing the texture detail structure of the 3D model surface and then mapping the texture detail structure to a picture, and using three channels of RGB. This picture (Texture) is called Normal Map. All detail data of the high-precision model is reserved and stored in a corresponding normal map. Based on the face reduction proportion or the polygon total face number parameter, the unfolding UV mode parameter and the baking parameter combined with the intelligent PBR algorithm, the optimization processing of the three-dimensional model file is realized, the processing process is greatly simplified, the processing time is shortened, and the labor cost is reduced.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above three-dimensional model file processing method, as shown in fig. 3, where the apparatus includes:
the parameter receiving module 10 is used for receiving the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal;
in this embodiment, the three-dimensional model file is AR/VR content. The three-dimensional model optimization parameters relate to parameters such as face reduction proportion or polygon total face number, UV unfolding mode, baking, chord height tolerance value, chord angle tolerance value and the like. The above parameters may be configured individually or in combination, and the user may configure one, two or more of the above parameters according to agreed rules.
In a specific embodiment, the convention for the subtractive surface proportionality parameter is in units of "percent" and ranges from 0% to 100%.
In one specific embodiment, the rules of convention for the polytropic total parameter range from 0 to 99,999,999 in "individual" units.
In a specific embodiment, the rule of convention for developing UV mode parameters is 4, including (1) automatically identifying (2) for organisms (3) for hard surface objects, based on the face-to-face included angle (4) for hard surface objects, based on the face coordinate direction.
In a specific embodiment, the convention for chord height tolerance value parameters is in units of "millimeters" ranging from 0.0001 to 1000 millimeters.
In a specific embodiment, the rules of the chord angle tolerance value parameter are set by taking an angle as a unit, and the value ranges from 0 to 90 degrees.
In a specific embodiment, the three-dimensional model file format entered by the user includes: fbx, obj, gltf, stl, ply,3ds, blend, lws, lwo,3d, uc, dxf, prt, stp, step, stl, cgr, igs, iges, catart, cat product, asm,3dm, jt, sldasm, sldprt, ipt, iam, rvt, gda, zip.
In a specific embodiment, the terminal may be an intelligent device such as a computer or a mobile phone; the application processing software is installed on the server, the software is opened, a user can perform any one or more of the above parameter configuration in a software interface and upload the server, and parameter preparation is provided for the optimization processing of the three-dimensional model file.
And the file optimization module 20 is used for optimizing the three-dimensional model file according to the three-dimensional model optimization parameters when the three-dimensional model optimization parameters meet preset conditions.
In this embodiment, the server presets one or more optimization processing modes, so that configured and uploaded three-dimensional model optimization parameters can be input into the optimization processing modes to perform optimization processing on the three-dimensional model file.
In a specific embodiment, a server presets a convention condition, when judging that the convention condition is met, the parameter type of the uploaded three-dimensional model optimization parameter is determined, and a certain corresponding parameter or a plurality of parameters can be input into a corresponding optimization processing mode according to different parameter types to perform optimization processing, so that the optimization processing of constructing a high-precision model, subtracting a surface, expanding UV, baking a normal map and the like of a three-dimensional model file by adopting the preset optimization processing mode is realized, and the optimization processing of constructing the high-precision model, subtracting the surface, expanding UV, baking the normal map and the like is performed empirically without using image processing software by personnel.
In a specific embodiment, if the server judges that the contract condition is not met, the server triggers the discovery of an abnormal event, generates specific cause content of the abnormality, and returns the specific cause content to the terminal in a text form. The user can check the reasons of the abnormality through the terminal software interface and reconfigure the parameters meeting the conditions.
In a preferred embodiment, the rule of engagement is an rule of engagement of each parameter, that is, whether the three-dimensional model optimization parameter set by the user meets a rule of engagement in advance, for example: whether the UV mode of expansion is one of the 4 agreed types or not within the percentage range of the subtractive surface ratio, and the like.
In some embodiments, the server sends a message waiting about 1-3 seconds to the terminal after uploading the parameters, and reminds personnel to wait for a little time, so that enough time is provided for the server to perform optimization processing of the three-dimensional model file.
According to an embodiment of the present invention, as shown in fig. 4, preferably, the method further includes:
the task judging module 30 is configured to judge whether the optimization of the three-dimensional model file is completed when a query request sent by a user at a terminal is received;
a relationship establishing module 40, configured to establish a mapping relationship between the optimized three-dimensional model file and the target address if the relationship is positive;
and the file output module 50 is used for outputting the optimized three-dimensional model file to the terminal according to the mapping relation when receiving the downloading request sent by the user through the target address.
In this embodiment, after the user configures the parameters 1-3s, a request for inquiring the optimization result may be sent to the server through the operation of the software interface, after the server receives the request, it checks whether the optimization task is completed, if so, the mapping relationship is established between the optimized three-dimensional model file and the target address, and the target address is sent to the software interface of the terminal, when the user clicks the target address link, the server sends the optimized three-dimensional model file to the terminal for display.
In a preferred embodiment, a download link for retrieving the target address is further provided, and when the user clicks on the download link of the target address, the server downloads the optimized three-dimensional model file to the terminal and saves the file.
From the above description, it can be seen that the following technical effects are achieved:
in the embodiment of the application, a three-dimensional model file processing mode is adopted, and three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal are received; when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters; the method achieves the aim of optimizing the three-dimensional model file by adopting the three-dimensional model file processing software to replace the image processing software, thereby realizing the technical effects of simple process, short time consumption and low labor cost, and further solving the technical problems of complex process, long time consumption and high labor cost caused by optimizing the three-dimensional model file by adopting the image processing software.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (8)

1. The three-dimensional model file processing method is characterized by comprising the following steps of:
receiving three-dimensional model optimization parameters and three-dimensional model files configured by a user at a terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters;
the server presets one or more optimizing processing modes;
presetting precision parameters, and converting CAD model data uploaded to a cloud end from a user terminal into triangular model data by using an intelligent optimization CAD algorithm;
adopting an intelligent optimization CAD algorithm to calculate the topological structure of the curved surface data, creating a plurality of triangular surfaces, combining the overlapped vertexes and boundaries with each other, and combining the overlapped vertexes and boundaries into a new three-dimensional grid structure;
when a query request sent by a user at a terminal is received, judging whether the optimization of the three-dimensional model file is completed or not;
if yes, establishing a mapping relation between the optimized three-dimensional model file and the target address;
and when receiving a downloading request sent by a user through the target address, outputting the optimized three-dimensional model file to a terminal according to the mapping relation.
2. The method for processing a three-dimensional model file according to claim 1, wherein,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a face reduction ratio or polygon total face number parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
and when the three-dimensional model optimization parameters meet preset conditions, performing face reduction calculation operation on the three-dimensional model file according to face reduction proportion or polygon total face number parameters.
3. The method for processing a three-dimensional model file according to claim 1, wherein,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a spreading UV mode parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
and when the three-dimensional model optimization parameters meet preset conditions, performing unfolding UV mapping calculation operation on the three-dimensional model file according to the unfolding UV mode parameters.
4. The method for processing a three-dimensional model file according to claim 1, wherein,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a chord height tolerance value and a chord angle tolerance value parameter set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
and when the three-dimensional model optimization parameters meet preset conditions, executing curved surface transformation triangle operation on the three-dimensional model file according to the chord height tolerance value and the chord angle tolerance value parameters.
5. The method for processing a three-dimensional model file according to claim 1, wherein,
the receiving of the three-dimensional model optimization parameters and the three-dimensional model files configured by the user at the terminal comprises the following steps:
receiving a face reduction ratio or polygon total face number parameter, an unfolding UV mode parameter and a baking parameter which are set by a user at a terminal, and receiving a three-dimensional model file selected by the user at the terminal;
when the three-dimensional model optimization parameters meet preset conditions, optimizing the three-dimensional model file according to the three-dimensional model optimization parameters comprises:
when the three-dimensional model optimization parameters meet preset conditions, performing face reduction calculation operation on the three-dimensional model file according to face reduction proportion or polygon total face number parameters;
performing an unfolding UV map calculation operation on the three-dimensional model file according to the unfolding UV mode parameters;
and performing baking normal map calculation operation on the three-dimensional model file according to baking parameters.
6. A three-dimensional model file processing apparatus, comprising:
the parameter receiving module is used for receiving three-dimensional model optimization parameters and three-dimensional model files configured by a user at the terminal;
the file optimization module is used for optimizing the three-dimensional model file according to the three-dimensional model optimization parameters when the three-dimensional model optimization parameters meet preset conditions;
the server presets one or more optimizing processing modes;
presetting precision parameters, and converting CAD model data uploaded to a cloud end from a user terminal into triangular model data by using an intelligent optimization CAD algorithm;
adopting an intelligent optimization CAD algorithm to calculate the topological structure of the curved surface data, creating a plurality of triangular surfaces, combining the overlapped vertexes and boundaries with each other, and combining the overlapped vertexes and boundaries into a new three-dimensional grid structure;
the task judging module is used for judging whether the optimization of the three-dimensional model file is finished or not when a query request sent by a user at the terminal is received;
the relation establishing module is used for establishing the mapping relation between the optimized three-dimensional model file and the target address if the relation is positive;
and the file output module is used for outputting the optimized three-dimensional model file to the terminal according to the mapping relation when receiving a downloading request sent by a user through the target address.
7. A storage medium for storing the three-dimensional model file processing method according to any one of claims 1 to 5.
8. A server, comprising: a memory and a processor, characterized in that the processor is adapted to execute the three-dimensional model file processing method according to any one of claims 1 to 5 stored in the memory.
CN202011570023.8A 2020-12-26 2020-12-26 Three-dimensional model file processing method and device, storage medium and server Active CN112419511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011570023.8A CN112419511B (en) 2020-12-26 2020-12-26 Three-dimensional model file processing method and device, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011570023.8A CN112419511B (en) 2020-12-26 2020-12-26 Three-dimensional model file processing method and device, storage medium and server

Publications (2)

Publication Number Publication Date
CN112419511A CN112419511A (en) 2021-02-26
CN112419511B true CN112419511B (en) 2024-02-13

Family

ID=74782641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011570023.8A Active CN112419511B (en) 2020-12-26 2020-12-26 Three-dimensional model file processing method and device, storage medium and server

Country Status (1)

Country Link
CN (1) CN112419511B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113327310B (en) * 2021-06-28 2025-01-10 江苏数字看点科技有限公司 A method for batch programmatic automatic face reduction and baking of 3D data
CN114022616B (en) * 2021-11-16 2023-07-07 北京城市网邻信息技术有限公司 Model processing method and device, electronic equipment and storage medium
CN114092677B (en) * 2021-11-26 2022-11-18 北京德塔精要信息技术有限公司 3D model conversion optimization method, device and equipment
CN114119835B (en) * 2021-12-03 2022-11-08 北京冰封互娱科技有限公司 Hard surface model processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074274A (en) * 2017-12-26 2018-05-25 深圳拎得清软件有限公司 BIM model real-time rendering method and devices based on browser
CN108763268A (en) * 2018-04-04 2018-11-06 深圳市彬讯科技有限公司 A kind of batch processing method of threedimensional model and device, storage medium
JP2019128941A (en) * 2018-01-24 2019-08-01 アップル インコーポレイテッドApple Inc. Devices, methods and graphical user interfaces for system-wide behavior for 3d models
CN110751712A (en) * 2019-10-22 2020-02-04 中设数字技术股份有限公司 Online three-dimensional rendering technology and system based on cloud platform
CN111754632A (en) * 2019-09-29 2020-10-09 北京京东尚科信息技术有限公司 Business service processing method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013032955A1 (en) * 2011-08-26 2013-03-07 Reincloud Corporation Equipment, systems and methods for navigating through multiple reality models

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074274A (en) * 2017-12-26 2018-05-25 深圳拎得清软件有限公司 BIM model real-time rendering method and devices based on browser
JP2019128941A (en) * 2018-01-24 2019-08-01 アップル インコーポレイテッドApple Inc. Devices, methods and graphical user interfaces for system-wide behavior for 3d models
CN108763268A (en) * 2018-04-04 2018-11-06 深圳市彬讯科技有限公司 A kind of batch processing method of threedimensional model and device, storage medium
CN111754632A (en) * 2019-09-29 2020-10-09 北京京东尚科信息技术有限公司 Business service processing method, device, equipment and storage medium
CN110751712A (en) * 2019-10-22 2020-02-04 中设数字技术股份有限公司 Online three-dimensional rendering technology and system based on cloud platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An asymmetric and optimized encryption method to protect the confidentiality of 3D mesh model;Yaqian Liang等;Advanced Engineering Informatics;第42卷;1-13 *
基于Web3D的产品定制系统模型优化方法;郭磊;鞠盈盈;曾艳;;机电产品开发与创新(第06期);130-131, 134 *

Also Published As

Publication number Publication date
CN112419511A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN112419511B (en) Three-dimensional model file processing method and device, storage medium and server
US20230120253A1 (en) Method and apparatus for generating virtual character, electronic device and readable storage medium
US8766972B2 (en) Method and system for efficient transmission of rich three-dimensional geometry and animation content over narrow band communication networks
CN111275802B (en) PBR material rendering method and system based on VRAY
CN103823949B (en) Intelligent device control and arrangement system and method applied to indoor design
CN111008422A (en) A method and system for making a real scene map of a building
JP6580078B2 (en) Method and system for converting an existing three-dimensional model into graphic data
CN111583372B (en) Virtual character facial expression generation method and device, storage medium and electronic equipment
CN111710020B (en) Animation rendering method and device and storage medium
CN110070616A (en) Memory, statistical data rendering method, device and equipment based on GIS platform
CN108537891A (en) The method that three-dimensional material and textures data are automatically switched to UE4
CN103136399A (en) System and method for radiation intensity parallel rendering for indoor scene
CN109697748B (en) Model compression processing method, model mapping processing method, model compression processing device, and storage medium
CN116503577A (en) Method and system for fast acquisition of 3D model of virtual simulation scene
CN106485784A (en) Indoor design image processing method based on multi-terminal equipment data syn-chronization
CN111583373A (en) Model rendering method, device, equipment and storage medium
CN110689616B (en) Water delivery channel parametric modeling method based on three-dimensional digital earth
WO2023169095A1 (en) Data processing method and apparatus, device, and medium
CN113888701A (en) Method and system for converting curved surface 3D model into mesh 3D model in Obj format
CN115270530A (en) Method, system, device and medium for rapidly establishing progress visualization model
CN114943804A (en) Model processing method and device, nonvolatile storage medium and computer equipment
CN119445006A (en) Three-dimensional digital content generation method, device, system, equipment, medium and product
CN114549783B (en) Virtual model generation method and device, electronic equipment and storage medium
KR20230141298A (en) Method and system for generating 3d image and rendering image of virtual space content
CN117390315A (en) Web-side three-dimensional visualization method, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240604

Address after: Room 1310, Building 1, Chengzhi Building, No. 6 Haiwu Road, Guicheng Street, Nanhai District, Foshan City, Guangdong Province, 528200

Patentee after: Foshan Siyu Technology Service Co.,Ltd.

Country or region after: China

Address before: 528000 room 702, block 9, Hong Road, Chancheng District, Foshan City, Guangdong Province

Patentee before: Dong Liping

Country or region before: China