Shadow map generation method and device

A shadow and map technology, applied in the field of game scene processing, can solve the problems of low shadow rendering efficiency, poor level transition effect, and the inability of simultaneous sampling of shadow maps, so as to improve rendering efficiency and level transition effect.

Active Publication Date: 2018-05-15
BEIJING PIXEL SOFTWARE TECH
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the shadow map generated by this scheme will make the shadow rendering efficiency not high, and the shadow maps of different levels cannot be sampled at the same time. For the pixels between the shadow maps of adjacent levels, the level transition effect is poor.

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
  • Shadow map generation method and device
  • Shadow map generation method and device
  • Shadow map generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0024] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art wi...

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 provides a shadow map generation method and device. The method comprises the following steps of: creating a texture map according to a preset shadow image number and a preset image size,and dividing the texture map into a plurality of texture regions with the same size; dividing a camera space under the current angle of view in parallel according to the preset shadow image number, and obtaining a view projection matrix, under the current light direction, corresponding to each divided view space on the basis of a light direction in the current game scene; carrying out rendering in corresponding texture regions to generate shadow depth images of objects projected into corresponding view spaces under the current light direction according to the view projection matrixes of the view spaces; and carrying out matrix transformation on each view projection matrix so as to obtain a transfer matrix and a texture coordinate range corresponding to each texture region. According to the method, different levels of shadow images in generated shadow maps can be sampled at the same time, so that the rendering efficiency and the level transition effect are improved.

Description

technical field [0001] The present invention relates to the technical field of game scene processing, in particular to a method and device for generating a shadow map. Background technique [0002] In order to simulate environmental changes as realistically as possible in 3D games, real-time shadow rendering is often required to improve game image quality. [0003] In the prior art, a commonly used real-time shadow rendering scheme is to generate multiple different shadow maps for objects in the game scene, and select different shadow maps for sampling rendering according to the depth value of the object during shadow rendering, so as to Achieve the effect of real-time shadow rendering. However, the shadow map generated by this scheme will make the shadow rendering efficiency not high, and the shadow maps of different levels cannot be sampled at the same time, and the level transition effect is poor for pixels between shadow maps of adjacent levels. Contents of the invent...

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/20G06T15/60
CPCG06T15/205G06T15/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