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 


 
 
 
 
v63vq9-5.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

 

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

System: i9-10900K @ 5.2GHz on custom water loop, ASUS Maximus XII Hero, 32GB GSkill 3600MHz CAS15, EVGA RTX3090 XC3 Ultra
Samsung 55" JS8500 4K TV@30Hz,
3x NVME 2x SATA Samsung SSD, EVGA 1KW PSU, 1.2Gbps internet
SoundBlaster XFi Titanium, TOSLINK to Yamaha RX-V467 HT Rcvr, Polk/Klipsch 6" bookshelf spkrs, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensors, Coolermaster HAF932 case, Stream Deck XL button box

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...