请输入您要查询的百科知识:

 

词条 Volumetric lighting
释义

  1. How volumetric lighting works

  2. See also

  3. References

  4. External links

{{refimprove|date=August 2017}}

Volumetric lighting is a technique used in 3D computer graphics to add lighting effects to a rendered scene. It allows the viewer to see beams of light shining through the environment; seeing sunbeams streaming through an open window is an example of volumetric lighting, also known as crepuscular rays. The term seems to have been introduced from cinematography and is now widely applied to 3D modelling and rendering especially in the field of 3D gaming.{{Citation needed|date=October 2012}}

In volumetric lighting, the light cone emitted by a light source is modeled as a transparent object and considered as a container of a "volume": as a result, light has the capability to give the effect of passing through an actual three-dimensional medium (such as fog, dust, smoke, or steam) that is inside its volume, just like in the real world.

How volumetric lighting works

Volumetric lighting requires two components: a light space shadow map, and a depth buffer. Starting at the near clip plane of the camera, the whole scene is traced and sampling values are accumulated into the input buffer. For each sample, it is determined if the sample is lit by the source of light being processed using the shadow map as a comparison. Only lit samples will affect final pixel color.{{Citation needed|date=May 2018}}

This basic technique works, but requires more optimization to function in real time. One way to optimize volumetric lighting effects is to render the lighting volume at a much coarser resolution than that which the graphics context is using. This creates some bad aliasing artifacts, but that is easily touched up with a blur. One can also use stencil buffer like with the shadow volume technique.

Another technique can also be used to provide usually satisfying, if inaccurate volumetric lighting effects. The algorithm functions by blurring luminous objects away from the center of the main light source. Generally, the transparency is progressively reduced with each blur step, especially in more luminous scenes. Note that this requires an on-screen source of light.[1]

See also

  • Crepuscular rays
  • Airglow

References

1. ^{{Cite web|url=http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=36|title=NeHe Productions: Radial Blur & Rendering To A Texture|last=Haubold|first=Luke Benstead + Carsten|website=nehe.gamedev.net|language=en|access-date=2017-08-22}}

External links

  • 3D graphics terms dictionary at Tweak3D.net

2 : 3D rendering|Virtual reality

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 16:31:58