Lens flare drawing method and device

A lens and drawing unit technology, applied in image data processing, 3D image processing, instruments, etc., can solve the problems of unconfigurable, high cost, etc., achieve the effect of small calculation, diversified styles, and save the cost of drawing

Inactive Publication Date: 2017-06-13
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide a method and device for drawing lens flares, which can quickly dr

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
  • Lens flare drawing method and device
  • Lens flare drawing method and device
  • Lens flare drawing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0094]The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0095] see figure 1 , is a schematic flow chart of lens flare drawing provided in Embodiment 1 of the present invention. Such as figure 1 The lens flare drawing method shown includes steps:

[0096] S1. Receive input parameters of several lens flares, and pass them into the shader in turn;

[0097] Wherein, the parameters of the lens flare can be set and input by the user, including one or more of texture index, color, size, offset, yes / no rotation, brightness, t...

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 lens flare drawing method and device. Texture mappings required by a plurality of lens flares are combined into a big texture mapping, and the big texture mapping is submitted to the cache of a graphics processing unit; then, in a three-dimensional scene, a flare model is established; according to the input parameters of a plurality of lens flares and a current scene, the attribute of each lens flare is regulated in real time; according to the attribute of each lens flare, a quadrangular surface patch is called to read a big texture mapping cache; and each lens flare is drawn through a shader. By use of the scheme, a picture mapping way is used for drawing the lens flare, and a plurality of lens flares can be drawn in one batch through the quadrangular surface patch and the big texture mapping to save drawing expenditures. In addition, the parameters of the lens flares can be set and input by design personnel, so that the parameters have diversified styles and are flexible in configuration, and the problems that existing lens flare drawing is high in expenditure and can not be configured are solved.

Description

technical field [0001] The invention relates to the field of computer graphics, in particular to a lens flare drawing method and device. Background technique [0002] With the popularization of smartphones and tablet computers, games on mobile terminals have also developed. With the development of the mobile game industry, more and more advanced rendering effects have begun to appear on users of mobile phones and tablet computers. In particular, the lens flare effect that can show the level of image quality, that is, the lens flare effect, is gradually used in mobile games. Lens flare is an optical phenomenon such as reflection, refraction, and diffraction of light inside the lens, which forms a glare effect in the photos and videos taken. [0003] There are physically based, photorealistic, lens flare rendering techniques, but they are computationally expensive and require complex preprocessing. Moreover, mature mobile game engines, such as unity, have simple lens flare 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
IPC IPC(8): G06T15/50
CPCG06T15/50
Inventor 张民英曹军顾强
Owner NETEASE (HANGZHOU) NETWORK CO LTD
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