HDR: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (How about Source 2?)
(→‎HDR in Source: warning about loading LDRonly maps)
Line 13: Line 13:
In fact, by default, Source does not even create "proper" HDR images. Instead, [https://steamcdn-a.akamaihd.net/apps/valve/2006/SIGGRAPH06_Course_HDRInValvesSourceEngine_Slides.pdf it collapses the image down to LDR early], like many other games in the 2000s/early 2010s, this is hardware limitations at the time and proper HDR output is only later introduced in mid-2010s with a supported graphics card, displays and newer HDMI/DisplayPort versions. The average user would be hard pressed to tell the difference, however, and the benefits include support for all DX9 GPUs, MSAA compatibility, and excellent performance.
In fact, by default, Source does not even create "proper" HDR images. Instead, [https://steamcdn-a.akamaihd.net/apps/valve/2006/SIGGRAPH06_Course_HDRInValvesSourceEngine_Slides.pdf it collapses the image down to LDR early], like many other games in the 2000s/early 2010s, this is hardware limitations at the time and proper HDR output is only later introduced in mid-2010s with a supported graphics card, displays and newer HDMI/DisplayPort versions. The average user would be hard pressed to tell the difference, however, and the benefits include support for all DX9 GPUs, MSAA compatibility, and excellent performance.


{{warning|If the game loads a map that has been compiled in LDR only, HDR will be disabled, and will remain disabled until restarting the game or loading a map that has been compiled in HDR only. This is notable for {{hl2}}{{css}}{{dods}}, as most of their vanilla maps are compiled in LDR only.}}
{{todo|How does {{src2}} improve HDR?}}
{{todo|How does {{src2}} improve HDR?}}
== See Also ==
== See Also ==
* [[HDR Lighting Basics]]
* [[HDR Lighting Basics]]

Revision as of 15:46, 17 May 2023

English (en)Deutsch (de)Español (es)한국어 (ko)Русский (ru)中文 (zh)Translate (Translate)
An overexposed image from Half-Life 2: Lost Coast Half-Life 2: Lost Coast

HDR (High Dynamic Range) rendering simulates brightness above that which a computer monitor is actually capable of displaying, before downconverting to LDR (Low Dynamic Range; in industry-standard terms this is called SDR or "Standard Dynamic Range") video. This mainly involves "blooming" colours above 100% brightness into neighbouring areas, and adjusting a virtual camera aperture to compensate for any over-exposure that results.

Beside the obvious effects of this (see right), HDR gives richer colours and finer gradients: since bright and dark areas are pushed into white and black, correctly-exposed areas are drawn with a far wider range of values.

HDR rendering is currently available on Source 2006 and later, aswell as all GPUs that support DirectX 9 and newer for Windows (or OpenGL 1.4 and later for macOS/Linux).

HDR in Source

Source Source does not have a physically accurate HDR simulation. Its camera has a far wider range than the human eye (let alone real cameras), and it also adjusts to changes in brightness far faster. Both of these are expedient to gameplay of course, especially in multiplayer.

In fact, by default, Source does not even create "proper" HDR images. Instead, it collapses the image down to LDR early, like many other games in the 2000s/early 2010s, this is hardware limitations at the time and proper HDR output is only later introduced in mid-2010s with a supported graphics card, displays and newer HDMI/DisplayPort versions. The average user would be hard pressed to tell the difference, however, and the benefits include support for all DX9 GPUs, MSAA compatibility, and excellent performance.

Warning.pngWarning:If the game loads a map that has been compiled in LDR only, HDR will be disabled, and will remain disabled until restarting the game or loading a map that has been compiled in HDR only. This is notable for Half-Life 2Counter-Strike: SourceDay of Defeat: Source, as most of their vanilla maps are compiled in LDR only.
Todo: How does Source 2 improve HDR?

See Also

External Links