Mist effect simulating method and device

A simulation method, fog effect technology, applied in the field of scene rendering

Active Publication Date: 2017-02-08
BEIJING PIXEL SOFTWARE TECH
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when simulating a specific scene environment, such as early morning or near a waterfall, it is necessary to reflect the layered effect of fog from a height to achieve the sense of accumulation of real fog in a natural environment. There is no solution in this regard in the prior art

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
  • Mist effect simulating method and device
  • Mist effect simulating method and device
  • Mist effect simulating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0046] figure 1 The flow chart of the fog effect simulation method provided by the embodiment of this application, such as figure 1 As shown, the specific steps are as follows:

[0047] Step 101: According to the set fog density control coefficient k, set the maximum effective height h of fog, and the viewpoint O w The position of , and the position of vertex p, calculate the fog effect factor f of the fog that changes with height at vertex p 1 .

[0048] Viewpoint O w The position of is the position of the camera.

[0049] specifically,

[0050] Among them, O z Indicates the point of view O w The height is the height of the camera from the ground; Indicates the point of view O w The difference between the height of and the height of vertex p, Denotes vertex p to viewpoint O w The value of ln(MAX) can be predetermined,...

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 mist effect simulating method and device. The method comprises that according to a set mist density control coefficient k, a set maximal effective mist height h, the position of a visual point and the position of a vertex p, a mist effect factor f1 of mist change with the height in the vertex p is calculated; according to the position of the vertex p as well as the set distance start and the set distance end when mist starts and ends from the visual point, a mist effect factor f2 of mist in the horizontal direction is calculated; a final mist effect factor f is calculated according to the f1 and f2; and according to the mist effect factor f, an existing fragment color Cr and a preset mist color Cf, the final fragment color C is calculated. Via the method and device of the invention, the mist concentration can reach a hierarchically gradual change effect in height.

Description

technical field [0001] The invention relates to the technical field of scene rendering, in particular to a fog effect simulation method and device. Background technique [0002] Fog effects play a very important role in enhancing the realism of the 3D rendering scene, especially when used in a more realistic 3D game scene, it can create a good environment atmosphere. The most common simulation of fog is to simulate global fog, that is, under uniform fog density, the fog density changes with the distance from the viewpoint to the object. [0003] OpenGL (Open Graphics Library, open image library) provides a fog effect mixing function for fog effect simulation. Specifically, it is calculated according to one of the following three fog equations: [0004] f=e -dc (1) [0005] f = e - ( d c ) 2 - ...

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/04
CPCG06T15/04
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