White Lines In Thick Fog

Discussion in 'Technical Reports' started by Class50Nut, May 14, 2024.

  1. Class50Nut

    Class50Nut New Member

    Joined:
    Apr 10, 2024
    Messages:
    10
    Likes Received:
    2
    20240514143848_1.jpg 20240514143854_1.jpg Hello Friends,
    Anyone what causes the white lines in thick fog? (using AP weather enhancement)
     
  2. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Are you using Vulkan DXVK or RWEnhancer 2 with Vulkan ticked? The fog shader isn't compatible with Vulkan, I did contact Richard (AP) about it last year and I even put him in contact with the RWEnhancer 2 Dev so that he could share the fix with Richard, as he addressed and fixed this issue with RWE2 using Vulkan, unfortunately the APSWEP undoes this fix because it replaces the corrected shader.

    I don't know the outcome of that but Richard did tell me that it may be too complex or may even break something within his modified shaders so may not even be possible to implement the fix, my recommendation - disable Vulkan when playing a foggy scenario, also wouldn't hurt dropping AP a support ticket to see if there ever was a fix in the pipeline (but only if you are indeed using Vulkan via RWE2 or DXVK)
     
  3. Spikee1975

    Spikee1975 Guest

    Not using any external enhancers because I'm fine with the AP shaders, but as Reef elaborated, this looks like another shader interfering with the AP shaders.
     
    Last edited by a moderator: May 14, 2024
  4. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    Im getting the same without Vulkan and RWEnhancer, just with pure AP 2.0.
     

    Attached Files:

  5. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    I have once noticed this myself on a route with relatively gray skies in one direction but some trees quite literally glowing. Not all!
    I suspect it's some antialiasing / transparency hiccup. Either the skies behind are in fact very bright, or certain trees use that value regardless. (A lot of weather includes colored fog, as far as I can tell, resulting in glowing trains and massive shadows in rain, or my often remarked white fog at midnight. Point is, just because the fog is gray, what's behind may be something else.)
    It may have something to do with outlining, which I didn't notice at the beginning but definitely do since 2021. It is meant to be subtle but as with many things, zooming in shows it in action. Usually it's visible surrounding people at stations but it also emphasizes objects like buffers, chains, everything. And that everything might include trees, and their background.
     
  6. Class50Nut

    Class50Nut New Member

    Joined:
    Apr 10, 2024
    Messages:
    10
    Likes Received:
    2

    RWEnhancer 2 with Vulkan ticked was the culprit! Many thanks for you time everyone.
     
    • Like Like x 1
  7. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    So is this AP issue?
     
  8. Spikee1975

    Spikee1975 Guest

    Andras' post is unrelated to the topic (I think, as there's no screenshots.)

    In fact, the AP Sky & Weather Enhancement Pack 2.0 has fixed a lot of core issues. Fog at night was a problem because fog used to brighten things up through a white alpha channel mask. Also the distant fog colour is not tied to the upper sky colour anymore, which removes the deep blue mountains effect.

    Even the default RSC skybox (featuring the big cumulus clouds) was not really compatible to the core weather patterns (2. Cloudy), if you notice the upper cloud layer consisting of these small white clouds was moving at an unrealistic speed, looking awkward. (These still used weather patterns were designed for the original Kuju skydome which rotated three spherical layers in all directions as opposed to the RSC/DTG skydome with the horizontally moving cylindrical cloud bands.

    Also the new AP shaders make the world appear brighter and a bit crispier. AdaptiveBloom is perfect now, without overexposure and blur.

    The APSWEP2.0 is the single most valuable update to the game, as many of the default TimeOfDay skies and weather patterns look completely off and ruin the routes.

    The issue here was applying shaders on top of AP shaders. (Like applying too much Sharpening on an image gives these edge artefacts.)
     
    Last edited by a moderator: May 15, 2024
  9. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Yep, what Spikee1975 said..

    So in summary.

    Standard 64bit game no 3rd party shader add ons including AP SWEP = No issues

    64bit with APSWEP = No issues

    64bit with Reshade = No issues

    64bit with RWEPro or RWE2 = No issues

    Any combination of the above = No issues

    64bit with RWE2 with vulkan ticked = No issues

    64bit with RWE2 with vulkan ticked + APSWEP = Fog white line issues

    64bit with DXVK with or without APSWEP and/or RWEPro or RWE2 = Fog white line issues

    32bit will be the same as 64bit results wise.
    The experimental DX12 build was untested because its broken anyway.
     
    • Helpful Helpful x 1
  10. Spikee1975

    Spikee1975 Guest

    I'm never going back / to the Bad Old World :)

    Def Nintendo Colours
    NWC_def.png

    AP
    2024-05-15 17_29_37-Train Simulator (x64).png
    2024-05-15 17_29_27-Train Simulator (x64).png
     
  11. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    I only have APSWEP and Im getting white lines.
    20240516222720_1.jpg
     
  12. Spikee1975

    Spikee1975 Guest

    Which route (I guess Castle Rock RR) and weather preset exactly? Let me see if I get this too (or if it's related to your AA transparency settings).
     
  13. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    Almost) Fort Kent to Eagle Lake route, 10th scenario, right at the start.
    I have FXAA + 2x1 SSAA.
     
    Last edited: May 18, 2024
  14. Spikee1975

    Spikee1975 Guest

    Which weather? If non-AP weather is used then artefacts may appear, as described in the manual.
     
    Last edited by a moderator: May 18, 2024
  15. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    AP weather 2.0, swapped TimeOfDay files in route assets, as described in AP manual.
     
    Last edited: May 18, 2024
  16. Spikee1975

    Spikee1975 Guest

    I'm talking about the weather that's selected in that scenario.

    Edit: It's "EU Storm Snow" from the ELAP. It is not a valid weather for APSWEP, as the manual says.
    2024-05-18 07_01_17-Train Simulator (x64).png

    Read the APSWEP manual, it tells you how to change the weather pattern.
     
    Last edited by a moderator: May 18, 2024
    • Helpful Helpful x 1
  17. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    I see now. After selecting one of the AP Weather types in scenario fixed that visual bug. Thanks!
    So to play a scenario I have to swap TimeOfDay files and select most appropriate weather pattern? I somehow thought, that standard weather types should work as well...
     
  18. Spikee1975

    Spikee1975 Guest

    Valid weather patterns are the ones starting with "AP..."

    Plus these and only these which are core weather patterns and are updated by AP (Kuju\RailSimulatorCore\Weather\) - these are used by QuickDrive

    0. Default
    1. Clear
    2. Cloudy
    5. Foggy
    9. Foggy Snow
    11. Overcast
    12. Overcast Rain
    15. Overcast Snow
    17. Stormy Rain
    19. Night Cloudy
    20. Night Foggy
    22. Night Overcast
     
    Last edited by a moderator: May 18, 2024
    • Helpful Helpful x 2
  19. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    With AP weather route looks completely different!
    20240518103234_1.jpg
     
    • Like Like x 3
  20. Spikee1975

    Spikee1975 Guest

    Yeah - it really turns old routes into a completely new experience.
     
    • Like Like x 2
  21. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    Summer in Maine. Beautiful time.
    How come TSW has so poor graphics, I cannot understand that.
    20240518225410_1.jpg
     
    • Like Like x 2
  22. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    I might be baiting irony here, but it's the trade off between fidelity and density. And effect quality like shading.
    Whenever I play such routes I'm like "gosh, that pixelated 2D" for a few minutes, then I get used to it and appreciate the views.

    To respond to an earlier question, I was commenting because there was a chance that this is not just related to enhancements / weather but based on core behavior. I'm not sure (been a while) but I think those "glowing" trees were on Soldier Summit in a certain winter weather. As you can see comparing OP 1-2 the lines are also somewhat hidden by the fog - the issue is that the edge of the tree line is blended in / outlined against a bright background (white sky) instead of the grey fog. At least on SS that was the issue, flying closer revealed it. The opposite also happens with (bright) grey fog during midnight scenarios where everything is outlined pitch black.

    If you look at picture 1 closely you can see that the trees right in front of us also have a white outline.
    upload_2024-5-19_8-41-54.png

    You can observe outlining on these two pictures:
    20240519134419_1.jpg 20240519144756_1.jpg
     
    Last edited: May 19, 2024
    • Like Like x 1
  23. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    Havent you reported this to developers? There is still a small chance of a fix.
     
  24. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    I have noticed the problem again, with AP weather this time. With AP Rain Moderate (Fog) preset.
    When I select AP Rain Moderate without fog - bug disappeares.
    So it looks like the fog is the cause.
    I have restarted game, after weather change, as it is advised in AP manual.

    Screenshot 2024-05-20 080947.png Screenshot 2024-05-20 081014.png
     
    Last edited: May 20, 2024
  25. Spikee1975

    Spikee1975 Guest

    You can try to change the AA Transparency settings in your GPU driver which is exactly for this. This is an Antialiasing issue.

    Also note that Fort Kent uses Low Res vegetation textures if you don't have the 3DTrains HiRes scenery pack. This can lead to AA issues at edges of transparent textures.

    No issues
    2024-05-20 09_30_55-Train Simulator (x64).png
     
    Last edited by a moderator: May 20, 2024
  26. Ingwar

    Ingwar Member

    Joined:
    Apr 19, 2024
    Messages:
    98
    Likes Received:
    17
    Im using 3DTrains HiRes scenery pack. I have even reinstalled it, I was afraid it has been overwritten by Kent route installation.
     
    Last edited: May 20, 2024

Share This Page