Method and device for rendering image

An image rendering and image technology, applied in the field of information processing, can solve the problems of insufficient three-dimensional display effect, unrealistic picture, and lack of lighting changes in character models, etc., and achieve the effect of three-dimensional display effect, real picture, and vivid lighting changes

Active Publication Date: 2015-04-29
BEIJING PIXEL SOFTWARE TECH
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Although image rendering through vertex lighting method can save information processing resources, but because the obtained character model lacks lighting changes, the picture is not realistic enough and the display effect is not three-dimensional.

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
  • Method and device for rendering image
  • Method and device for rendering image
  • Method and device for rendering image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] figure 1 It is a flowchart of an image rendering method provided by an embodiment of the present invention.

[0021] Such as figure 1 As shown, the process includes:

[0022] Step 101: Determine the vertex illumination value of each pixel of the image to be rendered, and the angle between the illumination direction of each pixel and the normal direction of the vertex.

[0023] Among them, the vertex light value of each vertex can be calculated according to the formula I=Ambient+Diffuse*(LightDir·NormalDir), where I is the vertex light value, Ambient represents the ambient light value, Diffuse represents the diffuse light value, and * represents the multiplication , LightDir represents the light direction, NormalDir represents the normal direction of the vertex, (LightDir·NormalDir) is the dot product of LightDir and NormalDir, and the dot product represents the angle between the light direction of the vertex and the vertex normal direction.

[0024] Step 102: Extract the bright...

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 method and device for rendering an image. The method comprises the following steps: determining a vertex lighting value of each pixel point of an image to be rendered, and an included angle between the lighting direction of each pixel point and the vertex normal direction; extracting a brightness template value of each pixel point from a preset lighting change template according to the value of the included angle between the lighting direction of each pixel point and the vertex normal direction; multiplying the difference, which is obtained by subtracting the vertex lighting value of each pixel point from the brightness template value of each pixel point, by a preset brightness adjustment coefficient, and then adding the vertex lighting value of the pixel point to obtain a final lighting value after the brightness is adjusted, and rendering the image according to the final lighting value. Through the method and the device for rendering the image, the image is more real, and the display effect is more three-dimensional.

Description

Technical field [0001] The present invention relates to the technical field of information processing, in particular to an image rendering method and device. Background technique [0002] With the development of digital processing equipment, games based on digital processing equipment have also developed rapidly. Game software often involves a lot of image processing operations, for example, image rendering of characters in game screens. Image rendering often consumes a lot of information processing resources, and mobile digital processing devices such as mobile phones have limited information processing resources. Therefore, it is necessary to save information processing resources as much as possible when performing image rendering. [0003] Currently, mobile digital processing equipment generally uses vertex lighting to render images. specifically: [0004] The mobile digital processing device calculates the vertex lighting value at each point of the character model through 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06T15/60
CPCG06T15/60
Inventor 杨波
Owner BEIJING PIXEL SOFTWARE 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