Compression method, analysis method and system for data of OBJ file

A compression method and compression system technology, applied in the field of data processing, can solve the problems of increasing data processing costs, increasing the volume of 3D model resource packages, etc.

Pending Publication Date: 2020-06-23
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the embodiment of the present invention is to overcome the defects in the prior art that a third-party tool needs to be added to the 3D model resource package in orde

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Compression method, analysis method and system for data of OBJ file
  • Compression method, analysis method and system for data of OBJ file
  • Compression method, analysis method and system for data of OBJ file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0095] A data compression method of an OBJ file, such as figure 1 As shown, the compression method may include the following steps:

[0096] Step S11: identifying the OBJ file, and acquiring the data in the OBJ file;

[0097] Step S12: perform binary conversion on the default binary category of the data to obtain compressed data, the compressed data has a converted binary category, and the number of bytes of the converted binary category is smaller than that of the default binary category number of bytes.

[0098] In this embodiment, the OBJ file may be composed of multiple lines of text, and the text is a readable text format encoded as Unicode.

[0099] The default binary type can be preset by the program developer. Preferably, the default base type is decimal.

[0100] As a non-limiting implementation of Example 1, the data may include integer data, and the integer data has a first default base type;

[0101] The performing the base conversion on the default base type ...

Embodiment 2

[0111] This embodiment is a further improvement on the basis of Embodiment 1. Please refer to figure 2 , after step S12, may also include the following steps:

[0112] Step S13: delete the header of the compressed data, and add only one header to multiple compressed data of the same type.

[0113]In this embodiment, the data type of the OBJ file can be distinguished according to the meaning represented by the data in the OBJ file. For example, the data representing the vertex of the model can be considered as the vertex coordinate data type, and the data representing the normal line can be regarded as Think normal data types etc.

[0114] Further, the multiple compressed data can be multiple data vectors. The header may be a flag used to distinguish different types of data.

[0115] Specifically, the header may be letters or symbols written before all bytes of the data vector, for example: v, s, t, @, vt, etc. Data of the same type can be identified by the same letter or...

Embodiment 3

[0134] A data compression system for OBJ files, such as Figure 4 As shown, the compression system 1 may include:

[0135] The first data acquisition module 2 is configured to identify the OBJ file and acquire the data in the OBJ file;

[0136] The first hexadecimal conversion module 3 is used to perform hexadecimal conversion on the default hexadecimal category of the data to obtain compressed data, the compressed data has a converted hexadecimal category, and the number of bytes of the converted hexadecimal category is less than The number of bytes in the default base class.

[0137] Further, the data may include integer data, and the integer data has a first default hexadecimal category; the first hexadecimal conversion module 3 may include a first compression submodule 31, and the first compression submodule 31 is used to perform base conversion on the first default base type of the integer data to obtain first compressed data, where the first compressed data has a first...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a compression method, analysis method and system for data of an OBJ file, and the method comprises the following steps: recognizing the OBJ file, and obtaining the data in theOBJ file; and carrying out system conversion on the default system category of the data to obtain compressed data, the compressed data having a converted system category, and the byte number of the converted system category being smaller than the byte number of the default system category. According to the technical scheme, the data transmission speed and the analysis speed of the OBJ file in the3D model can be increased, and the size of a 3D model resource packet can be effectively reduced.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a data compression method, analysis method and system of an OBJ file. Background technique [0002] The OBJ file is a commonly used standard file format for 3D models developed by Alias|Wavefront for workstation-based 3D model (3-Dimensions Model) modeling and animation software "Advanced Visualizer". OBJ files are usually used for file transfer and mutual import between 3D modeling software. OBJ files can store information such as vertices, normals, texture coordinates and materials of 3D models in the form of plain text. [0003] In order to save the transmission and analysis time of the OBJ file, in the prior art, a third-party tool is usually used to compress the data in the OBJ file. Wherein, the third-party tool may be ZIP (zone information protocol), FBX (FeedBack eXterminator) and the like. [0004] However, using a third-party tool to compress and analyze the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/174
Inventor 杨超刘享军白国兴
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products