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

WPF-based three-dimensional terrain high-efficiency gradient coloring method

A 3D terrain and efficient technology, applied in 3D image processing, image data processing, instruments, etc., can solve the problems of low rendering efficiency and high resource consumption, and achieve the goal of improving rendering efficiency, continuous color transition, and improving 3D rendering efficiency. Effect

Active Publication Date: 2018-07-20
PEARL RIVER HYDRAULIC RES INST OF PEARL RIVER WATER RESOURCES COMMISSION
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to propose a three-dimensional graphics gradient coloring method based on the WPF framework, to solve the problems of large system resource consumption and low rendering efficiency when performing gradient coloring on a large number of triangle units, and to achieve efficient and beautiful three-dimensional terrain display

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
  • WPF-based three-dimensional terrain high-efficiency gradient coloring method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0041] Embodiment: In order to verify the feasibility and effectiveness of this application, this embodiment takes the gradient coloring of a three-dimensional terrain model of a real river network in Panyu District, Guangzhou City as a specific implementation case to further illustrate the present invention.

[0042] The selected river network example for 3D terrain modeling is located in Panyu District, Guangzhou City, at 22°52'37.1"~22°57'15" north latitude, 113°15'41"~113°29'47" east longitude, A section of river network composed of Zini River waterway, Longwan River, Shiqiao waterway and Shawan waterway.

[0043] Step 1: Generate a gradient bitmap with a size of 64*64 in memory according to the color level of the custom gradient ribbon, and use it as the image source (ImageSource) of the image brush (ImageBrush).

[0044] The RGB value of the custom color band level is as follows:

[0045] Color level 1: R=0, G=0, B=255;

[0046] Color level 2: R=0, G=64, B=255;

[004...

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 WPF-based three-dimensional terrain high-efficiency gradient coloring method. The method comprises: S1, according to a customized gradient color tape color grade, a gradientbitmap with the size of 64*64 is generated in a memory based on a specific algorithm and the generated bitmap is used as an image source of an image brush; S2, a mapping function of the color valuescorresponding to different elevation values and the position in the gradient bitmap is constructed; S3, according to terrain elevation information, a triangular surface forming a three-dimensional terrain model is generated, a texture corresponding to each triangle unit is generated based on the image brush and the mapping function that are obtained at the S1 and S2, and a Geometry Model 3D instance of the three-dimensional terrain model is constructed; and S4, with the formed Geometry Model 3D instance, a three-dimensional canvas, a perspective, lighting and other elements are set in WPF tocomplete construction of a three-dimensional terrain model with gradient coloring based on elevation information. According to the invention, on the basis of the WPF framework, system resources are saved greatly; the three-dimensional rendering efficiency is improved obviously; the color transition processing method of the adjacent triangular units forming the three-dimensional terrain model is simple; and the color transition effect is good.

Description

technical field [0001] The invention relates to a WPF-based high-efficiency gradient coloring method for three-dimensional terrain, which belongs to the field of computer three-dimensional display. Background technique [0002] WPF (Windows Presentation Foundation) is a new generation of graphics system from Microsoft. WPF is further encapsulated on the basis of the DirectX graphics engine, and provides a set of classes for easily building three-dimensional graphics and user interfaces. Compared with the underlying graphics APIs such as OpenGL and DirectX, WPF can be used to construct a 3D display system more conveniently and quickly. However, due to the high degree of encapsulation of WPF, the three-dimensional rendering efficiency is lost. [0003] In the practical application of informatization in industries such as water conservancy, geology, transportation, and land, it is often necessary to display terrain elements in three-dimensional space and to perform gradient c...

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/00G06T15/04G06T17/05G06T17/20
CPCG06T15/005G06T15/04G06T17/05G06T17/20
Inventor 陈睿智胡晓张杨芳李杰杨聿杨志伟宋利祥王汉岗
Owner PEARL RIVER HYDRAULIC RES INST OF PEARL RIVER WATER RESOURCES COMMISSION
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