Foliage Popping In To View When Driving

Discussion in 'Technical Reports' started by 749006, Jun 19, 2024.

  1. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    Driving over the Chatham Mainline, which I have had for some time, the grass changes slightly as you get about 100 yards increasing - same with the trees - you can see a line going along the trees as they change slightly

    It there a way to stop this - very distracting when driving

    My Scenery Quality, Density and View Distance are on Max
    Screenshot_Chatham Main Line - London Victoria to Dover + Ramsgate_51.38362-0.37618_10-31-06.jpg
    Screenshot_Chatham Main Line - London Victoria to Dover + Ramsgate_51.38368-0.37587_10-31-09.jpg
    Screenshot_Chatham Main Line - London Victoria to Dover + Ramsgate_51.38397-0.37441_10-31-22.jpg
     
    Last edited: Jun 19, 2024
  2. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    729
    Likes Received:
    565
    How long have you had this?
     
  3. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    I have not noticed it this bad before.
    I even re downloaded the route today to see if it made a difference but it has not.
    Seems almost as bad as a RSSLO Route.

    It is not on all routes - just ran Berlin - Leipzig with barley a flicker
     
  4. Spikee1975

    Spikee1975 Guest

    The distance at which an object changes its LOD (Level of Detail) is defined in the model itself (GeoPcDx <LODController>). So it is depending on the asset.

    This is a bush line from Chatham. It has two LODs (models), the first ist the highest poly model, appearing at a distance of 0-50 metres, next lower poly model appears at 50-1000 metres away. (If it's beyond 1000 metres, it won't be rendered at all no matter what game settings.)

    2024-06-19 22_12_15-Train Simulator (x64).png

    As I see it, the AP VegEP renders the full models from a greater distance already, which needs slightly more performance but avoids the "popping" effect. Only one LOD for a tree here, distance 1000 metres.

    Theoretically, you could modify the LOD controllers and set the first (LOD0) to 500 e.g.

    I recall when Taurus Mountains was released, the tree LODs were horrible - like TSW. I pointed that out in the feedback thread, and the author changed that in an update.

    So authoring assets for TSC needs more thought than for modern engines, which use .ini parameters where you can globally multiply the LOD distance scale. In TSC, that's not possible - at least upscaling is not. You have to edit the assets.
     
    Last edited by a moderator: Jun 20, 2024
    • Helpful Helpful x 2
  5. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    Thanks - I might have a look at the trees
    I have the AP Sky & Weather pack but not the Veg pack.

    Peter
     
  6. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    Spikee1975 can you tell me what I'm dong wrong?
    I opened the Bush_line01.GeoPcDx with Notepad ++ but it does not look like your version and there are a number of strange letters

    Screenshot (408).png
     
  7. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,326
    Likes Received:
    2,781
    The first characters are SERZ so I assume, just like BIN, it needs to be unserzed and then back.
    If you are lucky, serz.exe knows the convention by filename, if not, rename to-from BIN. You edit the XML.
     
  8. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    When I attempt to "Open with Serz" nothing happens to the file
    Your suggestion of renaming the file to .bin the serz to get an XML has worked :)

    I hope it works in reverse too

    Peter

    EDIT - the reverse did work but the effect has not changed
    At a dead stand I can see the foliage changing as I zoom in and out from the cab. :(
     
    Last edited: Jun 21, 2024
  9. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,326
    Likes Received:
    2,781
    Well then, halfway there :)
    a) Did you properly rename back? (the reverse would automatically create a .bin that you change to .GeoPcDx)
    b) Did you try clearing cache? Sometimes not necessary but everyone says it is, so maybe this time.

    It's a bit nasty because there is also a .bin.
    Soldier Summit has 3 bush lines so this specific object might be something else, too. You could try and mess it up big time (by placing something massively different, like a tree) to verify that it's what you're changing.
     
  10. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    Hi Andrew,

    I started by copying the Bush_line01.GeoPcDx, Bush_line02.GeoPcDx & Bush_line03.GeoPcDx files from
    G:\Steam\steamapps\common\railworks\Assets\DTG\ChathamMainLine\Scenery\Vegetation to a desktop folder

    I then renamed the .GeoPcDx files to .bin then used Serz to create the xml.
    Each of the three files were altered to be <e d:type="sFloat32" d:alt_encoding="0000000000004940" d:precision="string">500</e>
    I then used Serz to finalize the .bin and renamed the back to GeoPcDx
    Finally copying them back to the game folder

    After clearing the Cache and starting the game I still have the lineside veg popping at the same distance as before.
    I don't know enough to know what I'm doing wrong.

    Peter
     
  11. Spikee1975

    Spikee1975 Guest

    You may have to edit the vegetation in DTG\LondonGillingham too which is the assets of the first Chatham route, that's also used by Blackfriars-Dover/Ramsgate.

    RouteProperties.xml tells you which asset packs are used.

    If you see performance issues, lower the value to 250 or so.
     
    Last edited by a moderator: Jun 22, 2024
    • Like Like x 1
  12. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    • Like Like x 1
  13. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    Having looked thru the large list of different scenery items that I would need to change I will give it a miss for now.
    The route did not have this problem before so maybe something in my Graphics settings changed.
     
  14. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,326
    Likes Received:
    2,781
    Might be related to how headlight components pop in and out based on a very specific distance. (While paused.)
    Since I'm photographing up close a lot, I noticed recently that one of the components is visible quite specifically between a very short range, not too close, not far. Maybe the devs added an override to some of these values.
    (It's not the actual headlights which disappear at medium range, but a second component, basically starsight simulation.)
     
  15. Spikee1975

    Spikee1975 Guest

    So before this gets speculative, we don't know yet if this is an effect of anticipating a bug in a new version and therefore looking much closer at things than before, or actually a change.

    I am just copying the assets to my v72 folder and will make an easy check if the LOD changes at 50 metres, which it should, so I'm not sure if there is actually different behaviour handling LODs. The Geo blueprint says 50 metres, that means so far what has been described is not a bug but intentional way of rendering less polys in the distance.

    As far as the headlights are concernced, that was confirmed to be a bug (unrelated to this matter) and is fixed in the upcoming version.

    A personal wish: When posting issue-related screenshots, please provide as much info as possible. If the HUD was visible, it would speed up confirming the issue as I would know at which place the screenshot was taken. Best to hit F1 too as it tells which scenario is being played. The more info the better.

    So far it isn't even clear which version of Chatham is in question, there's three of 'em.

    Edit: Just playing a scenario under v72, the popping is the same. It renders the LODs as defined in the model, so cannot confirm any change in the current version. The AP VegEP addressed this by replacing some of the trees and bushes with a LOD0 of 1 km instead of 50 m.

    The offending asset is the LG Grass Field Weed Line. It has always been popping up like that.
    2024-06-23 02_21_34-D__00 TEMP_00 - WORKDIR_Grass_Field_weeds_line01.GeoPcDx.xml - Notepad++.png

    I haven't figured out what the four different distances inside one LOD are for - I will set them all to 500 and observe the effect.

    For testing, I'll make a quick new route placing these along a straight line.
    2024-06-23 02_47_48-Train Simulator (x64).png

    This looks good. Now the GPU must scale the grass down itself, and it does this without discrete steps, resulting in smooth rendering. Shouldn't affect FPS, as it is a low poly model anyway that just holds simple texture billboards.

    Before (bottom right is LOD0, middle left already shows LOD1)
    23.png

    Please try the attached fix. This solves the issue. To get all the trees fixed and replaced by better models, I can only recommend the APVegEP. I will send Richard a note to include the fixed Weed Line 1 in the pack, it appears on many DTG routes and must be fixed individually, just copying that Geo to other routes will probably not work.

    Result: Smooth rendering now :)
    2024-06-23 03_27_51-Train Simulator (x64).png
     

    Attached Files:

    Last edited by a moderator: Jun 23, 2024
    • Helpful Helpful x 1
  16. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    Thanks Spike, - I will give that a try.
    The route is the Chatham Mainline London to Dover and Ramsgate.
     
  17. Spikee1975

    Spikee1975 Guest

    Figured that out, screenshot is near Meopham :D
     
  18. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    That seems to work - the grasses and bushes don't seem to pop any more

    Thanks
     
  19. IronBladder

    IronBladder Well-Known Member

    Joined:
    Sep 5, 2017
    Messages:
    1,184
    Likes Received:
    1,964
    Could the four different distances relate to scenery quality or view distance settings?
     
  20. Spikee1975

    Spikee1975 Guest

    Don't think so. Possibly related to four meshes that form this group, hence four LOD slots. Could also be a result of wrong naming when modelling (0_0050_mesh1..., 0_0100_mesh2). I'd say it wasn't intentional, more the result of grouping four objects with initially different LOD distances. Safe to set these to higher values as in my fix if you come across other instances of popping assets. (Just don't remove a slot - strange things may happen then.)

    View Distance is the radius of tiles rendered (terrain and scenery) - has nothing to do with LODs.

    Scenery Quality uses compressed (nmc) textures, then reduces model LOD (if available in the Geo) and texture mipmaps the further you lower it.

    Scenery Density renders objects based on their quality index (1-10), given by the author. Relic of older days. No one goes through the tedious work of assigning and weighing their assets, deciding importance for each single object. Never set it below max. Show them all :)
     
    Last edited by a moderator: Jun 24, 2024
  21. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,088
    Likes Received:
    3,145
    This problem is happening on another route - the Rodactalbahn - I realise its an old freeware route.

    Approaching this tree its all green
    Rodachtalbahn 002.jpg

    As I get nearer it starts to add colour to it Rodachtalbahn 003.jpg

    The next tree is also plain Rodachtalbahn 004.jpg

    As I get nearer the tree also gets extra detail Rodachtalbahn 005.jpg

    I had not reinstalled the route from a previous drive until today. and I don't remember it doing this before
    Kim Olesen - how do you find the route? The same graphics effect?
    This is departing Munchberg towards Selbitz.

    I wondered if my graphics setting might have changed but then a run over the RSC - ECML-S was without any problem

    Peter
     
  22. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    729
    Likes Received:
    565
    It’s been a while since i drove it. Though it’s one of the very best TSC routes. I think i made a couple of videos though. They might reveal something.
     

Share This Page