Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

2D complex polygon rendering method based on GPU acceleration

A polygonal and complex technology, applied to the generation of 2D images, the extraction of basic elements, image data processing, etc., can solve the problems of lack of versatility, high CPU computing power requirements, long preparation time, etc., to achieve the best versatility and performance effect

Pending Publication Date: 2021-12-21
深圳市立创软件开发有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Generally, the rendering of complex polygons has the following three types and their disadvantages: the rasterization of full pixels is realized by using the polygon Boolean operation scan line algorithm through the CPU, which is more typical such as the SVG of the browser, which requires a lot of CPU computing power and high-resolution rendering The scene efficiency is low; the polygon triangulation algorithm is used by the CPU, the polygon is first split into multiple triangles, and then all the triangles are rasterized by the CPU or GPU. This method requires a long preparation time to triangulate the polygon on the CPU side; The NV_path_rendering plug-in developed by NVIDIA is implemented by calling the proprietary functions of NVIDIA graphics cards, which is not universal.

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
  • 2D complex polygon rendering method based on GPU acceleration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The specific implementation manner of the present invention will be further described below in conjunction with the accompanying drawings. Wherein the same components are denoted by the same reference numerals.

[0017] It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to the directions in the drawings, and the words "inner" and "outer ” refer to directions towards or away from the geometric center of a particular part, respectively.

[0018] In order to make the content of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

[0019] Such as figure 1 Shown, a kind of 2D complex polygon rendering method based on GPU acceleration, this method comprises the following steps:

[0020] (1) On the CPU side, the v...

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 2D complex polygon rendering method based on GPU acceleration, and the method comprises the following steps: (1) simply splitting a polygon vertex into a plurality of groups of triangles at a CPU side according to a polygon composite rule, and writing the triangles into a GPU data buffer area; (2) according to a grouping result in the step (1), in combination with a specific polygon composite rule, controlling the GPU to fill template buffer according to a corresponding rule for multiple times; (3) if the rule is an odd-even rule, directly adpting the negation rule buffered by the template to carry out one-time filling; (4) if the rule is a non-zero-rule, enabling two groups of triangles in different normal directions to be filled with templates in different growth directions for buffering; and (5) through the steps (3) and (4), enabling a non-zero pixel in the template buffer to be a final required rendering result. GPU side rendering of complex polygons is achieved, the complex polygons comprise concave polygons, self-intersecting polygons and polygons with holes, and the multiple polygons are compounded with the edge direction as the weight rule.

Description

technical field [0001] The invention relates to the field of computer graphics, in particular to a 2D complex polygon rendering method based on GPU acceleration. Background technique [0002] Complex polygons are very common in drawing software (such as EDA): user hand-drawing is not precise enough, and concave polygons and self-intersecting polygons are more likely to appear; as a vector graphics, complex polygons can easily express polygons with holes; vector text is natural It is complex multilateral. [0003] Generally, the rendering of complex polygons has the following three types and their disadvantages: using the polygonal Boolean operation scan line algorithm to realize full-pixel rasterization through the CPU, such as the typical SVG of the browser, which requires a lot of CPU computing power and high-resolution rendering The scene efficiency is low; the polygon triangulation algorithm is used by the CPU, the polygon is first split into multiple triangles, and 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): G06T1/20G06T1/60G06T7/40G06T11/20
CPCG06T1/20G06T1/60G06T7/40G06T11/203
Inventor 郭煜刘世林
Owner 深圳市立创软件开发有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products