CN106875464B - Three-dimensional model file processing method, three-dimensional model file uploading method and client - Google Patents
Three-dimensional model file processing method, three-dimensional model file uploading method and client Download PDFInfo
- Publication number
- CN106875464B CN106875464B CN201710020872.8A CN201710020872A CN106875464B CN 106875464 B CN106875464 B CN 106875464B CN 201710020872 A CN201710020872 A CN 201710020872A CN 106875464 B CN106875464 B CN 106875464B
- Authority
- CN
- China
- Prior art keywords
- file
- dimensional model
- proxy
- prime
- original file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- Architecture (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a three-dimensional model file import control method and a client, wherein after a three-dimensional model file drag-in instruction for dragging a three-dimensional model file into target three-dimensional software is received, a default process of opening the file to be imported in the target three-dimensional software is not executed, but a shortcut function menu of the target three-dimensional software is displayed, and then the three-dimensional model file to be imported is flexibly imported according to the current requirement by using function items in the shortcut function menu according to the path information of the three-dimensional model file to be imported. The three-dimensional model file dragging operation provided by the invention is not limited to opening the single import processing, but can flexibly select the corresponding function item according to the current requirement to execute the corresponding import processing, for example, but not limited to citing the function item to execute the citing import processing, and inserting the function item to execute the inserting import processing. Therefore, the function of file dragging operation can be enriched, the operation of the corresponding function is simplified, and the user experience satisfaction is improved.
Description
Technical Field
The invention relates to the three-dimensional field, in particular to a three-dimensional model file processing method, an uploading method and a client.
Background
With the rapid development of the three-dimensional field, the three-dimensional modeling is widely applied to the fields of building, aerospace, numerical control machining and the like. However, the three-dimensional model file generated by the existing three-dimensional software is only a simple file containing all design elements, for example, when a designer generates the three-dimensional model file through the three-dimensional software, the three-dimensional model file generally contains the model file, and also contains useless elements such as light and a camera according to a model application scene, and even contains a blank layer and the like in the design process; when the three-dimensional model file is acquired and used by other users, because the three-dimensional model file contains unnecessary elements such as light and a camera, when the other users do not need to use the elements or need to make other changes, the user is required to delete the unnecessary elements in the three-dimensional model file and then add or change the other elements again, which not only increases the complexity of operation, but also wastes the time of the user, resulting in poor satisfaction of user experience.
Disclosure of Invention
The invention provides a three-dimensional model file processing method, an uploading method and a client, and solves the problems that the existing three-dimensional model file contains unnecessary elements, so that the unnecessary elements are possibly required to be removed when a user uses the file, the operation complexity and the operation time are increased, and the user experience satisfaction is low.
In order to solve the above technical problem, the present invention provides a three-dimensional model file processing method, including:
importing a three-dimensional model original file to be processed;
analyzing and processing the three-dimensional model original file to obtain a prime model file;
generating a proxy file based on the prime model file;
and storing the proxy file and the three-dimensional model original file in a correlation manner.
In an embodiment of the present invention, analyzing and processing the three-dimensional model original file to obtain a corresponding prime model file includes:
performing element analysis on the three-dimensional model original file, and deleting elements falling into a preset element range to be deleted;
the preset element range to be deleted comprises a camera, light, an empty layer, a lost map file, an empty object, a reference structure, a container structure, an agent object and a scene garbage memory.
In an embodiment of the present invention, when the three-dimensional model original file is analyzed and processed to determine that the three-dimensional model original file contains an unremoved map file, the method further includes:
reserving the mapping file, and storing the reserved mapping file, the proxy file and the three-dimensional model original file in a correlation manner;
the generating the proxy file based on the prime model file comprises:
and generating a proxy file according to the obtained prime model file and the map file.
In an embodiment of the present invention, after obtaining the prime mode file, the method further includes:
extracting attribute parameters of the prime model file;
generating an open source parameter file containing the attribute parameters;
and storing the open source parameter file, the proxy file and the three-dimensional model original file in a correlation manner.
In an embodiment of the present invention, before performing the analysis processing on the three-dimensional model original file, the method includes:
intercepting image frames of at least two rotation angles of the three-dimensional model original file along a preset single axis to obtain a thumbnail of the three-dimensional model original file;
storing the plurality of intercepted image frames, the proxy file and the three-dimensional model original file in an associated manner;
or the like, or, alternatively,
after the three-dimensional model original file is analyzed and processed, the method further comprises the following steps:
intercepting image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed;
rendering the plurality of captured image frames to generate thumbnails;
and storing the thumbnail, the proxy file and the three-dimensional model original file in an associated manner.
In an embodiment of the present invention, when image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed are captured, rendering the captured image frames to generate thumbnails includes:
selecting a corresponding scene from a preset scene rendering library for each image frame to render the image frame; the scene rendering library comprises a plurality of rendering scenes.
In order to solve the above problem, the present invention further provides a three-dimensional model file uploading method, including:
processing the three-dimensional model file to be uploaded according to the three-dimensional model file processing method to obtain a processed file;
and uploading the obtained processed file to a network terminal.
In an embodiment of the present invention, in the process of processing the three-dimensional model file to be uploaded according to the three-dimensional model file processing method, the method further includes obtaining attribute parameters of the three-dimensional model file to be uploaded to generate a parameter display file, and storing the parameter display file in association with the proxy file and the three-dimensional model original file;
and the parameter display file is used for displaying the attribute parameters after being uploaded to the network terminal.
In order to solve the above problem, the present invention further provides a client, including:
the file import module is used for importing the three-dimensional model original file to be processed;
the processing module is used for analyzing and processing the three-dimensional model original file to obtain a prime model file;
the agent file generation module is used for generating an agent file based on the prime model file;
and the storage control module is used for storing the proxy file and the three-dimensional model original file in a correlation manner.
In an embodiment of the present invention, the method further comprises:
the first graph obtaining module is used for intercepting image frames of at least two rotation angles of the three-dimensional model original file along a preset single axis to obtain a thumbnail of the three-dimensional model original file before analyzing and processing the three-dimensional model original file;
the storage control module is further used for storing the plurality of image frames, the proxy file and the three-dimensional model original file in an associated manner;
or the like, or, alternatively,
the client further comprises:
the second graph obtaining module is used for intercepting image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed and processed by the processing module;
the thumbnail generation module is used for rendering the plurality of image frames to generate thumbnails;
the storage control module is also used for storing the thumbnail, the proxy file and the three-dimensional model original file in a correlation mode.
The invention has the beneficial effects that:
according to the three-dimensional model file processing method, the three-dimensional model file uploading method and the client, the original file of the three-dimensional model file can be imported for the generated three-dimensional model file, then the imported three-dimensional model original file is analyzed to obtain the prime model file in the three-dimensional model file, namely the necessary file forming the three-dimensional model file, then the proxy file is generated based on the obtained prime model file, and the obtained proxy file and the three-dimensional model original file are stored in a correlation mode. Therefore, when other users acquire the three-dimensional model file for use, if elements such as lamplight, a camera and the like in the three-dimensional model file need to be adjusted, the associated proxy file can be directly used, corresponding editing can be carried out on the basis of the prime model file, unnecessary elements do not need to be deleted first, then related editing is carried out, the operation flow is simplified, time is saved, and the user experience satisfaction is improved. Meanwhile, when the user needs to use the original file, the corresponding three-dimensional model original file can be directly used, and the satisfaction degree of user experience can be further improved.
Furthermore, in order to solve the problems that the existing three-dimensional model file is only a simple file and has no introduction of any three-dimensional model, and when a user uses the three-dimensional model, the content of the model is either roughly judged through the file name or only one model can be opened to check the content of the model, the invention also carries out image frame extraction on the three-dimensional model file to generate the thumbnail of the three-dimensional model file, so that the user can directly and quickly and accurately acquire the content contained in the three-dimensional model file through the thumbnail, the operation flow can be further simplified, the operation efficiency can be improved, and the satisfaction degree of user experience can be further improved.
Drawings
Fig. 1 is a schematic flow chart of a three-dimensional model file processing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a process for extracting attribute parameters of a prime file according to an embodiment of the present invention;
fig. 3 is a first schematic flow chart illustrating a process of generating a thumbnail of a three-dimensional model file according to a first embodiment of the present invention;
FIG. 4 is a schematic flow chart of a process for generating a thumbnail of a three-dimensional model file according to a first embodiment of the present invention;
fig. 5 is a schematic flow chart of a three-dimensional model file uploading method according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a client structure according to a third embodiment of the present invention;
fig. 7-1 is a schematic diagram of a client structure according to a third embodiment of the present invention;
fig. 7-2 is a schematic diagram of a client structure provided in the third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a client according to a fourth embodiment of the present invention;
fig. 9 is a schematic diagram of a management system networking according to a fourth embodiment of the present invention.
Detailed Description
Aiming at the problems that the existing three-dimensional model file contains unnecessary elements, so that the unnecessary elements are possibly required to be removed by a user when the existing three-dimensional model file is used, the operation complexity and the operation time are increased, and the user experience satisfaction degree is low, the original file of the three-dimensional model file can be imported into the generated three-dimensional model file, then the imported three-dimensional model original file is analyzed and processed to obtain a prime model file in the three-dimensional model file, namely the necessary file forming the three-dimensional model file, a proxy file is generated based on the obtained prime model file, and the obtained proxy file and the three-dimensional model original file are stored in an associated mode. Therefore, when other users acquire the three-dimensional model file for use, if elements such as lamplight, a camera and the like in the three-dimensional model file need to be adjusted, the associated proxy file can be directly used, corresponding editing can be carried out on the basis of the prime model file, unnecessary elements do not need to be deleted first and then relevant editing is carried out, the operation flow can be simplified, and time can be saved.
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The first embodiment is as follows:
referring to fig. 1, the three-dimensional model file processing method provided in this embodiment includes:
s101: and importing the three-dimensional model original file to be processed.
The three-dimensional model original file in this embodiment is a generated unprocessed three-dimensional model file, which may be a local file, a file from another terminal or a network, or even a local file generated by using the same software, and then directly transferred to a file processing interface, where the importing action at this time is a switching action to transfer to the file processing interface.
S102: and analyzing and processing the imported three-dimensional model original file to obtain a prime model file.
In general, the three-dimensional model file contains a prime model file, that is, the prime model file is an essential element in the three-dimensional model file. The way to obtain the prime mode file in this step includes, but is not limited to, the following two ways:
the first method is as follows: directly picking out a prime model file from a three-dimensional model original file;
the second method comprises the following steps: deleting unnecessary elements in the three-dimensional model original file, such as: performing element analysis on the three-dimensional model original file, and deleting elements falling into a preset element range to be deleted;
the preset element range to be deleted in this embodiment includes, but is not limited to, a camera, a light, an empty layer, a missing map file, an empty object, a reference (XRef) structure, a container (container) structure, a proxy (VRaymesh) object, and a scene garbage memory.
Which kind of mode of specifically choosing can be set for in a flexible way according to specific needs.
It should be understood that the three-dimensional model files of the current mainstream are encrypted and need to be opened by corresponding software. Therefore, in this embodiment, software plug-ins corresponding to various three-dimensional model files (which may include software plug-ins for opening three-dimensional model files that are not encrypted) may be stored in advance, and then, after the three-dimensional model files are imported, suffixes of the files may be analyzed and corresponding software plug-ins may be called to perform opening analysis.
And S103, generating a proxy file based on the obtained prime model file.
The mode of generating the proxy file can adopt various existing modes of generating the proxy file by three-dimensional software, and is not described herein any more.
S104: and performing associated storage on the obtained proxy file and the three-dimensional model original file.
In this embodiment, the obtained proxy file containing the prime model file and the corresponding three-dimensional model original file are stored in an associated manner, when a user needs to use the three-dimensional model file, the corresponding prime model file and the corresponding original file can be directly obtained, when the user needs to re-edit, the prime model file can be directly selected to avoid deletion of unnecessary elements, the operation flow and the processing time are simplified, and meanwhile, the original file can be opened by the user to be referred to. Correspondingly, when the user selects the original file according to the current requirement, the original file can be directly opened.
In this embodiment, when analyzing an imported three-dimensional model original file, if it is determined that the three-dimensional model original file contains an unreleased map file, the method further includes reserving the map file, and storing the reserved map file in association with the proxy file and the three-dimensional model original file;
in this case, the step S103 of generating the proxy file based on the obtained prime model file includes:
and generating a proxy file according to the obtained prime model file and the mapping file.
In this embodiment, when the imported three-dimensional model original file is analyzed and processed to obtain the prime model file in S102, unified re-ordering may be further included for each object in the prime model file according to a preset object naming rule.
In this embodiment, after the three-dimensional model original file is imported, the content included in the three-dimensional model original file may be classified according to a preset rule, such as scenery, building, machinery, people, and the like, and a corresponding storage path may be preset for different categories, so that the three-dimensional model file may be classified and stored in S104.
In addition, in this embodiment, if it is determined that the three-dimensional model original file contains a map file that is not lost, the retaining process performed on the map file includes, but is not limited to:
and after uniformly naming each map file according to a preset map file naming rule, performing associated storage on the map files, the proxy files and the three-dimensional model original files according to the storage path so as to facilitate subsequent calling.
In this embodiment, after obtaining the prime model file in S102, the method further includes a process of extracting and saving the attribute parameters of the prime model file, specifically referring to fig. 2, which includes:
s201: extracting attribute parameters of the prime model file;
s202: generating an open source parameter file containing the attribute parameters according to the extracted attribute parameters, such as an obj format and the like;
s203: and performing associated storage on the open-source parameter file, the proxy file and the three-dimensional model original file, and performing associated storage on the open-source parameter file and the proxy file as well as the three-dimensional model original file when the mapping file is stored in association at the moment.
In this embodiment, in order to solve the problem that the existing three-dimensional model file is only a simple file and has no introduction of any three-dimensional model, when a user uses the three-dimensional model, the content of the model is either roughly judged by the file name or only one model can be opened to view the content of the model, and image frame extraction is performed on the three-dimensional model file to generate a thumbnail of the three-dimensional model file, so that the user can directly and quickly and accurately acquire the content contained in the three-dimensional model file through the thumbnail, the operation flow can be further simplified, the operation efficiency can be improved, and the satisfaction degree of user experience can be further improved.
The way of performing image frame extraction on the three-dimensional model file to generate the thumbnail of the three-dimensional model file includes, but is not limited to, the following two ways:
the first method is as follows: before the analysis processing is performed on the three-dimensional model original file in S102, as shown in fig. 3, the method includes:
s301: and intercepting image frames of at least two rotation angles of the three-dimensional model original file along a preset single axis to obtain a thumbnail of the three-dimensional model original file.
For example: and rotating the three-dimensional model original file along a preset X axis, a preset Y axis or a preset Z axis according to a preset direction. The preset interval angle is 1 degree, and the preset angle is 360 degrees. And intercepting the image frame of the original file of the three-dimensional model at the current rotation angle when the three-dimensional model rotates by 1 degree until the three-dimensional model rotates by 360 degrees. Thus, in this example, image frames of the three-dimensional model rotated every 1 degree within 360 degrees are obtained.
For example, parameters including a preset single axis ((X, Y, or Z axis), a preset direction (right or left rotation), a preset interval angle, and a preset angle are input to a three-dimensional engine, which cuts an image frame according to the input parameters and numbers the image frame in the cut order.
S302: and storing the plurality of intercepted image frames in association with the proxy file and the three-dimensional model original file.
The second method comprises the following steps: after the analysis processing is performed on the three-dimensional model original file in S102, as shown in fig. 4, the method includes:
s401: and intercepting image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed and processed.
S402: and performing rendering processing on the plurality of captured image frames to generate thumbnails.
S403: and storing the thumbnail, the proxy file and the three-dimensional model original file in an associated manner.
When generating the thumbnail by the second method, the rendering the plurality of captured image frames to generate the thumbnail includes:
selecting a corresponding scene from a preset scene rendering library for each image frame to render the image frame; the scene rendering library in the embodiment includes a plurality of rendering scenes, so that a user can flexibly select and set the scene according to current requirements.
Therefore, after the three-dimensional model file is processed by the processing method provided by the embodiment, the three-dimensional model original file, the corresponding proxy file, the map file, the open source parameter file and the thumbnail can be stored in an associated manner. In addition, in this embodiment, attribute parameters including detailed parameters of the three-dimensional model file may also be obtained to generate a parameter display file, and the obtained parameter display file is stored in association with the proxy file, the three-dimensional model original file, and the like, where the detailed parameters include, but are not limited to: length, width, height of the three-dimensional model; the use software and the software version of the three-dimensional model; the number of vertexes and the number of faces of the three-dimensional model; whether the three-dimensional model contains a map, light, a camera, animation and bones; a renderer and renderer version used by the three-dimensional model; file format and gamma (gamma) value of the three-dimensional model, and the like. Therefore, the three-dimensional model file processing method provided by the embodiment has at least the following advantages:
1. the use is convenient: the method and the device not only provide the prime model file, but also provide the display of the thumbnail and the specific parameters of the three-dimensional model, thereby being more convenient for the user to quickly judge, select and use.
2. Normalization of storage and naming: including the mapping files, the prime files and the like are named and stored according to the standard rules, so that the user can browse the files clearly.
3. Diverse scene rendering options: different three-dimensional models are applied to different scenes, such as indoor and outdoor scenes, and the characteristics of the three-dimensional models can be better embodied.
It should be understood that the processing procedure of the three-dimensional model file in this embodiment may be implemented on a client, and certainly does not exclude the processing on a server on a network side.
Example two:
the embodiment provides a three-dimensional model file uploading method, which includes processing a three-dimensional model file to be uploaded according to a three-dimensional model file processing method shown in the first embodiment to obtain a processed file, and uploading the processed file to a network terminal; the server at the network end may store the received file according to a preset storage rule, for example, may store the file by using a distributed storage rule. The specific storage control rule is not described in detail in this embodiment.
The following is a description of a complete process for uploading a three-dimensional model file, and as shown in fig. 5, the process includes:
s501: and importing the three-dimensional model original file to be uploaded, and determining the local storage type and the corresponding storage path of the three-dimensional model original file.
S502: and analyzing the imported three-dimensional model original file to obtain a prime model file, and obtaining a corresponding map when the prime model file contains the map which is not lost.
This step includes, but is not limited to, clearing away some unnecessary elements such as cameras, lights, empty layers, missing map files, empty objects, XRef structures, container structures, VRaymesh objects, scene garbage, etc.
S503: and uniformly naming the objects in the prime model file according to a preset object naming rule.
S504: acquiring attribute parameters of the three-dimensional model to generate a parameter display file, including but not limited to the length, width and height of the three-dimensional model; the use software and the software version of the three-dimensional model; the number of vertexes and the number of faces of the three-dimensional model; whether the three-dimensional model contains a map, light, a camera, animation and bones; a renderer and renderer version used by the three-dimensional model; file format and gamma value of the three-dimensional model, etc.
S505: and uniformly naming the map files according to a preset map naming rule, and designating corresponding storage paths.
S506: and intercepting image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed and processed.
S507: and performing rendering processing on the plurality of captured image frames to generate thumbnails.
S508: and extracting attribute parameters of the prime model file, and generating an open-source parameter file containing the attribute parameters according to the extracted attribute parameters.
S509: and performing associated storage on the three-dimensional model original file, the corresponding proxy file, the mapping file, the open source parameter file, the parameter display file and the thumbnail according to a preset format.
S510: and uploading the three-dimensional model original file, the corresponding proxy file, the map file, the open source parameter file, the parameter display file and the thumbnail which are stored in an associated manner to a network terminal. Therefore, a server at a network end can display relevant parameters of the three-dimensional model file according to the parameter display file (such as ini) so as to be selected by a user only in management, call a corresponding thumbnail according to a transmitted display instruction to display the thumbnail so that the user can further browse and judge the content, provide a single download task so that the user can independently select a download agent file, a map file, a three-dimensional model original file and the like, and provide a packaging download function so that the user can directly package and download the like. Of course, before the user performs the above-mentioned downloading, the user may be authenticated to determine whether the user identity is legal and/or whether the user has purchased the relevant service and thus has the downloading right, etc.
Example three:
the present embodiment provides a client, as shown in fig. 6, including:
and the file importing module 61 is used for importing the three-dimensional model original file to be processed. The three-dimensional model original file in this embodiment is a generated unprocessed three-dimensional model file, which may be a local file, a file from another terminal or a network, or even a local file generated by using the same software, and then directly transferred to a file processing interface, where the importing action at this time is a switching action to transfer to the file processing interface.
And the processing module 62 is configured to analyze and process the three-dimensional model original file to obtain a prime model file. In general, the three-dimensional model file contains a prime model file, that is, the prime model file is an essential element in the three-dimensional model file. The way in which the processing module 62 obtains the prime files includes, but is not limited to, the following two ways:
the first method is as follows: directly picking out a prime model file from a three-dimensional model original file;
the second method comprises the following steps: deleting unnecessary elements in the three-dimensional model original file, such as: performing element analysis on the three-dimensional model original file, and deleting elements falling into a preset element range to be deleted;
the preset element range to be deleted in this embodiment includes, but is not limited to, a camera, a light, an empty layer, a missing map file, an empty object, a reference (XRef) structure, a container (container) structure, a proxy (VRaymesh) object, and a scene garbage memory.
It should be understood that the three-dimensional model files of the current mainstream are encrypted and need to be opened by corresponding software. Therefore, in this embodiment, software plug-ins corresponding to various three-dimensional model files (which may include software plug-ins for opening three-dimensional model files that are not encrypted) may be stored in advance, and then after the three-dimensional model files are imported, the processing module 62 may analyze suffixes of the files and call the corresponding software plug-ins for opening analysis.
The agent file generating module 63 is configured to generate an agent file based on the prime model file; the mode of generating the proxy file can adopt various existing modes of generating the proxy file by three-dimensional software, and is not described herein any more.
And the storage control module 64 is used for storing the proxy file and the three-dimensional model original file in an associated manner. When the user needs to use the three-dimensional model file, the corresponding prime model file and the original file can be directly obtained, when the user needs to re-edit, the prime model file can be directly selected to avoid deleting unnecessary elements, the operation flow and the processing time are simplified, and meanwhile, the original file can be opened by the user to be used as a reference. Correspondingly, when the user selects the original file according to the current requirement, the original file can be directly opened, and the satisfaction degree of user experience can be further improved.
It should be understood that the functions of the above modules of the present embodiment may be implemented by a processor of the client.
In this embodiment, when the processing module 62 analyzes and processes the imported three-dimensional model original file, if it is determined that the three-dimensional model original file includes an unreleased map file, the method further includes retaining the map file, and storing the retained map file in association with the proxy file and the three-dimensional model original file, specifically including naming each map file uniformly according to a preset map file naming rule, and storing the map file in association with the proxy file and the three-dimensional model original file according to the storage path, so as to facilitate subsequent calling.
At this time, the generating of the agent file by the agent file generating module 63 based on the obtained prime model file includes: and generating a proxy file according to the obtained prime model file and the mapping file.
In this embodiment, when the processing module 62 analyzes and processes the imported three-dimensional model original file to obtain the prime model file, unified re-ordering may be further included for each object in the prime model file according to a preset object naming rule.
In this embodiment, after the file importing module 61 imports the three-dimensional model original file, the content contained in the three-dimensional model original file may be classified according to a preset rule, such as scenery, building, machinery, and people, and the corresponding storage path may be preset for different categories, so that the storage control module 64 may store the three-dimensional model file in a classified manner.
In this embodiment, after obtaining the prime model file in the processing module 62, the processing module is further configured to extract and store the attribute parameters of the prime model file, and the method includes:
the processing module 62 extracts the attribute parameters of the prime model file;
generating an open source parameter file containing the attribute parameters according to the extracted attribute parameters, such as an obj format and the like;
and performing associated storage on the open-source parameter file, the proxy file and the three-dimensional model original file, and performing associated storage on the open-source parameter file and the proxy file as well as the three-dimensional model original file when the mapping file is stored in association at the moment.
In this embodiment, in order to solve the problem that the existing three-dimensional model file is only a simple file and has no introduction of any three-dimensional model, when a user uses the three-dimensional model, the content of the model is either roughly judged by the file name or only one model can be opened to view the content of the model, the client further performs image frame extraction on the three-dimensional model file to generate a thumbnail of the three-dimensional model file, so that the user can directly and quickly and accurately acquire the content contained in the three-dimensional model file through the thumbnail, the operation flow can be further simplified, the operation efficiency can be improved, and the satisfaction degree of user experience can be further improved.
In one example, referring to fig. 7-1, the client further comprises:
the first graph obtaining module 65 is configured to, before performing analysis processing on the three-dimensional model original file, intercept image frames of at least two rotation angles of the three-dimensional model original file along a preset single axis to obtain a thumbnail of the three-dimensional model original file;
the storage control module 64 is further configured to store a plurality of image frames in association with the proxy file and the three-dimensional model source file.
In another example, referring to fig. 7-2, the client further comprises:
the second graph obtaining module 66 is configured to, after the processing module 62 performs analysis processing on the three-dimensional model original file, intercept image frames of at least two rotation angles of the three-dimensional model file along the preset single axis after the analysis processing on the three-dimensional model original file;
a thumbnail generation module 67, configured to perform rendering processing on a plurality of image frames to generate thumbnails;
the storage control module 64 is further configured to store the thumbnail in association with the proxy file and the three-dimensional model original file.
The thumbnail generation module generates thumbnails by rendering the captured image frames, and comprises:
the thumbnail generation module selects a corresponding scene from a preset scene rendering library for each image frame to render the image frame; the scene rendering library in the embodiment includes a plurality of rendering scenes, so that a user can flexibly select and set the scene according to current requirements.
Therefore, after the three-dimensional model file is processed by the processing method provided by the embodiment, the three-dimensional model original file, the corresponding proxy file, the map file, the open source parameter file and the thumbnail can be stored in an associated manner. In addition, in this embodiment, the processing module 62 may further obtain attribute parameters including detailed parameters of the three-dimensional model file to generate a parameter display file, and store the obtained parameter display file in association with the proxy file, the three-dimensional model original file, and the like. Therefore, the client side of the embodiment not only provides the prime model file, but also can simultaneously provide the display of the thumbnail and the specific parameters of the three-dimensional model, so that the client side is more convenient for the user to quickly judge, select and use. Meanwhile, the client normalizes storage and naming: including the mapping files, the prime files and the like are named and stored according to the standard rules, so that the user can browse the files clearly. In addition, the client also provides diverse scene rendering options: different three-dimensional models are applied to different scenes, such as indoor and outdoor scenes, and the characteristics of the three-dimensional models can be better embodied.
Example four:
fig. 8 is a schematic diagram of a client hardware structure provided in this embodiment. The client comprises an Input Output (IO) bus 83, a processor 81, a power supply 82, a memory 84, wherein:
the first input/output (IO) bus 83 is connected to other components of the user equipment to which it belongs (e.g., the processor 81, the power supply 82, and the memory 84), respectively, and provides a transmission line for the other components.
The power supply 82 is used to provide the power required for the operation of the various components, and it should be understood that the power supply 82 in this embodiment may also be an external power supply. For example, when the client is a desktop computer, the power source is an external power source. The power supply 82 shown in fig. 8 is merely an example.
The processor 81 generally controls the overall operation of the user equipment to which it belongs. For example, the processor 81 performs operations such as calculation and confirmation. The processor 81 may be a Central Processing Unit (CPU).
The memory 84 stores software code readable by the processor 81 and executable by the processor 81, including code for controlling the processor 81 to perform the three-dimensional model file import control methods described herein, including the respective three-dimensional software. The memory 84 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and so forth.
In this embodiment, the processor 81 is specifically configured to call a code in the memory 84 through an input/output (IO) bus 83 for executing a three-dimensional model file processing process, where the code is called to import a to-be-processed three-dimensional model original file, and then analyze and process the imported three-dimensional model original file to obtain a two-dimensional model file in the three-dimensional model file, that is, a necessary file forming the three-dimensional model file, generate a proxy file based on the obtained two-dimensional model file, and store the obtained proxy file in association with the three-dimensional model original file. Therefore, when other users acquire the three-dimensional model file for use, if elements such as lamplight, a camera and the like in the three-dimensional model file need to be adjusted, the associated proxy file can be directly used, corresponding editing can be carried out on the basis of the prime model file, unnecessary elements do not need to be deleted first, then related editing is carried out, the operation flow is simplified, time is saved, and the user experience satisfaction is improved. Meanwhile, when the user needs to use the original file, the corresponding three-dimensional model original file can be directly used, and the satisfaction degree of user experience can be further improved.
The method also comprises the step of extracting the image frames of the three-dimensional model file to generate the thumbnail of the three-dimensional model file, so that a user can quickly and accurately obtain the content contained in the three-dimensional model file directly through the thumbnail, the operation process can be further simplified, the operation efficiency can be improved, and the satisfaction degree of user experience can be further improved.
For a specific control process, reference is made to the above embodiments, and details are not described herein.
It should be understood that the client in this embodiment may be used in various three-dimensional model application fields, for example, may be applied to various production assets in the CG (computer graphics) industry, and is convenient for the CG industry to uniformly manage various asset files required in the CG production process, such as models, materials, maps, and the like.
Referring to fig. 9, a management system includes a network management end 91 (i.e. a WEB end) and at least one client 92, and is implemented by combining the network management end 91 and the client. The network management terminal 91 can be responsible for uploading, classifying, auditing, displaying and selling assets; the client 92 is a working terminal (including but not limited to various computers) of the CG maker, and the CG maker can make the three-dimensional model file through the client 92, process the three-dimensional model file through the processing procedures shown in the above embodiments, and upload the three-dimensional model file to the network management end for purchase, viewing and use by other clients; the assets information and 360-degree details can be checked from the network server, the assets required by searching the images can be quickly searched through keywords or uploaded images and then downloaded to the local or directly displayed on the network, and the assets can be imported and processed in the software in real time and the contents of the assets can be displayed by dragging the assets to three-dimensional software such as 3DMAX and the like through one key by adopting a three-dimensional model file import control method.
In this embodiment, the management system may also be developed based on a distributed architecture, the network management end 91 and the client 92 may transmit data through an intermediate message service, asset files are stored in different servers in a distributed manner, and the client 92 synchronizes, in an asynchronous manner or other manners, the files related to assets to the storage directory specified by the local computer disk (which may be obtained from the network side in real time when needed) while receiving asset information data, so as to ensure that the system can be normally used in both online and offline states of the network, thereby improving the application range and further improving the satisfaction of user experience.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (10)
1. A three-dimensional model file processing method is characterized by comprising the following steps:
importing a three-dimensional model original file to be processed;
analyzing and processing the three-dimensional model original file to obtain a prime model file;
generating a proxy file based on the prime model file;
storing the proxy file and the three-dimensional model original file in a correlation manner;
when other users acquire the three-dimensional model file for use, the associated proxy file can be directly used, and corresponding editing is carried out on the basis of the prime model file without deleting unnecessary elements and then executing related editing.
2. The method of claim 1, wherein analyzing the three-dimensional model raw file to obtain a corresponding prime model file comprises:
performing element analysis on the three-dimensional model original file, and deleting elements falling into a preset element range to be deleted;
the preset element range to be deleted comprises a camera, light, an empty layer, a lost map file, an empty object, a reference structure, a container structure, an agent object and a scene garbage memory.
3. The method for processing the three-dimensional model file according to claim 2, wherein when the three-dimensional model original file is analyzed and determined to contain the undeleted map file, the method further comprises:
reserving the mapping file, and storing the reserved mapping file, the proxy file and the three-dimensional model original file in a correlation manner;
the generating the proxy file based on the prime model file comprises:
and generating a proxy file according to the obtained prime model file and the map file.
4. The three-dimensional model file processing method according to any one of claims 1 to 3, further comprising, after obtaining the prime model file:
extracting attribute parameters of the prime model file;
generating an open source parameter file containing the attribute parameters;
and storing the open source parameter file, the proxy file and the three-dimensional model original file in a correlation manner.
5. The three-dimensional model file processing method according to any one of claims 1 to 3, wherein the analysis processing of the three-dimensional model original file comprises:
intercepting image frames of at least two rotation angles of the three-dimensional model original file along a preset single axis to obtain a thumbnail of the three-dimensional model original file;
storing the plurality of intercepted image frames, the proxy file and the three-dimensional model original file in an associated manner;
or the like, or, alternatively,
after the three-dimensional model original file is analyzed and processed, the method further comprises the following steps:
intercepting image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed;
rendering the plurality of captured image frames to generate thumbnails;
and storing the thumbnail, the proxy file and the three-dimensional model original file in an associated manner.
6. The three-dimensional model file processing method according to claim 5, wherein when capturing image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the analysis processing of the three-dimensional model original file, rendering the captured image frames to generate thumbnails includes:
selecting a corresponding scene from a preset scene rendering library for each image frame to render the image frame; the scene rendering library comprises a plurality of rendering scenes.
7. A three-dimensional model file uploading method is characterized by comprising the following steps:
processing a three-dimensional model file to be uploaded according to the three-dimensional model file processing method of any one of claims 1 to 6 to obtain a processed file;
and uploading the obtained processed file to a network terminal.
8. The three-dimensional model file uploading method according to claim 7, wherein in the process of processing the three-dimensional model file to be uploaded according to the three-dimensional model file processing method according to any one of claims 1 to 6, the method further comprises obtaining attribute parameters of the three-dimensional model file to be uploaded to generate a parameter display file, and storing the parameter display file in association with the proxy file and the three-dimensional model original file;
and the parameter display file is used for displaying the attribute parameters after being uploaded to the network terminal.
9. A client, comprising:
the file import module is used for importing the three-dimensional model original file to be processed;
the processing module is used for analyzing and processing the three-dimensional model original file to obtain a prime model file;
the agent file generation module is used for generating an agent file based on the prime model file;
the storage control module is used for storing the proxy file and the three-dimensional model original file in a correlation manner;
when other users acquire the three-dimensional model file for use, the associated proxy file can be directly used, and corresponding editing is carried out on the basis of the prime model file without deleting unnecessary elements and then executing related editing.
10. The client of claim 9, further comprising:
the first graph obtaining module is used for intercepting image frames of at least two rotation angles of the three-dimensional model original file along a preset single axis to obtain a thumbnail of the three-dimensional model original file before analyzing and processing the three-dimensional model original file;
the storage control module is also used for storing the plurality of captured image frames, the proxy file and the three-dimensional model original file in a correlation manner;
or the like, or, alternatively,
the client further comprises:
the second graph obtaining module is used for intercepting image frames of at least two rotation angles of the three-dimensional model file along a preset single axis after the three-dimensional model original file is analyzed and processed by the processing module;
the thumbnail generation module is used for rendering the plurality of image frames to generate thumbnails;
the storage control module is also used for storing the thumbnail, the proxy file and the three-dimensional model original file in a correlation mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710020872.8A CN106875464B (en) | 2017-01-11 | 2017-01-11 | Three-dimensional model file processing method, three-dimensional model file uploading method and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710020872.8A CN106875464B (en) | 2017-01-11 | 2017-01-11 | Three-dimensional model file processing method, three-dimensional model file uploading method and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106875464A CN106875464A (en) | 2017-06-20 |
CN106875464B true CN106875464B (en) | 2021-03-16 |
Family
ID=59158018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710020872.8A Active CN106875464B (en) | 2017-01-11 | 2017-01-11 | Three-dimensional model file processing method, three-dimensional model file uploading method and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106875464B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101484B (en) * | 2018-07-06 | 2023-04-18 | 平安科技(深圳)有限公司 | Recording file processing method and device, computer equipment and storage medium |
CN111583374B (en) * | 2020-05-11 | 2022-09-09 | 深圳市环球数码影视文化有限公司 | Method for making rendering proxy file |
CN113554037A (en) * | 2021-07-14 | 2021-10-26 | 广联达科技股份有限公司 | Feature extraction method and device based on model simplification |
CN114691608A (en) * | 2022-04-26 | 2022-07-01 | 北京商询科技有限公司 | Data storage method, device and equipment of three-dimensional model |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006350718A (en) * | 2005-06-16 | 2006-12-28 | Toyota Motor Corp | Design support system |
CN102347951A (en) * | 2011-09-29 | 2012-02-08 | 云南科软信息科技有限公司 | System and method of supporting online three-dimensional (3D) representation |
CN102609991A (en) * | 2012-01-19 | 2012-07-25 | 北京航空航天大学 | Volume-reduction optimization method for three-dimensional solid model |
CN103295255A (en) * | 2013-04-02 | 2013-09-11 | 深圳市瑞云科技有限公司 | Device provided for user to conduct remote rendering |
CN105447903A (en) * | 2015-11-17 | 2016-03-30 | 深圳市瑞云科技有限公司 | Hybrid rendering method and apparatus thereof |
CN106131200A (en) * | 2016-07-20 | 2016-11-16 | 深圳市瑞云科技有限公司 | The file transfer means of cloud rendering system |
-
2017
- 2017-01-11 CN CN201710020872.8A patent/CN106875464B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006350718A (en) * | 2005-06-16 | 2006-12-28 | Toyota Motor Corp | Design support system |
CN102347951A (en) * | 2011-09-29 | 2012-02-08 | 云南科软信息科技有限公司 | System and method of supporting online three-dimensional (3D) representation |
CN102609991A (en) * | 2012-01-19 | 2012-07-25 | 北京航空航天大学 | Volume-reduction optimization method for three-dimensional solid model |
CN103295255A (en) * | 2013-04-02 | 2013-09-11 | 深圳市瑞云科技有限公司 | Device provided for user to conduct remote rendering |
CN105447903A (en) * | 2015-11-17 | 2016-03-30 | 深圳市瑞云科技有限公司 | Hybrid rendering method and apparatus thereof |
CN106131200A (en) * | 2016-07-20 | 2016-11-16 | 深圳市瑞云科技有限公司 | The file transfer means of cloud rendering system |
Also Published As
Publication number | Publication date |
---|---|
CN106875464A (en) | 2017-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11556749B2 (en) | Domain adaptation and fusion using weakly supervised target-irrelevant data | |
KR102222087B1 (en) | Image recognition method and apparatus based on augmented reality | |
CN106875464B (en) | Three-dimensional model file processing method, three-dimensional model file uploading method and client | |
US9367950B1 (en) | Providing virtual reality experiences based on three-dimensional designs produced using three-dimensional design software | |
US10075399B2 (en) | Method and system for sharing media content between several users | |
US12056194B2 (en) | Systems and methods for creating and delivering augmented reality content | |
CN105190616A (en) | Visualizing ranking factors for items in a search result list | |
US20180225408A1 (en) | System and method for interactive modeling and analysis of 3-d digital assemblies | |
Discher et al. | A scalable webGL-based approach for visualizing massive 3D point clouds using semantics-dependent rendering techniques | |
CN102165461B (en) | Methods and systems for providing easy access to information and for sharing services | |
CN114154000A (en) | Multimedia resource publishing method and device | |
CN114911595A (en) | Animation resource information processing method, device, equipment, medium and product | |
CN111917983B (en) | Home decoration interior work management method and system based on panoramic image | |
US20190250999A1 (en) | Method and device for storing and restoring a navigation context | |
US10264324B2 (en) | System and method for group-based media composition | |
CN114463104B (en) | Method, apparatus, and computer-readable storage medium for processing VR scene | |
CN104766154B (en) | The system and method that snapshot image based on BIM is applied to intelligent engineering management | |
US11893675B1 (en) | Processing updated sensor data for remote collaboration | |
CN116107558A (en) | Visual management system based on digital twinning | |
US11915377B1 (en) | Collaboration spaces in networked remote collaboration sessions | |
US12106419B1 (en) | Live updates in a networked remote collaboration session | |
US12112435B1 (en) | Collaboration spaces in extended reality conference sessions | |
CN115797522A (en) | Real-time visualization method and device for digital content creation | |
CN113419806B (en) | Image processing method, device, computer equipment and storage medium | |
CN110869973A (en) | Dynamic picture resizing based on user access criteria |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180410 Address after: 518000 Shenzhen Province, Futian District, Fu Qiang Road, No. 17, cultural and sports industry, headquarters building, building, floor 3030 Applicant after: Silk Road vision Polytron Technologies Inc Address before: 518000 Beek building, 9 research road, Nanshan District, Shenzhen, Guangdong, 2001D Applicant before: Shenzhen cloud win Network Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |