CN111061896B - Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF) - Google Patents

Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF) Download PDF

Info

Publication number
CN111061896B
CN111061896B CN201910998384.3A CN201910998384A CN111061896B CN 111061896 B CN111061896 B CN 111061896B CN 201910998384 A CN201910998384 A CN 201910998384A CN 111061896 B CN111061896 B CN 111061896B
Authority
CN
China
Prior art keywords
file
vector
compressed
loading
gltf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910998384.3A
Other languages
Chinese (zh)
Other versions
CN111061896A (en
Inventor
方荣华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Shenku Xiaojiang Technology Co ltd
Original Assignee
Wuhan Shenku Xiaojiang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Shenku Xiaojiang Technology Co ltd filed Critical Wuhan Shenku Xiaojiang Technology Co ltd
Priority to CN201910998384.3A priority Critical patent/CN111061896B/en
Publication of CN111061896A publication Critical patent/CN111061896A/en
Application granted granted Critical
Publication of CN111061896B publication Critical patent/CN111061896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a loading method, a loading device, loading equipment and loading media of a 3D graph based on glTF. The method comprises the following steps: receiving a picture loading instruction; compressing the vector file, acquiring the compressed vector file, marking the compressed vector file, acquiring the vector mark of the compressed vector file, acquiring the format name of the material file, establishing different databases according to the format name and storing the corresponding material file; establishing a tag name corresponding table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file; and decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table. According to the method, the image file to be loaded is divided into the vector file and the material file, the vector file is compressed, and when the vector file needs to be decompressed and the corresponding material file is found, the loading and displaying speed of the 3D graph is effectively improved through the method.

Description

Method, device, equipment and medium for loading 3D (three-dimensional) graph based on glTF (generalized likelihood of transfer function)
Technical Field
The invention relates to the field of web 3D graphics, in particular to a method, a device, equipment and a medium for loading a 3D graphic based on glTF.
Background
With the development of science and technology, a plurality of 3D formats appear on the market, various 3D model rendering programs need to process a plurality of formats, and because of too many formats, the glTF format is proposed, which is a summary of various 3D formats in the last two decades and uses an optimal data structure to ensure the maximum compatibility and scalability. The glTF is described using the json format, and can also be compiled into binary content: bglTF. The glTF may include scenes, cameras, animations, etc., and may also include meshes, textures, and even rendering techniques, shaders, and shader programs.
However, at present, the loading and displaying speed of the 3D graphics in the glTF format in the web domain is too slow, and meanwhile, the glTF contains a vector file and a material file, and there may be a file loss situation during the loading of the 3D graphics in the glTF format in the web domain, so that then, increasing the loading speed of the 3D graphics in the glTF format in the web domain becomes an urgent problem to be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
In view of this, the invention provides a method, an apparatus, a device and a medium for loading a 3D graphics based on a glTF, and aims to solve the technical problem that the prior art cannot improve the loading speed of some 3D graphics files in a complex glTF format in the web field.
The technical scheme of the invention is realized as follows:
in one aspect, the present invention provides a loading method for a glTF-based 3D graphic, the loading method for a glTF-based 3D graphic comprising the steps of:
s1, receiving a picture loading instruction, and extracting a picture file to be loaded from the loading instruction, wherein the picture file to be loaded comprises: vector files and material files;
s2, compressing the vector file, acquiring the compressed vector file, marking the compressed vector file, acquiring the vector mark of the compressed vector file, acquiring the format name of the material file, establishing different databases according to the format name and storing the corresponding material file;
s3, establishing a tag name corresponding table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file;
and S4, decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table.
On the basis of the foregoing technical solution, preferably, in step S1, a picture loading instruction is received, and a picture file to be loaded is extracted from the loading instruction, where the picture file to be loaded includes: the method comprises the steps of obtaining a local historical picture file, receiving a picture loading instruction, extracting a picture file to be loaded from the loading instruction, verifying the integrity of the picture file to be loaded according to the local historical picture file, sending an error warning to a user and receiving a next picture loading instruction when the picture file to be loaded is an incomplete picture.
On the basis of the above technical solution, preferably, in step S2, the vector file is compressed, the compressed vector file is obtained and marked, and the vector mark of the compressed vector file is obtained, and the method further includes the steps of obtaining a compression algorithm from a network, establishing an algorithm database according to the compression algorithm, obtaining a file format of the vector file, selecting at least one compression algorithm from the algorithm database according to the format, compressing the vector file, obtaining the compressed vector file and marking the compressed vector file, and obtaining the vector mark of the compressed vector file.
On the basis of the above technical solution, preferably, the method includes obtaining a compressed vector file and marking the compressed vector file, and obtaining a vector mark of the compressed vector file, and further includes the steps of establishing a key generator, after the vector file has been compressed, allocating a unique key to the compressed vector file, marking the compressed vector file as a vector mark according to a format of the compressed vector file, and obtaining the vector mark of the compressed vector file.
On the basis of the technical scheme, preferably, the vector file is compressed, and the method further comprises the following steps of setting a file byte threshold, acquiring a byte value of the vector file, comparing the byte value of the vector file with the file byte threshold, and compressing the vector file when the byte value of the vector file is smaller than the file byte threshold; when the byte value of the vector file is larger than the byte threshold of the file, the vector file is split into files meeting the byte threshold of the file, and the split files are compressed.
On the basis of the above technical solution, preferably, in step S2, a format name of the material file is obtained, different databases are established according to the format name, and the corresponding material file is stored, further comprising the following steps of obtaining local historical material file data and a corresponding file format name, establishing a local historical material file database according to the local historical material file data, establishing different databases according to different format names, and obtaining the format name of the material file, where the format name includes: jpg and png, searching the material file according to the local historical material file database, and establishing a new database according to the format name of the material file when the material file does not exist in the local historical material file database.
Based on the above technical solution, preferably, in step S4, the step of decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name correspondence table further includes the step of obtaining a decoding corresponding to the key from the key generator, decompressing the compressed vector file according to the decoding and reading the corresponding material file from the database according to the tag name correspondence table.
Still further preferably, the loading apparatus for glTF based 3D graphics includes:
the extracting module is used for receiving an image loading instruction and extracting an image file to be loaded from the loading instruction, wherein the image file to be loaded comprises: vector files and material files;
the compression module is used for compressing the vector file, acquiring the compressed vector file, marking the compressed vector file, acquiring the vector mark of the compressed vector file, acquiring the format name of the material file, establishing different databases according to the format name and storing the corresponding material file;
the table establishing module is used for establishing a label name corresponding table according to the vector label of the compressed vector file in the same picture file and the format name of the material file;
and the loading module is used for decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table.
In a second aspect, the method for loading glTF based 3D graphics further includes an apparatus comprising: a memory, a processor, and a glTF based 3D graphics loading method program stored on the memory and executable on the processor, the glTF based 3D graphics loading method program configured to implement the steps of the glTF based 3D graphics loading method as described above.
In a third aspect, the method for loading glTF based 3D graphics further includes a medium, which is a computer medium, and a glTF based 3D graphics loading method program is stored on the computer medium, and when executed by a processor, the method for loading glTF based 3D graphics performs the steps of the method for loading glTF based 3D graphics as described above.
Compared with the prior art, the loading method of the 3D graph based on the glTF has the following beneficial effects:
(1) The vector files in the picture files to be loaded are compressed and stored, so that the problem of too low compression speed caused by too large files in each compression process is effectively solved, only the vector files are compressed, and the loading and displaying speed of the pictures is accelerated when the corresponding pictures are required to be used;
(2) The corresponding material files are stored according to the format names of the material files in the picture files to be loaded, the problem that the compression speed is too low due to the fact that the material files need to be compressed together in the compression process is solved, the material files and the corresponding vector files are labeled and connected, when the corresponding pictures need to be loaded, the corresponding material files can be directly found from the storage library according to the labels, and the picture loading and displaying speed is increased.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a loading method for a glTF-based 3D graphics according to the present invention;
FIG. 3 is a functional block diagram illustrating a loading method of a glTF-based 3D graphics according to a first embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of the apparatus, and in actual implementations the apparatus may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a medium, may include therein an operating system, a network communication module, a user interface module, and a loading method program of the glTF based 3D graphic.
In the device shown in fig. 1, the network interface 1004 is mainly used for establishing a communication connection between the device and a server storing all data required in the loading method system for the glTF-based 3D graphics; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the glTF based 3D graphic loading method apparatus according to the present invention may be disposed in the glTF based 3D graphic loading method apparatus, and the glTF based 3D graphic loading method apparatus calls the glTF based 3D graphic loading method program stored in the memory 1005 through the processor 1001 and performs the loading method of the glTF based 3D graphic provided by the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a loading method for a glTF based 3D graphics according to the present invention.
In this embodiment, the loading method of the glTF based 3D graphics includes the following steps:
s10: receiving a picture loading instruction, and extracting a picture file to be loaded from the loading instruction, wherein the picture file to be loaded comprises: vector files and material files.
It should be understood that the glTF, also called a graphic language interchange format, is a format standard of 3D content, and the glTF includes vector files and material files, where the vector files are json format text files, and the material files are various types of picture files, such as: jpg, png.
It should be understood that, in this embodiment, the vector file refers to a vector graphics file, which is a graphics file described in a mathematical manner and can be arbitrarily scaled by a computer without losing details under the condition of an original software environment and a library file, and the material file refers to various picture files.
It should be understood that, after receiving the image loading instruction, the system extracts the image file to be loaded from the loading instruction, divides the image file to be loaded into a vector file and a material file, and stores the vector file and the corresponding material file after being linked by a tag for subsequent use.
It should be understood that, after receiving the image loading instruction, extracting the image file to be loaded from the loading instruction, the system acquires the local history image file, verifies the integrity of the image file to be loaded according to the local history image file, and when the image file to be loaded does not pass the integrity verification, the system extracts the incomplete image to be loaded and displays the incomplete image to be loaded to the user, and receives the next image loading instruction.
S20: compressing the vector file, obtaining the compressed vector file and marking the compressed vector file, obtaining the vector mark of the compressed vector file, obtaining the format name of the material file, establishing different databases according to the format name and storing the corresponding material file.
It should be understood that the system will establish a compression algorithm database according to compression algorithms, where each compression algorithm may be an algorithm obtained from a network or a compression algorithm input by a user, and each compression algorithm corresponds to one or more file formats, and when the system obtains a vector file, the system will extract the file format of the vector file from the vector file, and select one compression algorithm from the compression algorithm database according to the file format to compress the vector file, obtain a compressed vector file, and mark the compressed vector file as a vector mark.
It should be understood that a key is a parameter that is input in an algorithm for converting plaintext into ciphertext or converting ciphertext into plaintext, and a key generator is a program for automatically generating a key. In order to increase the security and confidentiality of the file, a key can be generated for the compressed file according to the key generator in the file compression process and used for decompressing the file, meanwhile, the password corresponding to the key is connected with the vector mark, and the password of the file key can be obtained through the vector mark.
It should be understood that the byte is a measurement unit for measuring the storage capacity, during the compression process, in order to avoid the file to be compressed being too large, the system may set a file byte threshold, where the threshold is used to determine that the file to be compressed is too large, which results in a slow compression speed, and only when the byte of the file to be compressed is greater than the file byte threshold, the system may automatically split the vector file into files meeting the file byte threshold, and respectively compress the split files, and pack the compressed files together.
It should be understood that the system may establish a local historical material file database according to the local historical material file data, where the database includes historical material files and corresponding file formats, establish different databases according to different format names, after obtaining the format names of the material files, the system may search the format names of the file materials according to the local historical material file database, when the corresponding format names are searched, the system may store the material files in the corresponding databases, and when the corresponding format names cannot be searched, the system may establish a new database according to the format names of the material files.
S30: and establishing a tag name corresponding table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file.
It should be understood that the system may establish a tag name correspondence table according to the format names of the vector files and the material files belonging to the same picture file, where the tag name correspondence table is used to store the vector tags of the compressed vector files and the format names of the corresponding material files, and the system may quickly search for the required compressed vector files and material files according to the tag name correspondence table.
S40: and decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table.
It should be understood that, when a picture needs to be loaded, the system compresses a compressed vector file corresponding to the picture to be loaded, obtains a corresponding decompressed password from a vector tag of the compressed vector file, finds a material file corresponding to the compressed vector file according to a tag name correspondence table, and directly extracts the corresponding material file from a database, so as to accelerate the loading and displaying speed of the 3D graph.
The above description is only for illustrative purposes and does not limit the technical solutions of the present application in any way.
As can be easily found from the above description, in this embodiment, by receiving a picture loading instruction, a picture file to be loaded is extracted from the loading instruction, where the picture file to be loaded includes: vector files and material files; compressing the vector file, acquiring the compressed vector file, marking the compressed vector file, acquiring the vector mark of the compressed vector file, acquiring the format name of the material file, establishing different databases according to the format name and storing the corresponding material file; establishing a tag name corresponding table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file; and decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table. According to the method, the image file to be loaded is divided into the vector file and the material file, the vector file is compressed, and when the vector file needs to be decompressed and the corresponding material file is found, the loading and displaying speed of the 3D graph is effectively improved through the method.
In addition, the embodiment of the invention also provides a loading device of the 3D graph based on the glTF. As shown in fig. 3, the loading apparatus of the glTF based 3D graphic includes: the system comprises an extraction module 10, a compression module 20, a table establishing module 30 and a loading module 40.
The extracting module 10 is configured to receive an image loading instruction, and extract an image file to be loaded from the loading instruction, where the image file to be loaded includes: vector files and material files;
the compression module 20 is configured to compress the vector file, obtain a compressed vector file after compression, mark the compressed vector file, obtain a vector mark of the compressed vector file, obtain a format name of the material file, establish different databases according to the format name, and store the corresponding material file;
the table establishing module 30 is configured to establish a tag name correspondence table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file;
and the loading module 40 is used for decompressing the compressed vector file and reading a corresponding material file from the database according to the tag name corresponding table.
In addition, it should be noted that the above-described embodiments of the apparatus are merely illustrative, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of the modules to implement the purpose of the embodiments according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not elaborated in this embodiment can be referred to a loading method of the glTF-based 3D graphics provided in any embodiment of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a medium, where the medium is a computer medium, and the computer medium stores a loading method program for a glTF-based 3D graphics, and when executed by a processor, the loading method program for the glTF-based 3D graphics implements the following operations:
s1, receiving a picture loading instruction, and extracting a picture file to be loaded from the loading instruction, wherein the picture file to be loaded comprises: vector files and material files;
s2, compressing the vector file, acquiring the compressed vector file, marking the compressed vector file, acquiring the vector mark of the compressed vector file, acquiring the format name of the material file, establishing different databases according to the format name and storing the corresponding material file;
s3, establishing a tag name corresponding table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file;
and S4, decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table.
Further, the loading method program of the glTF based 3D graphics, when executed by the processor, further implements the following operations:
the method comprises the steps of obtaining a local historical picture file, receiving a picture loading instruction, extracting a picture file to be loaded from the loading instruction, verifying the integrity of the picture file to be loaded according to the local historical picture file, and when the picture file to be loaded is an incomplete picture, giving an error warning to a user and receiving a next picture loading instruction.
Further, the loading method program of the glTF based 3D graphics further realizes the following operations when being executed by the processor:
the method comprises the steps of obtaining compression algorithms from a network, establishing an algorithm database according to the compression algorithms, obtaining file formats of vector files, selecting at least one compression algorithm from the algorithm database according to the formats, compressing the vector files, obtaining compressed vector files, marking the compressed vector files, and obtaining vector marks of the compressed vector files.
Further, the loading method program of the glTF based 3D graphics further realizes the following operations when being executed by the processor:
and establishing a key generator, distributing a unique key to the compressed vector file after the vector file is compressed, marking the compressed vector file as a vector mark according to the format of the compressed vector file, and acquiring the vector mark of the compressed vector file.
Further, the loading method program of the glTF based 3D graphics further realizes the following operations when being executed by the processor:
setting a file byte threshold, acquiring a byte value of a vector file, comparing the byte value of the vector file with the file byte threshold, and compressing the vector file when the byte value of the vector file is smaller than the file byte threshold; when the byte value of the vector file is larger than the byte threshold of the file, the vector file is split into files meeting the byte threshold of the file, and the split files are compressed.
Further, the loading method program of the glTF based 3D graphics further realizes the following operations when being executed by the processor:
acquiring local historical material file data and corresponding file format names, establishing a local historical material file database according to the local historical material file data, establishing different databases according to different format names, and acquiring the format names of the material files, wherein the format names comprise: jpg and png, searching the material file according to the local historical material file database, and establishing a new database according to the format name of the material file when the material file does not exist in the local historical material file database.
Further, the loading method program of the glTF based 3D graphics further realizes the following operations when being executed by the processor:
and acquiring a decoding corresponding to the key from the key generator, decompressing the compressed vector file according to the decoding, and reading a corresponding material file from the database according to the tag name corresponding table.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A loading method of a 3D graph based on glTF is characterized in that: comprises the following steps;
s1, receiving a picture loading instruction, and extracting a picture file to be loaded from the loading instruction, wherein the picture file to be loaded comprises: vector files and material files;
s2, compressing the vector file, obtaining the compressed vector file, marking the compressed vector file, obtaining the vector mark of the compressed vector file, obtaining the format name of the material file, establishing different databases according to the format name and storing the corresponding material file;
s3, establishing a tag name corresponding table according to the vector tag of the compressed vector file in the same picture file and the format name of the material file;
and S4, decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table.
2. The loading method of glTF based 3D graphic as set forth in claim 1, wherein: in step S1, a picture loading instruction is received, and a picture file to be loaded is extracted from the loading instruction, where the picture file to be loaded includes: the method comprises the steps of obtaining a local historical picture file, receiving a picture loading instruction, extracting a picture file to be loaded from the loading instruction, verifying the integrity of the picture file to be loaded according to the local historical picture file, and sending an error warning to a user and receiving a next picture loading instruction when the picture file to be loaded is an incomplete picture.
3. The loading method of glTF based 3D graphic as set forth in claim 1, wherein: in step S2, the vector file is compressed, the compressed vector file is obtained and marked, and the vector mark of the compressed vector file is obtained, the method also comprises the following steps of obtaining a compression algorithm from a network, establishing an algorithm database according to the compression algorithm, obtaining the file format of the vector file, selecting at least one compression algorithm from the algorithm database according to the format, compressing the vector file, obtaining the compressed vector file and marking the compressed vector file, and obtaining the vector mark of the compressed vector file.
4. The glTF based 3D graphic loading method as recited in claim 3, wherein: the method comprises the steps of obtaining a compressed vector file, marking the compressed vector file, and obtaining a vector mark of the compressed vector file, and also comprises the following steps of establishing a key generator, distributing a unique key to the compressed vector file after the vector file is compressed, marking the compressed vector file as a vector mark according to the format of the compressed vector file, and obtaining the vector mark of the compressed vector file.
5. The loading method of glTF based 3D graphic as set forth in claim 3, wherein: setting a file byte threshold value, acquiring a byte value of the vector file, comparing the byte value of the vector file with the file byte threshold value, and compressing the vector file when the byte value of the vector file is smaller than the file byte threshold value; when the byte value of the vector file is larger than the byte threshold of the file, splitting the vector file into files meeting the byte threshold of the file, and compressing each split file.
6. The loading method of glTF based 3D graphic as recited in claim 1, wherein: in step S2, the format name of the material file is obtained, different databases are established according to the format name, and the corresponding material file is stored, and the method further includes the following steps of obtaining local historical material file data and the corresponding file format name, establishing a local historical material file database according to the local historical material file data, establishing different databases according to different format names, and obtaining the format name of the material file, wherein the format name includes: jpg and png, searching the material file according to the local historical material file database, and establishing a new database according to the format name of the material file when the material file does not exist in the local historical material file database.
7. The loading method of glTF based 3D graphic as set forth in claim 1, wherein: and in the step S4, decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table, and further comprising the steps of obtaining a decoding corresponding to the key from the key generator, decompressing the compressed vector file according to the decoding and reading the corresponding material file from the database according to the tag name corresponding table.
8. A loading apparatus of a glTF based 3D graphic, the loading apparatus of the glTF based 3D graphic comprising:
the extracting module is used for receiving a picture loading instruction and extracting a picture file to be loaded from the loading instruction, wherein the picture file to be loaded comprises: vector files and material files;
the compression module is used for compressing the vector file, acquiring the compressed vector file, marking the compressed vector file, acquiring the vector mark of the compressed vector file, acquiring the format name of the material file, establishing different databases according to the format name and storing the corresponding material file;
the table establishing module is used for establishing a label name corresponding table according to the vector label of the compressed vector file in the same picture file and the format name of the material file;
and the loading module is used for decompressing the compressed vector file and reading the corresponding material file from the database according to the tag name corresponding table.
9. An apparatus, characterized in that the apparatus comprises: a memory, a processor, and a loading method program for glTF based 3D graphics stored on the memory and executable on the processor, the loading method program for glTF based 3D graphics being configured to implement the steps of the loading method for glTF based 3D graphics according to any one of claims 1 to 7.
10. A medium, which is a computer medium, wherein the computer medium stores thereon a loading method program for glTF based 3D graphics, and the loading method program for glTF based 3D graphics, when executed by a processor, implements the steps of the loading method for glTF based 3D graphics as recited in any one of claims 1 to 7.
CN201910998384.3A 2019-10-21 2019-10-21 Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF) Active CN111061896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910998384.3A CN111061896B (en) 2019-10-21 2019-10-21 Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910998384.3A CN111061896B (en) 2019-10-21 2019-10-21 Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF)

Publications (2)

Publication Number Publication Date
CN111061896A CN111061896A (en) 2020-04-24
CN111061896B true CN111061896B (en) 2023-04-18

Family

ID=70298420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910998384.3A Active CN111061896B (en) 2019-10-21 2019-10-21 Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF)

Country Status (1)

Country Link
CN (1) CN111061896B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897617B (en) * 2020-08-12 2021-12-14 腾讯科技(深圳)有限公司 Picture loading method and device, computer equipment and storage medium
CN112419139A (en) * 2020-11-20 2021-02-26 深圳市鲲鹏数码科技有限公司 UI display effect processing method and storage medium
CN113032590B (en) * 2021-03-29 2024-05-03 广州繁星互娱信息科技有限公司 Special effect display method, device, computer equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644689A (en) * 1992-01-13 1997-07-01 Hitachi, Ltd. Arbitrary viewpoint three-dimensional imaging method using compressed voxel data constructed by a directed search of voxel data representing an image of an object and an arbitrary viewpoint
JP2001251646A (en) * 2000-03-06 2001-09-14 Fuji Photo Film Co Ltd Image compression method for multi-spectral image and image compressor
WO2004029875A2 (en) * 2002-09-25 2004-04-08 The University Court Of The University Of Glasgow Image compression
CN102637195A (en) * 2012-02-27 2012-08-15 王涛 Terminal system based on vector image play and realization method thereof
CN103873860A (en) * 2014-03-18 2014-06-18 深信服网络科技(深圳)有限公司 Document transmission method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080205791A1 (en) * 2006-11-13 2008-08-28 Ramot At Tel-Aviv University Ltd. Methods and systems for use in 3d video generation, storage and compression

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644689A (en) * 1992-01-13 1997-07-01 Hitachi, Ltd. Arbitrary viewpoint three-dimensional imaging method using compressed voxel data constructed by a directed search of voxel data representing an image of an object and an arbitrary viewpoint
JP2001251646A (en) * 2000-03-06 2001-09-14 Fuji Photo Film Co Ltd Image compression method for multi-spectral image and image compressor
WO2004029875A2 (en) * 2002-09-25 2004-04-08 The University Court Of The University Of Glasgow Image compression
CN102637195A (en) * 2012-02-27 2012-08-15 王涛 Terminal system based on vector image play and realization method thereof
CN103873860A (en) * 2014-03-18 2014-06-18 深信服网络科技(深圳)有限公司 Document transmission method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Arne Schilling.Using glTF for streaming CityGML 3D city models.《Web3D '16: Proceedings of the 21st International Conference on Web3D Technology》.2016,第109–116页. *
曹存相.基于WebGL的矢量瓦片渲染优化方法研究.《地质资源与勘查》.2019,第42卷(第02期),第038-041页. *

Also Published As

Publication number Publication date
CN111061896A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN111061896B (en) Loading method, device, equipment and medium for 3D (three-dimensional) graph based on glTF (generalized likelihood TF)
CN110458918B (en) Method and device for outputting information
CN106294798B (en) Image sharing method and terminal based on thumbnail
KR102222087B1 (en) Image recognition method and apparatus based on augmented reality
US8782617B2 (en) Apparatus and method for translating open vector graphic application program interface
EP3716123A1 (en) File packing and file package unpacking method and apparatus, and network device
CN101193074A (en) A method and system for display image on instant communication demonstration frame
CN110830807A (en) Image compression method, device and storage medium
CN107741889A (en) Document recovery method, system, readable storage medium storing program for executing and terminal
CN112581477A (en) Image processing method, image matching method, device and storage medium
CN110662080B (en) Machine-oriented universal coding method
CN108881997A (en) Animation file generates and playback method, device and system
CN106920270B (en) Animation processing method and device
KR101984825B1 (en) Method and Apparatus for Encoding a Cloud Display Screen by Using API Information
CN105704215B (en) Shared file system and corresponding document sending method and device
US20210166073A1 (en) Image generation method and computing device
JP2017192080A (en) Image compression device, image decoding device, image compression method, and image compression program
CN111767417A (en) Application picture management method, device, equipment and storage medium
CN113362443B (en) Embroidery effect picture generation method and device, storage medium and electronic equipment
CN115016754A (en) Method and device for synchronously displaying pages among devices, electronic device and medium
US11317005B2 (en) System and method for determining compression rates for images comprising text
CN114491677A (en) Hardware performance evaluation method and device of intelligent terminal, storage medium and terminal
CN112051974B (en) Electronic price tag information transmission method and system, electronic price tag and server
CN114691769A (en) Unstructured data processing method and device of power monitoring system
CN113473171A (en) Resource processing method and device

Legal Events

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