Map linear symbol drawing method and system based on graphics processing unit (GPU)

A linear and symbolic technology, applied in the field of map linear symbols, can solve the problems of waste of resources and efficiency, and achieve the effect of less memory consumption, reduced CPU calculation burden, and adjustable parameters

Inactive Publication Date: 2013-08-28
JIANGSU PROVINCE IN HERE DIGITAL TECH
View PDF4 Cites 53 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem solved by the present invention is: to overcome the waste and deficiency of resources and efficiency caused by drawing map linear symbols in the three-dimensional scene in the prior art, to provide a method and system for drawing map linear symbols based on GPU, and to provide a vertex shader based on GLSL (Vertex Shader) and Fragment Shader (Fragment Shader) codes to draw map linear symbols, which make full use of the efficient computing power of GPU, simple to implement, adjustable parameters, and convenient for programmers to develop and expand

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
  • Map linear symbol drawing method and system based on graphics processing unit (GPU)
  • Map linear symbol drawing method and system based on graphics processing unit (GPU)
  • Map linear symbol drawing method and system based on graphics processing unit (GPU)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Further description will be given below in conjunction with the accompanying drawings and implementation examples.

[0033] see figure 1 It is a general flow chart of the implementation example of the present invention. The GPU-based map linear symbol drawing method uses the Shader language to draw map linear symbols under the programmable pipeline system. The method includes the steps of creating a drawing model, including:

[0034] Step 1 Build the vertex array cache object model:

[0035] According to the central line of the linear data (the total length is Lmax) and the linear half-width (Wmax), a linear polygon triangulation network with a certain width is constructed. The basic structure of the vertex is (x, y, z, u, v), x, y, z are the coordinates of the vertex in the three-dimensional system, u is a value that has a certain relationship with the distance from the vertex to the starting point of the line, v is the value related to The distance between the verte...

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 relates to a map linear symbol drawing method and a map linear symbol drawing system based on a graphics processing unit (GPU). According to the method, under a three-dimensional rendering programmable assembly line system, a shader language is used for sending a function relation between map linear symbol coloring and linear parameters to the GPU for calculation, so that map linear symbols can be drawn with high efficiency. The method comprises the following steps of establishing a vortex array caching object by taking half-linear width as a buffering region according to a linear center line, recording xyz of the position of a vortex and transverse and longitudinal coordinate relation parameters uv of the vortex on the whole buffering zone; writing a vortex shader, sending the uv parameters into a fragment shader, and performing rasterization interpolation by using the GPU; and building a function of a fragment color and the uv in the fragment shader, and calculating pixel coloring. In an actual drawing process, the vortex caching objects are bound to be property parameters for sending; global parameters required in a shader file are set; and therefore, the linear symbols can be drawn.

Description

[0001] technical field [0002] The present invention relates to three-dimensional visual rendering technology in computer graphics and geographic information system (abbreviated as GIS) symbolization technology, and provides a coloring language based on OpenGL (opengl shader language, GLSL), in three-dimensional programmable pipeline mode, drawing Method and system for map linear symbols. The invention utilizes the high-efficiency computing capability of the GPU to improve the rendering efficiency of map linear symbols. [0003] Background technique [0004] With the development of 3D rendering technology, the use of Graphics Processing Unit (GPU) has greatly accelerated the efficiency and effect of real-time rendering of 3D graphics. Facts have proved that the GPU can provide dozens or even hundreds of times the performance of the CPU in some calculations related to graphics rendering, such as floating-point operations and parallel computing. GLSL is the language used f...

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 Applications(China)
IPC IPC(8): G06T15/00G06T1/20
Inventor 杨建顺
Owner JIANGSU PROVINCE IN HERE DIGITAL 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