Sign in to follow this  
Rob Ainscough

HDR v2.2 vs v2.4 ...

Recommended Posts

Here are the differences in the HDR.HLSL from v2.2 (left side) to v2.4 (right side).  If you feel adventurous go ahead and edit the file (located in ...\ShadersHLSL\PostProcess) to match v2.2.  WARNING: I have NOT done this, so proceed at YOUR OWN RISK.  I did however get permission to post this.

 

Be sure to delete your Shaders folder (i.e. C:\Users\[youraccountname]\AppData\Local\Lockheed Martin\Prepar3D v2\Shaders) before starting P3D v2.4.

 

warning large images (2088 x 2069) - you'll need to view images full screen in order to read text.

 

53275fef84035a80fae291f54068e0f7.jpg

 

836d14dad33fd905a560c0dad4a4bc53.jpg

 

I don't want to make this a sticky as it's untested with v2.4 code.  As always, suggest you backup the original HDR.HLSL file first.

 

Cheers, Rob.

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

What effects is it supposed to have if I change HDR.HLSL back to v2.2?

 

Harry

Share this post


Link to post

What effects is it supposed to have if I change HDR.HLSL back to v2.2?

 

Some people have expressed that they prefer the HDR is v2.2 ... specifically the bloom and major adjustments to levels based on scene "light" content.

 

The other alternative is if one has the v2.2 HDR.HLSL, you can just copy that into v2.4 and delete the "shaders" (assuming one has a backup of v2.4 HDR.HLSL).

 

Cheers, Rob.

Share this post


Link to post

Ah, thank you, Will try that too.

 

Cheers,

Harry

Share this post


Link to post

Anyone who has tweaked their HDR to "lighten the mood" (ie no more jet black trees or water) able to kindly share their modded HDR file?

Share this post


Link to post

 

 


Anyone who has tweaked their HDR to "lighten the mood"

 

Are you using default P3D sky and cloud textures?

 

Cheers, Rob.

Share this post


Link to post

Are you using default P3D sky and cloud textures?

 

Cheers, Rob.

Hey Rob, I am at this stage- I have read about all the alternatives, but am unsure what is the cheapest and best way to suit my needs (and if this does actually make a difference to the ground colour/dullness?)

 

I would much rather realistic looking clouds and good themes, over real time weather (I fly enough in the RW in real world weather- selecting a scene is much more desirable when I just wanna get airborne in P3D)

 

Cheers

Share this post


Link to post

Cool post Rob - maybe someone can post before and after shots or at least describe those differences as I didn't start using hdr until late 2.3 - thanks to you

Share this post


Link to post

 

 


Hey Rob, I am at this stage- I have read about all the alternatives, but am unsure what is the cheapest and best way to suit my needs

 

So if I understand you correctly you ARE using default P3D textures (cloud/sky)?  The reason I was asking is that I've used some freeware and 3rd party cloud/sky textures that have excessively darkened the scene.  I've had NO color or darkness issues with default P3D sky/cloud textures ... but it sounds like you are?

 

I think perhaps the best thing for me to do is ask you what you think of the colors and dark/lights in these screen shots (be honest with your responses, I'm not the type that gets offended):

 

DUSK (orbx lights on): P3D weather theme and clouds, REX 4 sky

a91cfdde9c720054e8884ee9f57bdcf1.jpg

 

DUSK: ASN weather, P3D default sky/clouds

1d6244e1db2013b08017f43d094fac02.jpg

 

DAY: Mid Morning, ASN weather, REX 4 sky and clouds

c73ec25d1ce9a8147647416df210a478.jpg

 

DAY (early afternoon): ASN weather but minimal clouds, REX 4 sky/cloud textures

dc7137bc1dfa68b521510d34eb9fe88a.jpg

 

NIGHT: ASN Weather - REX 4 cloud/sky texture

 

1ce0c0c403e0aa72f3fc49d39dc67e52.jpg

 

DAY: Noon-1pm, ASN Weather, P3D default clouds/sky ... above cloud layer

 

37830e4bbb45b179ecca6d324211c19b.jpg

 

DAY (Noon-1pm): ASN Weather (same location as pic above), P3D default clouds/sky -- below the cloud layer

 

bc9700a08621f15677249fe8ac1bd4e3.jpg

 

These are all using v2.4 with the following adjustments to:

 

...\ShadersHLSL\GPUTerrain.fx

Line 881: BaseColor *= lerp( .34f, 1.0f, fAlpha );

 

...\ShadersHLSL\PostProcess\HDR.HLSL

Line 10: static const float BloomThreshold = 03.25f;

Line 11: static const float BloomMagnitude = 03.75f;
Line 12: static const float BloomBlurSigma = 1.3;
Line 13: static const float TimeDelta = 4.0f;

 

for rain you can make these adjustments here:

...\ShadersHLSL\Rain.fx

Line 65: float4 cColor = float4(0.2,0.2,0.2,In.cDiffuse.w) * (cColor0 + cColor1);

 

Be sure to delete your shaders folder before starting P3D here: C:\Users\[YourUserName]\AppData\Local\Lockheed Martin\Prepar3D v2\Shaders

 

Cheers, Rob.

Share this post


Link to post

"...\ShadersHLSL\GPUTerrain.fx

Line 881: BaseColor *= lerp( .34f, 1.0f, fAlpha );"

 

What does this do Rob - darkness on my side is due to shade not vanilla P3D -  which I understand and dont have a problem with it  - also I have many themes to pick from which would lighten things up just haven't tried them yet 

Share this post


Link to post

So if I understand you correctly you ARE using default P3D textures (cloud/sky)? The reason I was asking is that I've used some freeware and 3rd party cloud/sky textures that have excessively darkened the scene. I've had NO color or darkness issues with default P3D sky/cloud textures ... but it sounds like you are?

 

I think perhaps the best thing for me to do is ask you what you think of the colors and dark/lights in these screen shots (be honest with your responses, I'm not the type that gets offended):

Cheers Rob, they look amazing! Yep, I have no addons installed with regards to weather generation or visuals.. I just find that when I'm cursing along VFR over a Forrest environment (or anywhere with trees). That the areas in direct sunlight are far too dark, unlike real life.

 

The cloud shadows look great, but the sunlit areas just don't stand out enough. For example, setting cumulus to 3/8, and flying at midday- trees look very dark. Buildings, cockpit, everything else looks great otherwise.

 

I'll try your HDR settings!

 

On a side note, is it just a limitation of the sim that mountains in the background don't displays 3d trees? I'll try and get a photo, but it's defiantly a ring-range at where they just don't show.. Seems rather close, but maybe that's just a limitation and I need to reduce vis.. I have tried all setting at max, including LOD @ 12.5 (and maxing out the tree LOD)..

 

Cheers again!

Share this post


Link to post

From what I have read changing LOD is not possible in P3D its locked at 6.0 - 6.5 cant remember which

Share this post


Link to post

 

 


I just find that when I'm cursing along VFR...

 

Hey, if you don't like what you're doing, just stop doing it!

 

(Just kidding, of course, but I couldn't let that typo pass by unnoticed! :P )

Share this post


Link to post

 

 


DAY: Noon-1pm, ASN Weather, P3D default clouds/sky ... above cloud layer



37830e4bbb45b179ecca6d324211c19b.jpg

 

Hi Rob,

 

I was just wondering if REX 4 would have done a better job in coloring the clouds correctly in this pic? The cloud tops should be bright white with blue shadows for the time of day. I'm looking to purchase ASN as it seems to be the better weather generator for P3D V2.4. I tried Opus fsi (demo) but overcast conditions are still not covering the sky correctly . Blue patches of sky everywhere in rainy weather.

 

thanks,

Share this post


Link to post

 

 


What does this do Rob

 

Increasing the value (default is ".35f") should increase the brightness for base textures as it will provide more "feedback" to blending reflections/base textures.  I prefer a tad lower value as that seems to work better with my other HDR settings.

 

 

 


From what I have read changing LOD is not possible in P3D its locked at 6.0 - 6.5

 

Correct the LOD limitation is a result of tessellation and texture array size cap of 2048 ... to get around that limit LM would need to make significant "breaking" changes (think 3rd party not happy).  I believe those types of changes will go into a future product.

 

 

 


I was just wondering if REX 4 would have done a better job in coloring the clouds correctly in this pic?

 

From what I've seen no ... but I'll load up historical weather and same location and same time/day using REX clouds for comparison (probably not today, but this weekend for sure).

 

The blue patches of sky might be related to cloud choice and/or cloud density setting in P3D.  If I don't set P3D to max cloud density, I will see blue patches with ASN also.

 

Cheers, Rob.

Share this post


Link to post

Increasing the value (default is ".35f") should increase the brightness for base textures as it will provide more "feedback" to blending reflections/base textures.  I prefer a tad lower value as that seems to work better with my other HDR settings.

 

 

Thanks Rob - just wanted to hear from the Man :) what I suspected - play wit h that tonight

Share this post


Link to post

 

 


From what I've seen no ... but I'll load up historical weather and same location and same time/day using REX clouds for comparison (probably not today, but this weekend for sure).



The blue patches of sky might be related to cloud choice and/or cloud density setting in P3D. If I don't set P3D to max cloud density, I will see blue patches with ASN also.

 

Ok, thanks Rob.

Share this post


Link to post

 

 


The other alternative is if one has the v2.2 HDR.HLSL, you can just copy that into v2.4 and delete the "shaders" (assuming one has a backup of v2.4 HDR.HLSL).

 

I wonder if anyone could post the V2.2 HDR.HLSL file.  Rob, does LM listen to any of this discussion about cloud contrast, HDR intensity, etc?  Where do they get the direction to take on these areas if not from multiple users.

Share this post


Link to post

 

 


Rob, does LM listen to any of this discussion about cloud contrast, HDR intensity, etc?

 

LM listen to everything ... but what you discuss is personal preference and they probably try to avoid getting to involved in that.  They also leave certain doors open to allow for creative 3rd party "ideas".

 

I posted the differences in the v2.2 file above, you'll just need to match the edits from my screenshots - not that many lines to change ... backup first.

 

Cheers, Rob.

Share this post


Link to post

LM listen to everything ... but what you discuss is personal preference and they probably try to avoid getting to involved in that.  They also leave certain doors open to allow for creative 3rd party "ideas".

 

I posted the differences in the v2.2 file above, you'll just need to match the edits from my screenshots - not that many lines to change ... backup first.

 

Cheers, Rob.

I don't think only a minority of users would support what was done to cloud contrast so the 'personal preference' IMO does not apply here, so while they may listen they don't appear to hear.  There have been several threads on this topic.   The sense I got from Zach was that they perhaps thought it was overdone, so in their quest to reduce it they've gone straight past realism and into drab.  I hope they fix it.  Do you believe the HDR file address this very thing, or is it more bloom effects?  I can live with the bloom effects in 2.3 just not the drab cloud shading.

Share this post


Link to post

 

 


so while they may listen they don't appear to hear.  There have been several threads on this topic.   The sense I got from Zach was that they perhaps thought it was overdone

 

So Zach's response is LM not hearing?  

 

As stated, I haven't tried v2.2 hdr in v2.4 ... I posted for those that might want to try it.  No harm will result if one tries it.  I personally don't have an issue with v2.4 clouds except for the vertical clouds I see in "some" conditions.

 

However, what I would recommend if this is important to you is to get real world cloud images from various view angles and time of day ... compare those images with what is being presented in P3D v2.4 over the same view angles and time of day.  Then present your information to LM on their forums.

 

As far as minority/majority goes, you'll need to come up with something try to validate your suggestion this is a majority issue ... a user poll may help.

 

No guarantee this will get the results you want, but it's a good start.

 

Cheers, Rob.

Share this post


Link to post

Here ya go Noel,

 

Some real world cloud shots for you:

 

First 3 shots out in front of my house around 6pm (ish):

 

9826e1e81cef13db96e0f7844716e90e.jpg

 

f63b15401675bed31bc4c951dc981679.jpg

 

667014474d8b3b5c4734d5fd93380e27.jpg

 

This last one was around 3:30 pm (while out shopping):

 

78260a8ce141a05240476bd6fbea3faf.jpg

 

All shots done on my iPhone with HDR on.  This last one was one of those "wow that's cool" moments -- the aura around the clouds ... probably not going to see something like this simulated in a flight simulator in the near future, but maybe in 5-10 years from now the "masses" will have the type of processing power that can do this real time along with everything else flight related.

 

Cheers, Rob.

Share this post


Link to post

I did a low-grade effort at this Rob on the 21st of Oct:  

 

http://www.prepar3d.com/forum-5/?mingleforumaction=viewtopic&t=8777

 

The topic has been brought up and endorsed by others in different threads, but alas, they don't seem to respond in anything but Zach's weak attempt at providing a workaround which doesn't really do anything meaningful, then he tuned back out of the discussion and hasn't returned, hence yes, they don't seem to listen.  My main complaint is that this is not a little thing--it's in your face every time out where clouds are involved, unless it's a low contrast dreary day anyway.

Share this post


Link to post

Listen ... or do what you/others desire?  Two VERY different concepts.  LM clearly listened as you've illustrated.  

 

LM may even agree (and I may agree also), but deciding their priorities isn't something you or I do.  There are 100's of thousands of people providing the same type of feedback requests ... some valid, some not, some can wait.  A lot of people do seem to have a hard time understanding and/or accepting that process.

 

I tried to provide you with a way to best present your case.  In the thread you linked, you are probably not presenting the case very well.  You show one picture from middle of the day looking level with a real world clouds and other shot with P3D showing clouds late in the day ... two different times of day.  I see all too often people trying to make the facts fit their conclusions rather than being objective.  In your case posting a picture of a real world cloud at mid day and then posting a picture of P3D cloud in late day or evening is an attempt to make facts fit your conclusion.  All that says to anyone reading your presentation is that you are not being objective.

 

You listed v2.2 clouds as being "nice" ... hence why I've provided the necessary HDR info to go back to v2.2 clouds in v2.4.  I can also provide the differences in the Cloud.fx between 2.2 and 2.4 if you like?

 

Getting into a debate about LM's priorities and listening isn't really going to do much towards your goal.

 

Cheers, Rob.

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