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

Image rendering method and related device

An image rendering and texture technology, applied in the field of image rendering, can solve problems such as large amount of calculation, edge aliasing, affecting shadow rendering effect, etc.

Active Publication Date: 2020-06-16
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the complexity of the scene is high, that is, when there are a large number of objects and light sources, if the shadow calculation of the entire scene is performed for the light sources one by one, it will cause a huge amount of calculation and affect the rendering efficiency of the shadow; if partial sampling is used for shadow calculation, then It is easy to produce edge aliasing, which affects the rendering effect of shadows

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
  • Image rendering method and related device
  • Image rendering method and related device
  • Image rendering method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0093] The embodiment of the present application provides an image rendering method and a related device, which can be applied to a system or program including an image rendering function in a terminal device, by obtaining the first shadow map and the second shadow map of the target virtual object, wherein, The resolution of the first shadow map is smaller than the resolution of the second shadow map; then determine the range of the first texel and the center point of each texel in the first shadow map; and based on the center point, apply the scaling factor to the first texel The range is scaled to obtain a second texel range, and then the second texel range is rendered as a second shadow map, so as to perform shadow rendering on the target virtual object. In this way, the image rendering process based on the shadow map is realized. Since the calculation of the position of the map through the low-resolution map is small, the efficiency of image rendering is improved; and then ...

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 an image rendering method and a related device. The method comprises the steps of obtaining a low-resolution first shadow map and a high-resolution second shadow map of a target virtual object; determining a first texel range and a central point of each texel in the first shadow map; and performing scaling processing on the first texel range by using a scaling coefficient based on the central point to obtain a second texel range, and rendering the second texel range into a second shadow map to perform shadow rendering on the target virtual object. Therefore, the image rendering process based on the shadow map is realized, and the calculation amount of determining the map position through the low-resolution map is relatively small, so that the image rendering efficiency is improved; and then, the high-resolution shadow map is rendered, so that edge sawteeth are avoided, and the image rendering effect is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to an image rendering method and related devices. Background technique [0002] In many applications for constructing 3D virtual environments, the shadow display of virtual objects is an important means to improve the display effect of 3D virtual environments. [0003] Generally, in game rendering, the shadow map technology is usually used to calculate the shadow of the object in real time. First, the shadow map rendering is performed on the scene from the perspective of the light source, and the distance information from the object to the light source is stored. For each pixel, calculate the position of the light source, and compare it with the distance stored in the shadow map to determine whether the object is in the shadow, and then calculate the shadow of the object according to the shadow situation. [0004] However, since the shadow map needs to be rendered based...

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/60
CPCG06T15/005G06T15/60G06T2210/36G06T15/04G06T2215/12A63F13/52G06T15/06G06T15/506
Inventor 徐华兵曹舜魏楠崔晓春李从兵周荣鑫李文焱
Owner TENCENT TECH (SHENZHEN) CO LTD
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