Jump to content
Sign in to follow this  
Biology

P3D v5.1 HF1 HDR mode tweak

Recommended Posts

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
  • Like 10
  • Upvote 1

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.

Share this post


Link to post

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 

 

 

Share this post


Link to post
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.

Share this post


Link to post

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

Share this post


Link to post

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

Share this post


Link to post

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 

Share this post


Link to post
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 


 
 
 
 
14ppkc-6.png
  913456

Share this post


Link to post

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 3090 OC, 32 GB DDR5 Kingston Fury Beast EXPO, 4x Nvme Samsung PRO, MS2020, be quiet SP11 850 Watt

Share this post


Link to post
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.

 

 

  • Like 1
  • Upvote 1

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

System1 (P3Dv5/v4): i9-13900KS @ 6.0GHz, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@30Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU, 1.2Gbps internet
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

Sys2 (MSFS/XPlane): i9-10900K @ 5.1GHz, 32GB 3600/15, nVidia RTX4090FE, Alienware AW3821DW 38" 21:9 GSync, EVGA 1000P2
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, 2x TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Portable Sys3 (P3Dv4/FSX/DCS): i9-9900K @ 5.0 Ghz, Noctua NH-D15, 32GB 3200/16, EVGA RTX3090, Dell S2417DG 24" GSync
Corsair RM850x PSU, TM TCA Officer Pack, Saitek combat pedals, TM Warthog HOTAS, Coolermaster HAF XB case

Share this post


Link to post
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 

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...