Analysis and display method of ply file of mobile 3D model based on opengl

A 3D model and file analysis technology, applied in 3D modeling, software engineering design, program code conversion, etc., can solve problems such as low real-time requirements and small amount of data, and achieve the effect of improving rendering efficiency

Active Publication Date: 2021-08-10
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current research based on OpenGL is mostly used for the rendering of static models, which has the disadvantages of small data volume and low real-time requirements.

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
  • Analysis and display method of ply file of mobile 3D model based on opengl
  • Analysis and display method of ply file of mobile 3D model based on opengl

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0055] as attached figure 1 As shown, the present embodiment discloses a three-dimensional model ply file analysis and rendering method based on opengl, comprising the following steps:

[0056] S1. Create an InputStream to read the ply file.

[0057] Specific steps are as follows:

[0058] First, create an Assets folder under the Main file of the Android project, and put the ply file so that the input stream can get data.

[0059] Then, call the Android function context.getAssets().open() to get the input stream. At the same time, in order to handle the IO exceptions that may occur during the reading process, ensure that the execution process is robust. The processing method is to use the try / catch statement to handle IOException.

[0060] S2. Create a parsing class corresponding to the ply file information. Specific steps are as follows:

[0061] First, define private class attributes, which include:

[0062] The Boolean type inHeader used to judge whether the header h...

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 an OpenGL-based method for parsing and displaying a three-dimensional model ply file of a mobile terminal, comprising the following steps: reading the ply file; creating an analysis class corresponding to the information of the ply file; creating an analysis class object to read the model from an input stream File information; create Buffer cache points, surface color information, and Vertex and Fragement Shader; call the OpenGL interface in the java layer to write the drawing function; create a Renderer class to call the drawing function to render the 3D model. The present invention utilizes the basic program language to analyze files for point, surface and color data, and combines the OpenGL language to realize the mutual link between the model data and the underlying GPU, thereby realizing the presentation of the 3D model on the mobile terminal and improving the drawing efficiency of the 3D model on the mobile platform.

Description

technical field [0001] The invention relates to the technical field of graphics processing, in particular to an OpenGL-based method for parsing and displaying a three-dimensional model ply file of a mobile terminal. Background technique [0002] With the development of hardware performance of mobile devices, people's demand for graphic interactive experience of mobile terminals is gradually increasing, and more and more applications of 3D scenes are shifted from PC to mobile terminal devices. However, most of the existing mobile visualization software only supports the display of two-dimensional graphics, and for some relatively large three-dimensional models, their analysis and rendering on mobile terminals require a lot of complicated calculations, which is not efficient. [0003] In terms of graphics display, the Android system uses an embedded 3D graphics algorithm to annotate OpenGL to realize the rendering of 3D graphics. OpenGL is a cross-platform low-level 3D graphi...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/38G06F8/41G06T17/00
CPCG06F8/38G06F8/427G06T17/00
Inventor 魏泽伟张键驰贾奎陈泽康马小琦谢裕麟
Owner SOUTH CHINA UNIV OF TECH
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