Method for rendering sky based on atmospheric scattering theory and device thereof

An atmospheric scattering and sky technology, applied in image data processing, 3D image processing, instruments, etc., can solve the problems of untimely update of rendering speed and high update frequency, and achieve the effect of reducing the amount of calculation and running smoothly

Active Publication Date: 2011-11-16
BEIJING PIXEL SOFTWARE TECH
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the scattering calculation of this method is loaded on the CPU. Although it does not need to be completed within one frame, the load on the CPU is still relatively large. At sunrise and sunset, the scattering situation changes greatly, and the update frequency is high. Increased CPU pressure will cause the rendering speed to not be updated in time

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 for rendering sky based on atmospheric scattering theory and device thereof
  • Method for rendering sky based on atmospheric scattering theory and device thereof
  • Method for rendering sky based on atmospheric scattering theory and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The scheme for rendering the sky proposed by the present invention adopts corresponding processing measures for the characteristics of online games:

[0043] 1. Outdoor rendering accounts for a large proportion of the game scene. The sky occupies a relatively large proportion of the screen for outdoor rendering, and the calculation burden of Pixel Shader is relatively large, but the resolution requirements for sky details are not very high. Therefore, the solution of the present invention can greatly reduce the calculation amount for the preset fixed-size texture, and keep the calculation amount constant under different resolutions.

[0044] 2. The time change is based on the time in the real world or corresponds to the time in the real world in a certain proportion. Scatter updates are slower. Time changes slowly in a realistic natural environment. The position of the sun varies insignificantly per degree. Rendering can specify a fixed-length interval to update tex...

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 for rendering sky based on atmospheric scattering theory and a device thereof. The invention is used to generate sky in network game scenes and comprises the following steps: A. judging whether rendering update conditions are satisfied and if not satisfied, turning to step C, otherwise implementing step B; B. taking present viewpoint as the origin point, generating a polar coordinate spherical model involved in scattering calculation and dividing the polar coordinate spherical model involved in the scattering calculation into m equal portions according to plane angle and n equal portions according to height angle, thus dividing the polar coordinate spherical model involved in the scattering calculation into m*n spatial angle units; adopting phase calculation for each spatial angle unit and carrying out the calculation through calculation formulae of particle to beam absorption and particle to beam scattering; storing the calculation result as m*n map buffer, wherein m and n are natural numbers; and C. mapping the map buffer to the actually displayed sky image according to the horizontal deviation of the present sun. The invention also discloses a device for rendering sky.

Description

technical field [0001] The invention relates to the technical field of graphics and image processing, in particular to a method and device for rendering the sky based on the principle of atmospheric scattering. Background technique [0002] Multiplayer online games often need to construct a visually close to the real virtual world and present it on the display device, so that gamers can get an immersive experience. There are a large number of outdoor scenes in the virtual world. When displaying the sky in the virtual world, it is necessary to consider the real physical laws. The most important point is to consider the influence of the atmospheric scattering principle on the sky. The calculation of scattering can meet the needs of continuous time and space of online games, and can greatly improve the visual expression and gameplay of games. Ambient light sources that can provide realistic atmospheres for other special effects such as volumetric fog, light columns, water refl...

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 Patents(China)
IPC IPC(8): G06T15/00
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