Bloom (shader effect)

Short description: Computer graphics effect

An example of bloom in a computer-generated image (from Elephants Dream). The light on the bright background bleeds on the darker areas, such as the walls and the characters. An example of bloom in a picture taken with a camera. Note the blue fringe that is particularly noticeable along the right edge of the window.

Bloom (sometimes referred to as light bloom or glow) is a computer graphics effect used in video games, demos, and high-dynamic-range rendering (HDRR) to reproduce an imaging artifact of real-world cameras. The effect produces fringes (or feathers) of light extending from the borders of bright areas in an image, contributing to the illusion of an extremely bright light overwhelming the camera or eye capturing the scene. It became widely used in video games after an article on the technique was published by the authors of Tron 2.0 in 2004.[1]

## Contents

* 1 Theory
* 1.1 Imperfect Focus
* 1.2 CCD Sensor Saturation
* 2 Practical implementation
* 3 Use in games
* 4 See also
* 5 References
* 6 External links

## Theory

There are two recognized potential causes of bloom.

### Imperfect Focus

One physical basis of bloom is that, in the real world, lenses can never focus perfectly. Even a perfect lens will convolve the incoming image with an Airy disk (the diffraction pattern produced by passing a point light source through a circular aperture).[2] Under normal circumstances, these imperfections are not noticeable, but an intensely bright light source will cause the imperfections to become visible. As a result, the image of the bright light appears to bleed beyond its natural borders.

The Airy disc function falls off very quickly but has very wide tails (actually, infinitely wide tails). As long as the brightness of adjacent parts of the image are roughly in the same range, the effect of the blurring caused by the Airy disc is not particularly noticeable; but in parts of the image where very bright parts are adjacent to relatively darker parts, the tails of the Airy disc become visible and can extend far beyond the extent of the bright part of the image.

In HDRR images, the effect can be reproduced by convolving the image with a windowed kernel of an Airy disc (for very good lenses), or by applying Gaussian blur (to simulate the effect of a less perfect lens), before converting the image to fixed-range pixels. The effect cannot be fully reproduced in non-HDRR imaging systems, because the amount of bleed depends on how bright the bright part of the image is.

As an example, when a picture is taken indoors, the brightness of outdoor objects seen through a window may be 70 or 80 times brighter than objects inside the room. If exposure levels are set for objects inside the room, the bright image of the windows will bleed past the window frames when convolved with the Airy disc of the camera being used to produce the image.

### CCD Sensor Saturation

Blooming in a CCD image

Bloom in digital cameras is caused by an overflow of charge in the photodiodes, which are the light-sensitive elements in the camera's image sensor.[3] When a photodiode is exposed to a very bright light source, the accumulated charge can spill over into adjacent pixels, creating a halo effect. This is known as "charge bleeding."

The bloom effect is more pronounced in cameras with smaller pixels, as there is less room for the charge to dissipate. It can also be exacerbated by high ISO settings, which increase the camera's sensitivity to light and can result in more charge accumulation.

While the bloom effect can be distracting in some images, it can also be used creatively to add a dreamy or otherworldly quality to photos.

## Practical implementation

Current generation gaming systems are able to render 3D graphics using floating-point frame buffers, in order to produce HDR images. To produce the bloom effect, the linear HDRR image in the frame buffer is convolved with a convolution kernel in a post-processing step, before converting to RGB space. The convolution step usually requires the use of a large gaussian kernel that is not practical for realtime graphics, causing programmers to use approximation methods.[4]

## Use in games

Some of the earliest games to use the bloom effect include the pre-rendered CGI game Riven (1997),[5] the voxel game Outcast (1999),[6] and the real-time 3D polygon games The Bouncer (2000)[7] and Ico (2001).[8] Bloom was later popularized within the game development community in 2004, when an article on the technique was published by the authors of Tron 2.0.[1] Bloom lighting has been used in many games, modifications and game engines such as Quake Live, Cube 2: Sauerbraten and the Spring game engine.

The effect was popular in 7th-generation games,[9] which were released from 2005 through to the early 2010s. Several games from the period have received criticism for overuse of the technique. The heavy bloom lighting in RollerCoaster Tycoon 3 (2005) was described as "disgusting" at the time by GameSpot.[10] Gaming Bolt described the trend as a gimmick that had died with the generation, and criticised the heavy use of the technique in major releases of the time such as The Elder Scrolls IV: Oblivion (2006), the Xbox 360 port of Burnout Revenge (2006), and Twilight Princess (2006). Syndicate (2012) has also been described as featuring "eye-melting" bloom.[11][12]

## See also

* Chromatic aberration
* Contre-jour
* Tone mapping

## References

1. ↑ 1.0 1.1 James, Greg; O'Rorke, John (26 May 2004). "Real-Time Glow". Game Developer/Gamasutra. https://www.gamedeveloper.com/programming/real-time-glow.
2. ↑ "Airy disk". svi.nl. http://support.svi.nl/wiki/AiryDisk.
3. ↑ CCD Saturation and Blooming
4. ↑ "How to do good bloom for HDR rendering". Harry Kalogirou. http://harkal.sylphis3d.com/2006/05/20/how-to-do-good-bloom-for-hdr-rendering/.
5. ↑ Forcade, Tim (February 1998). "Unraveling Riven". Computer Graphics World.
6. ↑ "Doom to Dunia: A Visual History of 3D Game Engines – Page 5". Maximum PC. 2009-07-21. http://www.maximumpc.com/article/features/doom_dunia_visual_history_3d_game_engines?page=0,4.
7. ↑ Massey, Tom (9 February 2015). "Ys: Memories of Celceta review". Eurogamer. https://www.eurogamer.net/articles/2014-02-20-ys-memories-of-celceta-review.
8. ↑ Mielke, James (2005-10-15). "Bittersweet Symphony". 1UP. http://www.1up.com/do/feature?cId=3144548.
9. ↑ "Bloom Disasters – The Quixotic Engineer". http://gangles.ca/2008/07/18/bloom-disasters/.
10. ↑ Ocampo, Jason (7 July 2005). "RollerCoaster Tycoon 3: Soaked! Review". GameSpot. https://www.gamespot.com/reviews/rollercoaster-tycoon-3-soaked-review/1900-6128739/.
11. ↑ Houghton, David (8 March 2012). "56 eye-melting screens of the most hilariously over-the-top bloom lighting in video game history". https://www.gamesradar.com/56-eye-melting-screens-most-hilariously-over-the-top-bloom-lighting-in-video-game-history/.
12. ↑ Gallant, Matthew (18 July 2008). "Bloom Disasters - The Quixotic Engineer". http://gangles.ca/2008/07/18/bloom-disasters/.

## External links

* Real-Time Glow

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Bloom (shader effect). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Bloom_(shader_effect)&oldid=270156"