Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

P3D v5.1 HF1 HDR mode tweak

Featured Replies

Hi,

P3D's HDR mode looks really weird with some aircraft, especially FSLabs A320. Since P3D v5.1 HDR mode became mandatory for trueSKY (which is not surprising, as volumetric cloud / sky calculations tend to involve physical brightness values which often exceed SDR), and it looks like many people didn't like this decision. Even though it is possible to simply disable HDR mode using prepar3d.cfg, it causes artifacts as sky & volumetric cloud highlights get clamped to maximum brightness.

I've created a little tweak, which changes the tonemapping function used in HDR mode from ACES to Reinhard. This essentially brings SDR mode look back, while preventing artifacts caused by SDR rendering. It only works with P3D v5.1 HF1.

CKfeQx.png

How to install:

Download HDR.hlsl from https://www.dropbox.com/s/2jh0y9swa9h6emv/HDR.hlsl?dl=0 and replace it with HDR.hlsl in "Lockheed Martin\Prepar3D v5\ShadersHLSL\PostProcess" (don't forget to create a backup first), where "Lockheed Martin" is your main P3D installation directory.

Delete shader cache by removing the "%localappdata%\Lockheed Martin\Prepar3D v5\Shaders" folder.

Edited by BiologicalNanobot

PC specs: i5-12400F, RTX 3070 Ti and 32 GB of RAM.

Simulators I'm using: X-Plane 12, Microsoft Flight Simulator (2020) and FlightGear.

Hmmm, very interested in this, will have to give it a try tomorrow. For those using EnvShade, will this be overwritten each time we update shaders?

Edited by B777ER

Eric 

 

 

  • Author
42 minutes ago, B777ER said:

Hmmm, very interested in this, will have to give it a try tomorrow. For those using EnvShade, will this be overwritten each time we update shaders?

Hi, sadly I can't comment on this as I don't have Envshade and I don't know what shaders it overrides.

PC specs: i5-12400F, RTX 3070 Ti and 32 GB of RAM.

Simulators I'm using: X-Plane 12, Microsoft Flight Simulator (2020) and FlightGear.

Completed a flight and it works really well on my system, HDR is way more tolerable. Thanks for this. 

Confirming working with HF1 / HDR with SDR frame rates and looking much better  Thankyou.

Hi,

Definitely an improvement. Thanks!

Reinhard

 

Hi just did a clean install of W10 / P3D V5.1 / Aircraft finding this mod did artifact 1 aircraft in my install where the Aircraft select is.

Other aircraft are fine.

Hunch is its the model/lighting itself and not the mod.

im still very happy with it and a way smoother experience.

Just backup the old file as BiologicalNanobot says and clear cache.

Looking at the next hotfix then start from a mod free stock P3D 5 to see what happens.

Edited by 40track

Thanks for providing the tweak. For me HDR looks now much better.

Ruediger

Looks great during the day, but at night this brings back the "FSX Era" night brightness problem for me.

~Spencer Hoefer

MOBO: Gigabye Aorus z590 elite | CPU: Intel i9-10900k  | RAM: GSKILL RIPJAWS 32GB DDR4 3200 |GPU: Nvidia RTX 2080Ti 11GBOS: Windows 10 

On 21/01/2021 at 10:48 PM, B777ER said:

Hmmm, very interested in this, will have to give it a try tomorrow. For those using EnvShade, will this be overwritten each time we update shaders?

Beat me to it Eric 

 
 
 
 
 
  913456

Thanks for this perfect work.

After i change this file i start the Envshade Tool to inject Envshade again.

It works perfect for me

 

Thanks

Frank

 

WIN 11 64 Pro, Gigabyte Z790 Aorus Elite AX, I7 13700K, be-quiet Loop Silent 2 WK, RTX 4080 S, 64 GB DDR5 Kingston Fury Beast EXPO, 4x Nvme Samsung PRO, MS2024, be quiet SP11 850 Watt

On 1/21/2021 at 3:48 PM, B777ER said:

Hmmm, very interested in this, will have to give it a try tomorrow. For those using EnvShade, will this be overwritten each time we update shaders?

From examining the two hlsl files, I've concluded that this mod is not compatible with Envshade.

Envshade also modifies the same HDR tonemap code in HDR.hlsl, so if you install this file you will lose the Envshade code, and if you write a config with Envshade it will overwrite this mod.

 

 

Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

Sys1 (MSFS20+24/XPlane12+11): AMD 9800X3D, water 2x240mm, MSI MPG X670E Carbon, 64GB GSkill 6000/30, nVidia RTX4090FE
Alienware AW3821DW 38" 21:9 GSync, 2x4TB Crucial T705 PCIe5 + 2x2TB Samsung 990 SSD, EVGA 1000P2 PSU, 12.9" iPad Pro
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, Twin TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Sys2 (P3Dv5/v4): i9-13900KS, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@60Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys3 (DCS/P3Dv4/ATS/ETS): AMD 7800X3D, MSI MPG X870E Carbon, Noctua NH-D15S, 64GB GSkill 6000/30, EVGA RTX3090
Alienware AW3420DW 34" 21:9 GSync, Corsair HX1000i PSU, 4TB Crucial T705 PCIe5 + 2TB Samsung 970Evo Plus,
TM TCA Officer Pack
, Saitek combat pedals, TM Warthog, TM RS300 FF wheel/pedals, Coolermaster HAF XB case

1 hour ago, w6kd said:

From examining the two hlsl files, I've concluded that this mod is not compatible with Envshade.

Envshade also modifies the same HDR tonemap code in HDR.hlsl, so if you install this file you will lose the Envshade code, and if you write a config with Envshade it will overwrite this mod.

 

 

Yep, I tried it out and did not work out. Back to EnvShade.

Eric 

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.