Method, device and equipment for model file management and storage medium
By obtaining the model file and its tags and converting the format, the problem of low previewability of the model file is solved, and the file format uniformity and previewability are improved.
Patent Information
- Application Number
- CN202411994892.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-16
AI Technical Summary
In the prior art, the previewability of model files is low, mainly due to the diverse file formats.
By obtaining the model file and its label, determining the initial file format and converting the format, the conversion strategy corresponding to the preset target file format type is adopted to convert the model file into a unified target file format.
The file format of model files is unified and the previewability of model files is improved in a variety of file formats.
Smart Images

Figure CN120011308A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of file management, and in particular to a method, apparatus, device and storage medium for model file management. Background Art
[0002] With the rapid development of modeling technology, model construction has gradually been applied to various production scenarios. For example, in a mining production scenario, a model related to the mining production scenario is constructed to obtain a model file corresponding to the model, thereby realizing the management and use of the model file. However, since the file formats of model files are usually diverse, the previewability of model files in diverse file formats is low. Therefore, the prior art has the problem of low previewability of model files. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, apparatus and storage medium for model file management, so as to solve the problem of low previewability of model files in the prior art.
[0004] In order to achieve the above-mentioned object, the present application provides a method for managing model files in a first aspect, the method comprising:
[0005] Obtaining a model file corresponding to the target object and a model file tag corresponding to the model file, wherein the model file tag includes an initial file format corresponding to the model file;
[0006] Determine the target file format type to which the initial file format belongs;
[0007] Determine a target file format conversion strategy corresponding to the target file format type based on a predetermined correspondence between the file format type and the file format conversion strategy;
[0008] The model file is format converted according to the target file format conversion strategy to obtain a model file in a preset target file format.
[0009] In an embodiment of the present application, the target file format type includes a first file format type, and the target file format conversion strategy includes a first file format conversion strategy corresponding to the first file format type; the model file is format converted according to the target file format conversion strategy to obtain a model file of a preset target file format, including: when the target file format conversion strategy is the first file format conversion strategy, using a first format conversion tool to convert the model file of the initial file format into a model file of a quasi-conversion file format; using a second format conversion tool to convert the model file of the quasi-conversion file format into a model file of a preset target file format.
[0010] In an embodiment of the present application, the target file format type includes a second file format type, and the target file format conversion strategy includes a second file format conversion strategy corresponding to the second file format type; the model file is format converted according to the target file format conversion strategy to obtain a model file in a preset target file format, including: when the target file format conversion strategy is the second file format conversion strategy, using a second format conversion tool to convert the model file in the initial file format into a model file in a preset target file format.
[0011] In an embodiment of the present application, the target file format type includes a third file format type, the third file format type includes a compressed file format type, and the target file format conversion strategy includes a third file format conversion strategy corresponding to the third file format type; the model file is format converted according to the target file format conversion strategy to obtain a model file of a preset target file format, including: when the target file format conversion strategy is the third file format conversion strategy, the model file of the initial file format is decompressed to obtain a decompressed model file; the decompressed model file is determined to be a model file of a quasi-conversion file format; and a second format conversion tool is used to convert the model file of the quasi-conversion file format into a model file of a preset target file format.
[0012] In an embodiment of the present application, the model file corresponding to the target object includes a model entity file corresponding to the entity object, and the model file tag includes the entity type to which the entity object belongs. The method also includes: obtaining a texture file corresponding to the model entity file in a preset target file format; based on the model file tag, determining the target entity type to which the entity object corresponding to the model entity file in the preset target file format belongs; and deleting the texture file when it is determined that there is a model entity file of the same type with the same entity type as the target entity type in the pre-built model file library.
[0013] In an embodiment of the present application, the method further includes: modifying the initial file format in the model file tag to a preset target file format to complete the update of the model file tag.
[0014] In an embodiment of the present application, obtaining a model file corresponding to a target object and a model file tag corresponding to the model file includes: obtaining a model file corresponding to the target object whose file update time is within a preset time period and a model file tag corresponding to the model file.
[0015] A second aspect of the present application provides an apparatus for model file management, comprising: a memory configured to store instructions; and a processor configured to call the instructions from the memory and implement the above-mentioned method for model file management when executing the instructions.
[0016] A third aspect of the present application provides a device for model file management, including: the apparatus for model file management according to the above-mentioned apparatus.
[0017] A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned method for model file management.
[0018] The above technical solution obtains the model file corresponding to the target object and the model file label corresponding to the model file, wherein the model file label includes the initial file format corresponding to the model file, and then the target file format type to which the initial file format belongs can be determined; thereby, based on the correspondence between the predetermined file format type and the file format conversion strategy, the target file format conversion strategy corresponding to the target file format type is determined, and further, the model file can be format converted according to the target file format conversion strategy to obtain a model file of a preset target file format. In this way, the corresponding model file of the target object is determined, and then the target file format type to which the initial file format belongs is determined, and further, the target file format conversion strategy corresponding to the target file format type is determined, and the model files of various file formats are converted into model files of a preset target file format, thereby unifying the file formats of the model files, meeting the preview requirements of the model files of various file formats, and improving the previewability of the model files.
[0019] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0021] Figure 1 A schematic diagram of a process flow of a method for model file management according to an embodiment of the present application is schematically shown;
[0022] Figure 2 A schematic diagram schematically shows an application scenario of a method for model file management according to an embodiment of the present application;
[0023] Figure 3 The schematic diagram of the storage structure of the model file is shown schematically;
[0024] Figure 4 A schematic diagram schematically shows a flow chart of the steps of optimizing storage space;
[0025] Figure 5The functional diagram of the model entity file and the model file is schematically shown. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0027] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations. In the embodiments of this application, some existing solutions in the industry such as certain software, components, and models may be mentioned, which should be considered as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0028] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0029] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0030] Figure 1 The following schematically shows a flow chart of a method for managing model files according to an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides a method for model file management, which is described by taking the method applied to a processor as an example. The method may include the following steps:
[0031] Step S101, obtaining a model file corresponding to a target object and a model file tag corresponding to the model file, wherein the model file tag includes an initial file format corresponding to the model file.
[0032] Step S102: determining the target file format type to which the initial file format belongs.
[0033] Step S103: determining a target file format conversion strategy corresponding to the target file format type based on a predetermined correspondence relationship between the file format type and the file format conversion strategy.
[0034] Step S104: converting the model file format according to the target file format conversion strategy to obtain a model file in a preset target file format.
[0035] It can be understood that the target object is a target object determined in a certain scene (such as a mine). The model file is a file that stores a model corresponding to the target object. The model file tag is a tag that records the content related to the model file, and the model file tag includes the initial file format corresponding to the model file. The initial file format is the file format of the model file that has not undergone file format conversion. The correspondence between the predetermined file format type and the file format conversion strategy is the correspondence between the predetermined file format type and the file format conversion strategy, each file format type corresponds to each file format conversion strategy, and the file format conversion strategy is a strategy for controlling the initial file format conversion of the model file. The preset target file format is a preset previewable target file format.
[0036] Specifically, the processor can obtain the model file corresponding to the target object and the model file tag corresponding to the model file. Specifically, the processor can obtain the model file corresponding to the remote sensing image of the target object uploaded by the remote sensing device, or the model file of the target object uploaded by the user, wherein the remote sensing device may include but is not limited to laser radar and oblique photography. The processor can determine the initial file format corresponding to the model file through the model file tag; it can also determine the initial file format corresponding to the model file by scanning the model file. The processor can determine the target file format type to which the initial file format of the model file belongs, and then determine the target file format conversion strategy corresponding to the target file format type based on the correspondence between the predetermined file format type and the file format conversion strategy. Furthermore, the processor can use the target file format conversion strategy to convert the model file format, thereby converting the model file of the initial file format into a model file of a preset target file format.
[0037] The above technical solution obtains the model file corresponding to the target object and the model file label corresponding to the model file, wherein the model file label includes the initial file format corresponding to the model file, and then the target file format type to which the initial file format belongs can be determined; thereby, based on the correspondence between the predetermined file format type and the file format conversion strategy, the target file format conversion strategy corresponding to the target file format type is determined, and further, the model file can be format converted according to the target file format conversion strategy to obtain a model file of a preset target file format. In this way, the corresponding model file of the target object is determined, and then the target file format type to which the initial file format belongs is determined, and further, the target file format conversion strategy corresponding to the target file format type is determined, and the model files of various file formats are converted into model files of a preset target file format, thereby unifying the file formats of the model files, meeting the preview requirements of model files of different file formats, and improving the previewability of the model files.
[0038] In one embodiment, the target file format type includes a first file format type, and the target file format conversion strategy includes a first file format conversion strategy corresponding to the first file format type; format conversion of the model file according to the target file format conversion strategy to obtain a model file of a preset target file format may include: when the target file format conversion strategy is the first file format conversion strategy, using a first format conversion tool to convert the model file of the initial file format into a model file of a quasi-conversion file format; using a second format conversion tool to convert the model file of the quasi-conversion file format into a model file of a preset target file format.
[0039] It can be understood that the target file format type may include but is not limited to the first file format type, the number of the first file format type may be one or more, and the target file format conversion strategy includes the first file format conversion strategy corresponding to the first file format type. The first format conversion tool is a tool for converting a file format. The quasi-conversion file format is a file format that is ready for format conversion; the second format conversion tool is another tool for converting a file format, which is different from the first format conversion tool.
[0040] Specifically, when the processor determines that the target file format conversion strategy is the first file format conversion strategy, the processor can use the first format conversion tool to convert the model file of the initial file format into the model file of the quasi-conversion file format, and then use the second format conversion tool to convert the model file of the quasi-conversion file format into the model file of the preset target file format. In this way, the first file format conversion strategy uses a roundabout format conversion method. For example, when the initial file format cannot be directly converted into the preset target file format, the model file of the initial file format is converted into the model file of the quasi-conversion file format, and then the model file of the quasi-conversion file format is converted into the preset target file format, thereby realizing the format conversion of the initial file format into the preset file format, thereby improving the previewability of the model file.
[0041] In one embodiment, the target file format type includes a second file format type, and the target file format conversion strategy includes a second file format conversion strategy corresponding to the second file format type; format conversion of the model file according to the target file format conversion strategy to obtain a model file in a preset target file format may include: when the target file format conversion strategy is the second file format conversion strategy, using a second format conversion tool to convert the model file in the initial file format into a model file in a preset target file format.
[0042] It can be understood that the target file format type may include but is not limited to the second file format type, the number of the second file format types may be one or more, and the target file format conversion strategy may also include a second file format conversion strategy corresponding to the second file format type.
[0043] Specifically, when the processor determines that the target file format conversion strategy is the second file format conversion strategy, the processor can use the second format conversion tool to directly convert the model file in the initial file format into a model file in the preset target file format. It can be seen that the second file format type to which the initial file format belongs can be directly converted into a format, which can improve the previewability of the model file on the one hand, and improve the efficiency of the format conversion on the other hand.
[0044] In one embodiment, the target file format type includes a third file format type, the third file format type includes a compressed file format type, and the target file format conversion strategy includes a third file format conversion strategy corresponding to the third file format type; format conversion of the model file according to the target file format conversion strategy to obtain a model file of a preset target file format may include: when the target file format conversion strategy is the third file format conversion strategy, decompressing the model file of the initial file format to obtain a decompressed model file; determining that the decompressed model file is a model file of a quasi-conversion file format; and using a second format conversion tool to convert the model file of the quasi-conversion file format into a model file of a preset target file format.
[0045] It can be understood that the target file format type may include but is not limited to the third file format type, the number of the third file format types may be one or more, the target file format conversion strategy may also include a third file format conversion strategy corresponding to the third file format type, and the third file format type may be a compressed file format type.
[0046] Specifically, the processor determines that the target file format type to which the initial file format of the model file belongs is a compressed file format type, and further determines that the target file format conversion strategy is a third file format conversion strategy, thereby decompressing the model file of the initial file format to obtain a decompressed model file. If the decompressed model file is a model file in a quasi-conversion file format, a second format conversion tool is used to convert the model file in the quasi-conversion file format into a model file in a preset target file format. If the decompressed model file is not a model file in a quasi-conversion file format, it is determined that the file format of the decompressed model file is a previewable file format, and no format conversion is required. Based on this, the processor can perform corresponding processing according to the file format of the decompressed model file, reducing unnecessary format conversions and improving the efficiency of format conversion.
[0047] In one embodiment, the model file corresponding to the target object includes a model entity file corresponding to the entity object, and the model file tag includes the entity type to which the entity object belongs. The method may also include: obtaining a texture file corresponding to the model entity file in a preset target file format; based on the model file tag, determining the target entity type to which the entity object corresponding to the model entity file in the preset target file format belongs; and deleting the texture file when it is determined that a model entity file of the same type with the same entity type as the target entity type exists in the pre-built model file library.
[0048] It can be understood that the entity object is an individual object in the target object, and the entity type may include types such as engineering machinery, vehicles, people, and environments. The texture file is used to display the texture of the entity object. The model file tag may also include the entity type to which the entity object belongs. The target entity type is one of the multiple entity types. The pre-built model file library is a pre-built model file library, and multiple model files are stored in the model file library. The same type model entity file is a model entity file whose entity type is the same as the target entity type.
[0049] Specifically, the processor can obtain the texture file corresponding to the model entity file of the preset target, and then search for the target entity type corresponding to the entity in the model entity file in the model file tag corresponding to the model entity file. Then, it is searched in the pre-built model file library whether there is a model entity file of the same type with the same entity type as the target entity type. If it is determined that there is a model entity file of the same type with the same entity type as the target entity type in the pre-built model file library, it is determined that there is also a public texture file similar to the texture file in the model file library, and the texture file is deleted. Multiple model entity files of the same type can share a texture file, which can avoid storing duplicate texture files, optimize storage space, and improve storage space utilization; if it is determined that there is a model entity file of the same type with the same entity type as the target entity type in the pre-built model file library, the texture file is retained and used as a public texture file in the model file library for displaying the texture of the target entity type.
[0050] In one embodiment, the method may further include: modifying the initial file format in the model file tag to a preset target file format to complete the update of the model file tag.
[0051] It can be understood that the update of the model file tag may include the modification of the file format.
[0052] Specifically, after the model file is converted according to the target file format conversion strategy to obtain a model file of a preset target file format, the initial file format in the model file tag is modified to the preset target file format. In this way, modifying the initial file format in the model file tag to the preset target file format helps the subsequent processor to determine that the format of the model file has been converted, avoids repeated file format conversion operations, and improves the processor's management efficiency of the model file.
[0053] In one embodiment, obtaining the model file corresponding to the target object and the model file tag corresponding to the model file may include: obtaining the model file corresponding to the target object whose file update time is within a preset time period and the model file tag corresponding to the model file.
[0054] It can be understood that the file update time is the time when the file is uploaded or the time when the file is updated, and the preset time period is a preset time period, such as 24 hours.
[0055] Specifically, if the file update time is within the preset time period, the processor can scan and obtain the model file whose file update time corresponding to the target object is within the preset time period and the model file tag corresponding to the model file; if the file update time is not within the preset time period, the model file tag corresponding to the model file of the model file whose file update time corresponding to the target object is not within the preset time period waits for the next file scanning operation of the processor.
[0056] A specific embodiment of the present application provides a method for managing model files, such as Figure 2 As shown, by obtaining the model file corresponding to the target object, on the one hand, the remote sensing image obtained by remote sensing equipment such as laser radar and / or photographic equipment can be photographed, and the remote sensing image can be modeled using three-dimensional processing software to obtain a point cloud model and / or a real scene model (such as an oblique photography model), and the model files of the point cloud model and the real scene model are obtained. The model files are compressed and uploaded to the server corresponding to the target object (for example: a mining application server) to increase the speed of file uploading; on the other hand, the user can also search for the corresponding image data on the networked device and / or the image data obtained by the user's own photography for model construction, and then the step line model, road network model, perforation plan model, monthly plan line model, road network model, model entity and map model can be obtained, and the model files corresponding to the above models are uploaded to the server corresponding to the target object (for example: a mining application server).
[0057] Due to the different sources of model files, the target file format types of the model file's initial file format are also different. The previewability of the diverse initial file formats is low. Figure 3 As shown, the server corresponding to the target object (for example, a mining application server) divides the model files uploaded by the remote sensing equipment and the user into step line models, road network models, perforation plan models, monthly plan line models, road network models, model entities, and map models, and then divides the map model into point cloud models, real scene models, and geological models, and stores the model files in folders corresponding to the file update time.
[0058] Then, a model file tag corresponding to the model file is obtained, wherein the model file tag includes an initial file format corresponding to the model file, a target file format type to which the initial file format belongs is determined, and based on a correspondence between a predetermined file format type and a file format conversion strategy, a target file format conversion strategy corresponding to the target file format type is determined.
[0059] If the target file format type to which the initial file format (for example, the osgb file format) belongs is the first file format type, the target file format conversion strategy is determined to be the first file format conversion strategy, and a first format conversion tool (for example, the osgconv tool) is called to convert the model file of the initial file format (for example, the osgb file format) into a model file of a quasi-conversion file format (for example, the obj format). Thereafter, a second format conversion tool (for example, the assimp tool) is called to convert the model file of the quasi-conversion file format (for example, the obj file format) into a model file of a preset target file format (for example, the gltf file format).
[0060] If the target file format type to which the initial file format (such as obj, stl, fbx file format) belongs is the second file format type, the target file format conversion strategy is determined to be the second file format conversion strategy, and the second format conversion tool (such as assimp tool) is called to convert the model file of the initial file format (such as obj, stl, fbx file format) into a model file of a preset target file format (such as gltf file format).
[0061] If the target file format type to which the initial file format (e.g., zip file format) belongs is the third file format type, i.e., the compressed file format type, then the target file format conversion strategy is determined to be the third file format conversion strategy, and the model file of the initial file format is decompressed to obtain the decompressed model file. It is determined whether the decompressed model file is a model file of a quasi-conversion file format (e.g., obj file format). If it is determined that the decompressed model file is a model file of a quasi-conversion file format (e.g., obj file format), a second format conversion tool (e.g., assimp tool) is called to convert the model file of the quasi-conversion file format (e.g., obj file format) into a model file of a preset target file format (e.g., gltf file format); if it is determined that the decompressed model file is a preset target file format (e.g., tileset.json file format or gltf file), no format conversion processing is required, wherein the model file of the tileset.json file format is a subfile of the 3DTiles file.
[0062] In this way, by adopting different target file format conversion strategies, model files in various initial file formats can be converted into model files in preset target file formats (for example, including glb format, gltf format and 3DTiles format), which can improve the previewability of model files corresponding to multiple file format types.
[0063] In addition, if Figure 4As shown, after the model file is format converted according to the target file format conversion strategy to obtain a model file in a preset target file format (for example, gltf+bin file format), the model file corresponding to the target object includes a model entity file corresponding to the entity object, and a texture file (for example, a bin file) corresponding to the model entity file in the preset target file format is obtained. Based on the model file label, the target entity type to which the entity object corresponding to the model entity file in the preset target file format belongs is determined. If a model entity file of the same type whose entity classification and entity type are the same as the target entity type exists in the pre-built model file library, the texture file is deleted; if a model entity file of the same type whose entity type is the same as the target entity type does not exist in the pre-built model file library, the texture file is retained. Based on this, the storage space of the model file library can be optimized and the space utilization rate can be improved.
[0064] Among them, Figure 5 As shown, the common functions of the model entity file and the model files other than the model entity file include file record detail query, file record list query, file upload, file conversion (format conversion), file download, file deletion, file editing (i.e. file modification), file setting as display, file preview, and returning all file paths and other file management operations. The model file is displayed on the display screen through the common function of setting the file as display. Through the function of returning all file paths, the path of the model file to be displayed in the file system can be obtained, so as to obtain the model file and display it on the display screen. In this way, the model file can be quickly obtained, and the display efficiency of the model file can be improved.
[0065] The private functions of the model entity file relative to the model file outside the model entity file include adding model entity classification, deleting model entity classification, editing model entity classification (modifying model entity classification), model entity classification list query, adding model entity type, deleting model entity type, editing model entity type (modifying model entity type) model entity type list query, model entity classification includes engineering machinery, vehicles, people, environment and others. The engineering machinery model entity classification includes model entity types such as excavators, bulldozers and road rollers, the vehicle model entity classification includes model entity types such as sedans, SUVs and MPVs, and the environment model entity classification includes model entity types such as cameras, slope monitoring and slope radars, while the person model entity classification and other model entity classifications are not divided into multiple model entity types.
[0066] An embodiment of the present application also provides a device for model file management, which may include: a memory configured to store instructions; and a processor configured to call the instructions from the memory and implement the above-mentioned method for model file management when executing the instructions.
[0067] An embodiment of the present application also provides a device for model file management, including: the apparatus for model file management according to the above-mentioned apparatus.
[0068] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method for model file management.
[0069] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0070] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0071] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0072] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0073] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0074] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0075] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0076] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0077] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for model file management, characterized in that: The method comprises: Acquire a model file corresponding to the target object and a model file tag corresponding to the model file, wherein the model file tag includes an initial file format corresponding to the model file; Determine the target file format type to which the initial file format belongs; Determining a target file format conversion strategy corresponding to the target file format type based on a predetermined correspondence between the file format type and the file format conversion strategy; The model file is format converted according to the target file format conversion strategy to obtain the model file in a preset target file format.
2. The method according to claim 1, characterized in that The target file format type includes a first file format type, and the target file format conversion strategy includes a first file format conversion strategy corresponding to the first file format type; The step of converting the format of the model file according to the target file format conversion strategy to obtain the model file in a preset target file format includes: In a case where the target file format conversion strategy is the first file format conversion strategy, using a first format conversion tool to convert the model file in the initial file format into the model file in the quasi-conversion file format; A second format conversion tool is used to convert the model file in the quasi-conversion file format into the model file in a preset target file format.
3. The method according to claim 1, characterized in that The target file format type includes a second file format type, and the target file format conversion strategy includes a second file format conversion strategy corresponding to the second file format type; The step of converting the format of the model file according to the target file format conversion strategy to obtain the model file in a preset target file format includes: In the case where the target file format conversion strategy is the second file format conversion strategy, a second format conversion tool is used to convert the model file in the initial file format into the model file in a preset target file format.
4. The method according to claim 1, characterized in that: The target file format type includes a third file format type, the third file format type includes a compressed file format type, and the target file format conversion strategy includes a third file format conversion strategy corresponding to the third file format type; The step of converting the format of the model file according to the target file format conversion strategy to obtain the model file in a preset target file format includes: In a case where the target file format conversion strategy is the third file format conversion strategy, decompressing the model file in the initial file format to obtain a decompressed model file; Determining that the decompressed model file is the model file in the quasi-conversion file format; A second format conversion tool is used to convert the model file in the quasi-conversion file format into the model file in a preset target file format.
5. The method according to claim 1, characterized in that The model file corresponding to the target object includes a model entity file corresponding to the entity object, the model file tag includes an entity type to which the entity object belongs, and the method further includes: Obtaining a texture file corresponding to the model entity file in the preset target file format; Based on the model file tag, determining a target entity type to which the entity object corresponding to the model entity file in the preset target file format belongs; When it is determined that there is a model entity file of the same type as the target entity type in the pre-built model file library, the texture file is deleted.
6. The method according to claim 1, characterized in that The method further comprises: The initial file format in the model file tag is modified to the preset target file format to complete the update of the model file tag.
7. The method according to claim 1, characterized in that The step of acquiring the model file corresponding to the target object and the model file tag corresponding to the model file includes: A model file corresponding to a target object and having a file update time within a preset time period and a model file label corresponding to the model file are obtained.
8. A device for model file management, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instructions from the memory and implement the method for model file management according to any one of claims 1 to 7 when executing the instructions.
9. A device for model file management, characterized in that: include: The device for model file management according to claim 8.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing a machine to execute the method for model file management according to any one of claims 1 to 7.