Smooth signal lamp transitions Patch
#1
Posted 26 April 2020 - 09:35 AM
If all looks good, I will submit a Trello request and GitHub PR.
#2
Posted 26 April 2020 - 10:15 AM
YoRyan, on 26 April 2020 - 09:35 AM, said:
If all looks good, I will submit a Trello request and GitHub PR.
Elegant, nice work.
#4
Posted 26 April 2020 - 10:54 AM
#5
Posted 26 April 2020 - 10:56 AM
ebnertra000, on 26 April 2020 - 10:54 AM, said:
Good point. Should be considered. Smooth Transition for incandescents though.
#6
Posted 26 April 2020 - 11:21 AM
How about an additional property in the sigcfg.dat file, like this?
LightsTab ( ... LightsTabEntry ( "Red Light" colour ( 255 255 16 16 ) OnOffTime ( 0.5 ) // or 0, 1, 1.5, etc. ) )
To be honest, it's such a nice effect that I'd like all signals to transition by default. ^_^
#7
Posted 26 April 2020 - 11:40 AM
YoRyan, on 26 April 2020 - 11:21 AM, said:
How about an additional property in the sigcfg.dat file, like this?
LightsTab ( ... LightsTabEntry ( "Red Light" colour ( 255 255 16 16 ) OnOffTime ( 0.5 ) // or 0, 1, 1.5, etc. ) )
To be honest, it's such a nice effect that I'd like all signals to transition by default. ^_^
This is WAY out of my experience, but aren't all the new OR parameters that modify or are added to existing MSTS files supposed to start with ORTS...or does that not apply to sigcfg.dat files...just asking?
#8
Posted 26 April 2020 - 11:45 AM
In summary - new sigcfg.dat property that defaults to 0.5 seconds.
#9
Posted 26 April 2020 - 12:03 PM
yes, all ORTS specific parameters are required to start with ORTS... you couldn't know that, but your learning curve is steep ;)
I also thought at leds, and so I agree in having a parameter to define transition time.
#10
Posted 26 April 2020 - 06:10 PM
SignalTypes ( ... SignalType ( "BNSF3Light" SignalFnType ( NORMAL ) SignalLightTex ( "BNSF ltex" ) SigFlashDuration ( 0.5 0.5 ) ORTSOnOffTime ( 1.0 ) // in seconds ... ) ... )
Once again, defaulting to 0.5 seconds if not explicitly specified.