Jump to content
Sign in to follow this  
mpo910

P3D V5.1 Objects through FOG/Clouds Workaround - By LM

Recommended Posts

On 1/12/2021 at 7:15 AM, mpo910 said:

UPDATE FROM LM at their support forum - Follow first link in post above

 

 

Hi,

Thank you for this much needed fix! Do you think a similar fix can be devised for the bug that even in overcast situations sunlight is cast on every object that is above your POV? 

Thanks!

Share this post


Link to post

Thanks for this. But I think I will just wait for P3D v5.2. The fix for this will most likely be in 5.2.

Share this post


Link to post
12 minutes ago, Rob_Ainscough said:

Fix works very well, only oddity I noticed was God Rays going into hysteria on, off, on, off.

Cheers, Rob.

Hi Rob.

This I did notice without this fix as well. I had GodRays turned off due that "on" "off" "on" "off" behavior. This is within VR and depending on the view "panning" left-right or up-down.

Do you really think this is related to this values?

Marcus


Regards,

Marcus P.

xaP1VAU.png

Share this post


Link to post
1 hour ago, mpo910 said:

Hi Rob.

This I did notice without this fix as well. I had GodRays turned off due that "on" "off" "on" "off" behavior. This is within VR and depending on the view "panning" left-right or up-down.

Do you really think this is related to this values?

Marcus

This I only have seen 2-3 times, both in the sky as on the ground. After a reload of P3D it was gone. So I have them on.

The moments it appeared was when I had changed views multiple times.

Hopefully LM can fix this for good. Plus the orange skies and low res early dawn/ late dusk clouds...

  • Like 1
  • Upvote 1

13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post
23 minutes ago, Rob_Ainscough said:

 AMD 5950X and nVidia 3090 can do (and a AMD 5950X and 6900XT)  ... yes the "out of stock" wait is killing me 🙂

On an unrelated side note, has anyone noticed the EA clouds move very quickly during high winds?  Not sure if this is my VolumetricClouds.cfg modifications or something else in HiFi ASP3D?

Cheers, Rob.

With the AMD I could help you out to get one quicker as waiting for Stock in USA. If you are interested, PM me. In Germany it is in Stock at a very well known supplier for round about EUR 973,- (in Stock Status 2 minutes ago).

Yes. The cloud movement is noticeable at my end too. I use ASP3D latest build. Update interval set to 5 minutes.

I think this is what happens (but maybe you did not mend the update interval set in your ASP3D app).

At low wind speeds "at cloud level" this is also noticeable, but then they are not moving so fast and not so long/far.

At high wind speeds "at cloud level" this becomes very noticeable. Clouds "have to travel" further and due the higher wind speeds faster, from the prior "updated interval location" to the present updated "location". At high winds, the clouds have to travel further and faster, this is what I see (in a short time compressed), at least I assume this.

So it seems that at higher wind speeds and bigger difference regarding cloud location, before and after the update, the movement speed is bigger too.

But I see here a big chance too.

As performance reduction during this update and movement is negligible, maybe updating much more often will reduce this. I think about updating every 10 seconds? Or even more often? Realtime?

This would be great but I really don´t know which restriction there are also.

But I like the idea that truesky has possibilities to update per movement and not redrawing suddenly at the updated cloud location.

Marcus 

 

 

Edited by mpo910

Regards,

Marcus P.

xaP1VAU.png

Share this post


Link to post
8 hours ago, Rob_Ainscough said:

It's very possible the hysteria issue with God Rays was a coincidence.  I had reported the God Ray hysteria early on in the Beta with video ... it's a difficult issue to replicate as it's not consistent.

But relative to the shader code changes, it's a big improvement!! (I'll give up God Rays for it)  ... even more so if one uses ChasePlane with gimble off (where the original problem was very apparent.

Yes, still lots of other issues to be fixed but the dev team is back and working on it.  I'm still blown away by the performance of P3D V5.x even on my now "dated" hardware (9900K and Titan RTX) ... can't wait to see what an AMD 5950X and nVidia 3090 can do (and a AMD 5950X and 6900XT)  ... yes the "out of stock" wait is killing me 🙂

On an unrelated side note, has anyone noticed the EA clouds move very quickly during high winds?  Not sure if this is my VolumetricClouds.cfg modifications or something else in HiFi ASP3D?

Cheers, Rob.

Oh yes, as an owner of a 5950X and a Watercooled 6900XT Ican tell you I love it 🙂 P3D was never so smooth for me.

 But i was coming from a 9990XE and a Radeon VII so the 6900XT alone was nearly 100 % more powerfull then my Radeon VII 


sfo_a320.png

 

C. W. ,Ryzen 9 5950X @H2O , 32 GB RAM DDR4 3600 Mhz CL15 , Corsair MP600 Pro Watercooled 2 TB for P3D, Samsung SSD980 1 TB for Addons and Crucial MMX500,  Red Devil Ultimate 6900 XT

Share this post


Link to post
On 1/12/2021 at 8:56 PM, mpo910 said:

Maybe I am a little picky now....but this is most likely not the final solution. It is communicated by LM to be a "work around" until they fixed it with the next release.

I can not say if this provided workaround will taken as the final fix. 

Just to be aware off incase of any future updates. 

Fiddling with the core shaders is not a good way and can cause instable situations if not done properly.

😉

Regards

Marcus

Thanks Marcus but how does one edit a fxh file? 🤔


Shom

 

[Win 10 Pro, i7-9700K, MSI 3080Ti, 4K screen, Crucial 2666 16GB, 2 500GB Samsung EVOs 850/860]

[MSFS 2020 running with Fenix A320, PMDG 737, FSS E-175, Aerosoft CRJ]

[P3D v5.3 HF2 running with ifly 737 Max 8, FSLabs A319/320/321, Feelthere E170/175/190/195 v3, PMDG 737 NGXu ,TFDI 717, Aerosoft CRJ Pro, Majestic Dash 8, CS 757 iii, Feelthere ERJ-145, Fly The Maddog X, QW 787, PMDG 777]

Share this post


Link to post
2 minutes ago, Shomron said:

Thanks Marcus but how does one edit a fxh file? 🤔

Notepad++ is free to download. 

  • Like 1

Regards,

Marcus P.

xaP1VAU.png

Share this post


Link to post
On 1/12/2021 at 1:51 AM, Rob_Ainscough said:

Thanks Marcus!

Summary:

Modify from your P3D install i.e. - D:\Lockheed Martin\Prepar3D v5\ShadersHLSL\FuncLibrary.fxh

Line 781 - replace (one line)

vProj[2][2] += ZBias * 4.76837158e-7;

with (3 lines)

float zBiasOverride = ZBias;
if (ZBias < 0) zBiasOverride = -1 + ZBias * 0.03333333;
vProj[2][2] += zBiasOverride * 4.76837158e-7;

Clear out the shader cache (delete folder here %LocalAppData%\Lockheed Martin\Prepar3D v5\Shaders)

Cheers, Rob.

For those using Envshade, the code of interest will not be at line 721, as Envshade does modify this file...in my case it was at line 821, but its precise location in the file may vary depending on how you have Envshade configured.

Also, you will most likely have to go back in and reaccomplish this edit if you use Envshade to modify the shader settings again later.

FWIW, for those using the Lorby-SI P3D Addon Manager, under the "Tools" tab there's a handy one-click "Clear the Shader Cache" function there many may not have noticed.

 

  • Like 1
  • Upvote 2

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

Performed this fix today... what a great edit!!!   Makes it difficult to find the airport in the fog/haze...  thanks!!!

  • Like 1

i7 6700K @ 4.6GHz, ASUS Z170-PRO GAMING, 32GB DDR4 2666MHz, 750W EVGA SuperNOVA, 512GB Samsung 960 PRO, 1TB Western Digital - Black Edition
RTX 2080Ti (MSI trio), Corsair H115i - 280mm Liquid CPU Cooler

Share this post


Link to post
3 hours ago, w6kd said:

For those using Envshade, the code of interest will not be at line 721, as Envshade does modify this file...in my case it was at line 821, but its precise location in the file may vary depending on how you have Envshade configured.

Also, you will most likely have to go back in and reaccomplish this edit if you use Envshade to modify the shader settings again later.

FWIW, for those using the Lorby-SI P3D Addon Manager, under the "Tools" tab there's a handy one-click "Clear the Shader Cache" function there many may not have noticed.

 

Using Envshade, mine was at that line (821) too. And you are right, changes in Envshade settings require to accomplish the mod again. But usually, I don't play with Envshade settings too much.


- Harry 

i9-13900K (HT off, 5.5 GHz, Z690) - 32 GB RAM (DDR5 6400, CAS 34), RTX 3090Windows 11 Pro (1TB M.2) - MSFS 2020 (MS Store, on separate 4TB M.2).

 

 

 

Share this post


Link to post
2 hours ago, Nemo said:

Using Envshade, mine was at that line (821) too. And you are right, changes in Envshade settings require to accomplish the mod again. But usually, I don't play with Envshade settings too much.

I always search for words. Very easy and it doesn’t matter what line number

Edited by GSalden

13900 8 cores @ 5.5-5.8 GHz / 8 cores @ 4.3 GHz (hyperthreading on) - Asus ROG Strix Gaming D4 - GSkill Ripjaws 2x 16 Gb 4266 mhz @ 3200 mhz / cas 13 -  Inno3D RTX4090 X3 iCHILL 24 Gb - 1x SSD M2 2800/1800 2TB - 1x SSD M2 2800/1800 1Tb - Sata 600 SSD 500 Mb - Thermaltake Level 10 GT case - EKWB Extreme 240 liquid cooling set push/pull - 2x 55’ Sony 4K tv's as front view and right view.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 1x 65” Sony 4K tv as left view.

FOV : 190 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Share this post


Link to post

I cant seem to get this to work. I have made the changes to the file and deleted the shaders. When I take off from LGAV (fly-tampa) the autogen on airport and in surrounding area/ city bleeds through the clouds.  Nothing has changed. What am I doing wrong?

Share this post


Link to post
12 minutes ago, LGKR said:

I cant seem to get this to work. I have made the changes to the file and deleted the shaders. When I take off from LGAV (fly-tampa) the autogen on airport and in surrounding area/ city bleeds through the clouds.  Nothing has changed. What am I doing wrong?

Can you quote all the lines you have at that section of your shader file please? Must be all the lines between the empty lines regarding this change. 

Marcus


Regards,

Marcus P.

xaP1VAU.png

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