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

An efficient gradient coloring method for 3D terrain based on WPF

A 3D terrain and efficient technology, applied in 3D image processing, instruments, calculations, etc., can solve the problems of low rendering efficiency and large resource consumption, and achieve the effect of saving system resources, simple processing method, and improving 3D rendering efficiency

Active Publication Date: 2022-05-17
PEARL RIVER HYDRAULIC RES INST OF PEARL RIVER WATER RESOURCES COMMISSION
View PDF0 Cites 0 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
  • An efficient gradient coloring method for 3D terrain based on WPF
  • An efficient gradient coloring method for 3D terrain based on WPF

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 high-efficiency gradient coloring method for three-dimensional terrain, comprising the steps: S1 using a specific algorithm to generate a gradient bitmap with a size of 64*64 in memory according to the color level of a custom gradient ribbon, and storing it As the image source (ImageSource) of the image brush (ImageBrush); S2 constructs a mapping function between the color value corresponding to different elevation values ​​and the position in the gradient bitmap; S3 generates the triangular faces that constitute the 3D terrain model according to the terrain elevation information, and Use the image brush (ImageBrush) and mapping function created in steps S1 and S2 to generate the texture corresponding to each triangle unit, and construct the GeometryModel3D instance of the 3D terrain model; S4 use the previous step to construct the GeometryModel3D instance, and set the 3D in WPF Canvas, angle of view, lighting and other elements to complete the construction of a terrain 3D model that is gradually colored according to elevation information. Based on the WPF framework, the present invention greatly saves system resources, remarkably improves three-dimensional rendering efficiency, has simple color transition processing method for adjacent triangle units constituting a three-dimensional terrain model, and has good color transition effect.

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 Patents(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