<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.flightgear.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vanalt</id>
	<title>FlightGear wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.flightgear.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vanalt"/>
	<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/Special:Contributions/Vanalt"/>
	<updated>2026-04-07T16:18:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=HDR_Pipeline&amp;diff=134563</id>
		<title>HDR Pipeline</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=HDR_Pipeline&amp;diff=134563"/>
		<updated>2022-02-02T09:18:33Z</updated>

		<summary type="html">&lt;p&gt;Vanalt: Added 3 images to the gallery&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main article|Compositor}}&lt;br /&gt;
&lt;br /&gt;
{{Experimental|disclaimer=Aircraft developers are not yet encouraged to update their models to use PBR as the HDR pipeline will not be production-ready for some time.&amp;lt;ref&amp;gt;https://sourceforge.net/p/flightgear/mailman/message/37260910/&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{forum|47|Effects &amp;amp; Shaders}}&lt;br /&gt;
&lt;br /&gt;
{{infobox subsystem&lt;br /&gt;
&amp;lt;!--[[File:HDR-pipeline-preview-04-2021.png|thumb|HDR Pipeline preview screen shot]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
|image       = HDR pipeline c172p over Edinburgh 2.png&lt;br /&gt;
|name        = HDR Pipeline&lt;br /&gt;
|started     = 04/2021&lt;br /&gt;
|description = A modern rendering pipeline that targets relatively powerful systems&lt;br /&gt;
|status      = Active&lt;br /&gt;
|developers  = Fernando García Liñán &amp;lt;ref&amp;gt;https://sourceforge.net/u/fgarlin/profile/&amp;lt;/ref&amp;gt;&lt;br /&gt;
|changelog = https://sourceforge.net/u/fgarlin/profile/feed.rss&lt;br /&gt;
|folders = &lt;br /&gt;
* {{fgdata file|Compositor/HDR}}&lt;br /&gt;
* {{fgdata file|Effects/HDR}}&lt;br /&gt;
* {{fgdata file|Shaders/HDR}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The '''HDR pipeline''' is a [[Compositor]]-based rendering pipeline that attempts to bring modern rendering techniques to FlightGear, namely high dynamic range (HDR) and physically based rendering (PBR). It is implemented entirely in FGData using XML for the Compositor pipeline definition and [[Effects]], and GLSL for shaders. As of 07/2021, the HDR pipeline is not yet usable for normal flying, but it can be enabled with the command line argument &amp;lt;code&amp;gt;--compositor=Compositor/HDR/hdr&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
The [[Classic pipeline]] still relies on legacy OpenGL features, so rather than improving or reworking it, the idea of creating an entirely separate rendering pipeline from scratch started taking shape. The [[Compositor]] played the biggest role in enabling this effort as it allows the creation of new rendering pipelines entirely in FGData space without any C++ changes whatsoever, greatly reducing the amount of work that had to be done and making the iterative process of testing and debugging much more comfortable and faster.&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
'''Last updated: 07/2021'''&lt;br /&gt;
&lt;br /&gt;
The HDR pipeline is not yet ready for day-to-day flying, but it is currently available on &amp;lt;tt&amp;gt;next&amp;lt;/tt&amp;gt; for anyone adventurous enough to try it. Expect a lot of breakage though.&lt;br /&gt;
&lt;br /&gt;
== PBR and glTF ==&lt;br /&gt;
&lt;br /&gt;
This pipeline introduces a PBR Effect ({{fgdata file|Effects/model-pbr.eff}}). This Effect can be used as usual by adding an &amp;lt;tt&amp;gt;&amp;lt;effect&amp;gt;&amp;lt;/tt&amp;gt; tag in the model XML and configuring it like you would configure model-combined. However, the recommended way to use PBR is through the [[glTF]] file format.&lt;br /&gt;
&lt;br /&gt;
== Implementation details ==&lt;br /&gt;
&lt;br /&gt;
The HDR pipeline implements a deferred rendering pipeline. Instead of computing the lighting right away, the pipeline writes information about the geometry (normals, materials...) to a series of textures that are later used to light the scene on a full-screen pass. This is identical to how [[Project Rembrandt|Rembrandt]] worked. The main motivation behind implementing a deferred renderer is to keep forward passes to a minimum. FlightGear's scene graph is not very well optimized, so traversing it as few times as possible is always going to yield better performance. The alternative was to implement a modern hybrid forward renderer with a depth pre-pass, but we would be traversing the scene graph twice in this case.&lt;br /&gt;
&lt;br /&gt;
The pipeline is designed to only work with PBR values, so both materials and lighting are internally assumed to be based on real-life magnitudes. Old/legacy materials try to &amp;quot;translate&amp;quot; from the legacy ambient/diffuse/specular model to PBR metalness/roughness. This may result in some incorrect lighting on aircraft that are completely unaware of the HDR pipeline though.&lt;br /&gt;
&lt;br /&gt;
All lighting computations are done in HDR space, i.e. colour values are not clamped to the [0,1] range until the end of the rendering process. HDR colour values are transformed into LDR values that can be displayed on a monitor by tone mapping. A exposure parameter is calculated automatically based on the average scene luminance (like a camera on the Auto setting would do), but there is the possibility of lowering/increasing the exposure manually if the user feels like the scene is too bright/dark.&lt;br /&gt;
&lt;br /&gt;
To allow truly PBR-based materials, real time environment mapping is used. At the start of the frame we render to a cubemap and subsequent passes use this information to evaluate indirect lighting.&lt;br /&gt;
&lt;br /&gt;
Near the end of the rendering process, miscellaneous post-processing passes like FXAA and ambient occlusion are used.&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=&amp;quot;250&amp;quot; heights=&amp;quot;250&amp;quot; perrow=&amp;quot;5&amp;quot;&amp;gt;&lt;br /&gt;
File:Early-HDR-Pipeline-Preview-2020-c172-cockpit.png&lt;br /&gt;
File:HDR-Pipeline-Preview-wing.png&lt;br /&gt;
File:HDR-pipeline-c172p-sky2.png&lt;br /&gt;
File:HDR pipeline c172p over Edinburgh.png&lt;br /&gt;
File:HDR-Earth-atmosphere-noon.png&lt;br /&gt;
File:HDR-Earth-atmosphere-sunrise.png&lt;br /&gt;
File:C172-HDR Pipeline Preview2.png&lt;br /&gt;
File:B747-HDR Prewiew2.png&lt;br /&gt;
File:B747-HDR Preview1.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Appendix}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Compositor Pipelines]]&lt;/div&gt;</summary>
		<author><name>Vanalt</name></author>
	</entry>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=File:B747-HDR_Preview1.png&amp;diff=134562</id>
		<title>File:B747-HDR Preview1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=File:B747-HDR_Preview1.png&amp;diff=134562"/>
		<updated>2022-02-02T09:17:53Z</updated>

		<summary type="html">&lt;p&gt;Vanalt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;B747-8 banking left with HDR Pipeline enabled&lt;/div&gt;</summary>
		<author><name>Vanalt</name></author>
	</entry>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=File:B747-HDR_Prewiew2.png&amp;diff=134561</id>
		<title>File:B747-HDR Prewiew2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=File:B747-HDR_Prewiew2.png&amp;diff=134561"/>
		<updated>2022-02-02T09:16:25Z</updated>

		<summary type="html">&lt;p&gt;Vanalt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;B747-8F with HDR Pipeline enabled&lt;/div&gt;</summary>
		<author><name>Vanalt</name></author>
	</entry>
	<entry>
		<id>https://wiki.flightgear.org/w/index.php?title=File:C172-HDR_Pipeline_Preview2.png&amp;diff=134560</id>
		<title>File:C172-HDR Pipeline Preview2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.flightgear.org/w/index.php?title=File:C172-HDR_Pipeline_Preview2.png&amp;diff=134560"/>
		<updated>2022-02-02T09:12:14Z</updated>

		<summary type="html">&lt;p&gt;Vanalt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Image of a C172 flying (HDR Pipeline enabled)&lt;/div&gt;</summary>
		<author><name>Vanalt</name></author>
	</entry>
</feed>