Headlight Flares (and Bad Loco Design)

Discussion in 'Technical Reports' started by torfmeister, Jun 26, 2023.

  1. torfmeister

    torfmeister Guest

    This originates from another thread (M7), and as I felt it became more general and could be interesting to some of you, I've created a separate thread...

    If it is used as intended, you'll have light texture BOTH in the lensflare texture and a single headlight texture- it would hardly make sense to turn off the lights completely with that option, as you could just don't turn them on the loco. It was meant for the effect.

    1.png

    The option is INTENDED for the camera lens flare effect which not everybody likes. In fact, the lensflare contains 4 textures - lightbulb, camera lens flare 1, 2 and 3. This enables you to put optional lens effects on the light source too (like a star), on top of the original light texture. And if the light texture is not provided, the light will appear to be off when toggling HeadLight Flares. It's just that some developers did not keep to that standard and are just using that blueprint (which is the toggle!)

    So, some pictures of a "textbook" correctly done loco... the UP Turbine (DTG/Reppo)

    Headlight Flares ON
    2.png

    Headlight Flares OFF - the "star" flare texture around the lamp also disappears, and the normal texture is shown. This is how it is done correctly following the developer docs.

    3.png

    These are the textures, first with Flares toggled on, second the base light texture behind the lens flare.
    6.png

    Theoretically these flares should have absolutely no impact on framerate, being just 4 images - and you do not actually HAVE to use the distant flares, you can setup the blueprint to only render the first flare for example.

    So to make it clearer: Underneath the toggable lensflare textures must be a separate single light texture, and many locos are modelled correctly in that way. This is all explained in the developer documents.

    If you don't see any lights when toggling Headlight Flares off - it is the fault of the loco developer relying on the extra texture to provide the ONLY light source texture.

    For a long time now, DTM for example puts the starry light flare image into the main light texture, so you can't disable them anymore, the only way is to edit the texture file itself. Quite ugly. And they knew how to do it ten years ago...

    Violation of design guidelines - these ugly flares are often "baked" into the model textures and can't be toggled off. And using these is bad for a second reason, as the angle of the spikes should always be 45 degrees no matter at which angle you're viewing it from (the same way you cannot ever view a rainbow from the side - note that correctly declared flare textures like the lense rings are not being squashed at an angle - DTG delivers all features that's necessary to create correct models and lighting effects - if the developer knows how to use them). And having one loco with and one without is even more strange.
    4.png

    This is just a small example of the many things that are wrong with DTM locos, which are very amateurishly done in that respect. And very annoying, because you can't use the loco for screenshots due to that terrible flare.
     
    Last edited by a moderator: Jun 27, 2023
  2. Brickrail782

    Brickrail782 Active Member

    Joined:
    Sep 22, 2018
    Messages:
    227
    Likes Received:
    76
    "So, some pictures of a "textbook" correctly done loco (back when DigitalTrainModel was quite awesome... the UP Turbine!)"

    I thought that particular GTEL model was done by Dovetail themselves?
     
    • Helpful Helpful x 1
  3. mfeets

    mfeets Well-Known Member

    Joined:
    Oct 17, 2021
    Messages:
    330
    Likes Received:
    511
    Yeah, that's not the DTM turbine.
     
    • Helpful Helpful x 1
  4. torfmeister

    torfmeister Guest

    You're right, the other GTELs are from DTM - that "textbook" model was of course done by DTG and the great Ricardo "Reppo" Riveira. (Love the rumbling control stand when the turbine is running, and the fact you're not alone in the cab). I should have gotten a bit suspicious when writing the OP... :)

    Thanks for pointing that out, adjusted the post.
     
    Last edited by a moderator: Jun 27, 2023
  5. kiski

    kiski Member

    Joined:
    Apr 27, 2018
    Messages:
    92
    Likes Received:
    58
    torfmeister
    There´s not much to react on. My clarification in previous post in other topic was about Headlight texture option and what is affected by it. You wrote that it affect only Lens Flare, but that´s not true, because it affect Primary Flare, too. That´s all.

    On contrary, I like those "starry light flare images" - simply because you can see them on almost every light source (maybe except some dimmed ones) when looking at it. But it must be used wisely, as a Primary Flare, where you can adjust its parameters like starting size, final size, intensity, fade start, etc... If correctly set, they will fade pretty soon as you increase the camera distance from loco, thus it won´t make your screenshots "ugly" anymore ;)
     
  6. torfmeister

    torfmeister Guest

    You can only see them through a camera lens using Star4, Star6 or other filters, or some spectacles - not your plain eyes, because it is a glass refraction phenomenon.

    All I'm pointing out is, that if done correctly, we can choose to have flares or not - but not losing the lights altogether, which is a case of bad modelling. This is what I have tried to prove here.
     
    Last edited by a moderator: Jun 27, 2023
  7. kiski

    kiski Member

    Joined:
    Apr 27, 2018
    Messages:
    92
    Likes Received:
    58
    torfmeister
    You have proved it, no doubt. And I have proved that Headlight Flares are not just Lens flares, but also a Primary flares, according to a headlight blueprint section. We both have right. For me - subject closed :D
     
  8. torfmeister

    torfmeister Guest

    All a matter of design :)
     
    • Like Like x 1
  9. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    I don't mind Headlight flares if they're done right (subjective what "right" is I know, but torfs DTM example above is very very wrong) but I absolutely do not want the lens flare effect.
    The two should be a completely separate instance in regard to the .TgPcDx the blueprints and checkmarks in the menu.
     
  10. torfmeister

    torfmeister Guest

    Yeah, I also had 749006 in mind when writing this, as he's avoiding any loco using headlight flares - but if it's done correctly the player has the choice to use them, they're not all unusable for you Peter :)
     
  11. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    The thing I find strange with Peters dislike of them is it seems to be based solely on the frame drop, that frame drop for me is roughly 4 fps (on LIRR with a.i. at New York Penn), hardly a game breaker imo.
     
  12. kiski

    kiski Member

    Joined:
    Apr 27, 2018
    Messages:
    92
    Likes Received:
    58
    It can be a game breaker, if you have for example 10FPS on the beginning :D:D
     
  13. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    At which point the user should probably just stick to playing Solitaire.. :D:D:|
     
  14. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,068
    Likes Received:
    3,141
    It is not solely on frame rates but the strange effects I get with the lights of some locos.
    I think the HRQ Taurus lights are strange when I have Light Flares Enabled.

    And the light of some locos/units that are coming towards you are distorted.
     
  15. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Ahh, fair enough, I thought I'd only noticed you comment on fps, yes visuals are a major issue if they're not done well.
     
  16. ctlee#2068

    ctlee#2068 Active Member

    Joined:
    Feb 21, 2023
    Messages:
    184
    Likes Received:
    127
    Pegnitztalbahn BR612 also missing light texture.
     

Share This Page