Real-time soft shadow realization method based on image screen space

A technology of screen space and implementation method, which is applied in the field of soft shadows, can solve problems such as low efficiency and large quantities, and achieve good effects, high drawing efficiency, and the effect of solving aliasing

Inactive Publication Date: 2014-10-15
WUXI FANTIAN INFORMATION TECH
View PDF2 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The implementation process of traditional real-time soft shadows is as follows: First, a depth map (shadow map) containing scene depth information is generated from the light source as the viewpoint, and then the scene is rendered into a screen texture buffer from the viewer's viewpoint, and t

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
  • Real-time soft shadow realization method based on image screen space
  • Real-time soft shadow realization method based on image screen space
  • Real-time soft shadow realization method based on image screen space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be further described below in conjunction with drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

[0020] Please refer to figure 1 as shown, figure 1 A flow chart of a method for implementing real-time soft shadows based on image screen space provided in this embodiment.

[0021] In this embodiment, the real-time soft shadow implementation method based on the image screen space includes the following steps:

[0022] Step S101, traversing all objects within the visible range of the virtual camera in the scene. Traverse whether the objects in the scene are within the visible range of the virtual camera, and only render the visible area within the ca...

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 real-time soft shadow realization method based on an image screen space. The method comprises the following steps that: A, all objects in a visible range of a virtual camera in a scene are traversed; B, a light source space is built, a vein used for storing the depth in a screen space is created, and a shadow map is generated; C, a world position coordinate is converted into a lamp light space through projection conversion, and a depth map of new positions of pixels is obtained; D, the depth of the new positions of the pixels is compared with the shadow map to judge which pixels are positioned in the shadow, so that a shadow mask is obtained; E, the shadow mask is subjected to Gaussian blur processing; and F, the shadow mark subjected to the Gaussian blur processing is overlaid with the scene color, and a soft shadow effect is achieved. The real-time soft shadow realization method has the advantages that the traditional PCF (Percentage Closer Filtering) based on sampling veins is improved; the problem of the phenomenon of saw tooth generation on the boundary of a scene model is effectively solved; a better soft shadow effect is achieved; in addition, the effect of realizing the soft shadow effect on complicated scenes is also very good; and the drawing efficiency is high.

Description

technical field [0001] The invention relates to the technical field of soft shadows, in particular to a method for realizing real-time soft shadows based on image screen space. Background technique [0002] As a very important function of the light and shadow effect in the game engine, the shadow plays a vital role in the virtual game. With this effect, the three-dimensionality and layers of the image will be richer, and the real feeling of the scene will also be improved. Shadows can be divided into soft and hard shadows. Hard shadow algorithms are relatively simple, while real-time soft shadows are more realistic than hard shadows. However, the realization of dynamic soft shadows is a difficult point in computer graphics research. The implementation process of traditional real-time soft shadows is as follows: First, a depth map (shadow map) containing scene depth information is generated from the light source as the viewpoint, and then the scene is rendered into a screen t...

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/60
Inventor 张翼
Owner WUXI FANTIAN INFORMATION 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