Signal GLow A feature request
#1
Posted 22 April 2017 - 02:45 AM
#3
Posted 12 August 2017 - 05:56 AM
roeter, on 22 April 2017 - 04:08 AM, said:
With reference to above link, I am not able to find the correct place to insert the code.
I guess it should be inserted somewhere after SignalType ( "xxx" ?
I am sharing you a small script of configuration as example to show me the correct use of this code.
SignalType ( "IND_2x_Automatic" SignalFnType ( NORMAL ) SignalLightTex ( "Main Light of Signal" ) SignalLights ( 3 SignalLight ( 0 "Red Light" Position ( 0 3.9 0.2 ) Radius ( 0.5 ) ) SignalLight ( 1 "Green Light" Position ( 0 4.2 0.2 ) Radius ( 0.5 ) ) SignalLight ( 2 "White Light" Position ( 0 2.77 0.28 ) Radius ( 0.32 ) ) ) SignalDrawStates ( 2 SignalDrawState ( 0 "Red" DrawLights ( 1 DrawLight ( 0 ) ) ) SignalDrawState ( 1 "Green" DrawLights ( 2 DrawLight ( 1 ) DrawLight ( 2 ) ) ) ) SignalAspects ( 6 SignalAspect ( STOP "Red" SpeedKPH ( 0 ) ) SignalAspect ( RESTRICTING "Green" SpeedKPH ( 20 ) ) SignalAspect ( APPROACH_2 "Green" SpeedKPH ( 110 ) ) SignalAspect ( APPROACH_3 "Green" SpeedKPH ( 110 ) ) SignalAspect ( CLEAR_1 "Green" SpeedKPH ( 110 ) ) SignalAspect ( CLEAR_2 "Green" SpeedKPH ( 110 ) ) ) SignalNumClearAhead ( 2 ) )
#4
Posted 13 August 2017 - 01:39 PM
SignalType ( "IND_2x_Automatic" SignalFnType ( NORMAL ) SignalLightTex ( "Main Light of Signal" ) SignalLights ( 3 SignalLight ( 0 "Red Light" Position ( 0 3.9 0.2 ) Radius ( 0.5 ) ) SignalLight ( 1 "Green Light" Position ( 0 4.2 0.2 ) Radius ( 0.5 ) ) SignalLight ( 2 "White Light" Position ( 0 2.77 0.28 ) Radius ( 0.32 ) ) ) SignalDrawStates ( 2 SignalDrawState ( 0 "Red" DrawLights ( 1 DrawLight ( 0 ) ) ) SignalDrawState ( 1 "Green" DrawLights ( 2 DrawLight ( 1 ) DrawLight ( 2 ) ) ) ) SignalAspects ( 6 SignalAspect ( STOP "Red" SpeedKPH ( 0 ) ) SignalAspect ( RESTRICTING "Green" SpeedKPH ( 20 ) ) SignalAspect ( APPROACH_2 "Green" SpeedKPH ( 110 ) ) SignalAspect ( APPROACH_3 "Green" SpeedKPH ( 110 ) ) SignalAspect ( CLEAR_1 "Green" SpeedKPH ( 110 ) ) SignalAspect ( CLEAR_2 "Green" SpeedKPH ( 110 ) ) ) SignalNumClearAhead ( 2 ) )
#5
Posted 13 August 2017 - 11:40 PM
Jovet, on 13 August 2017 - 01:39 PM, said:
SignalType ( "IND_2x_Automatic" SignalFnType ( NORMAL ) SignalLightTex ( "Main Light of Signal" ) SignalLights ( 3 SignalLight ( 0 "Red Light" Position ( 0 3.9 0.2 ) Radius ( 0.5 ) ) SignalLight ( 1 "Green Light" Position ( 0 4.2 0.2 ) Radius ( 0.5 ) ) SignalLight ( 2 "White Light" Position ( 0 2.77 0.28 ) Radius ( 0.32 ) ) ) SignalDrawStates ( 2 SignalDrawState ( 0 "Red" DrawLights ( 1 DrawLight ( 0 ) ) ) SignalDrawState ( 1 "Green" DrawLights ( 2 DrawLight ( 1 ) DrawLight ( 2 ) ) ) ) SignalAspects ( 6 SignalAspect ( STOP "Red" SpeedKPH ( 0 ) ) SignalAspect ( RESTRICTING "Green" SpeedKPH ( 20 ) ) SignalAspect ( APPROACH_2 "Green" SpeedKPH ( 110 ) ) SignalAspect ( APPROACH_3 "Green" SpeedKPH ( 110 ) ) SignalAspect ( CLEAR_1 "Green" SpeedKPH ( 110 ) ) SignalAspect ( CLEAR_2 "Green" SpeedKPH ( 110 ) ) ) SignalNumClearAhead ( 2 ) )
Done.
Please also provide a solution for the question
Thanks
#6
Posted 14 August 2017 - 12:38 AM
SignalType ( "NF_PPL_HOME_LOW" SignalFnType ( SHUNTING ) SignalLightTex ( "ltex" ) ORTSDayglow( 4.0 ) ORTSNightglow( 3.0 ) SignalLights ( 7 etc...
Regards,
Rob Roeterdink
#7
Posted 14 August 2017 - 02:48 AM
#8
Posted 14 August 2017 - 03:17 PM
#9
Posted 15 August 2017 - 01:59 AM
#10
Posted 15 August 2017 - 12:00 PM
Sumit Singh, on 14 August 2017 - 02:48 AM, said:
By the way 4.0 and 3.0 represents intensity or anything?
The glow itself is sized according to the formula: log_e(1 + max(0, distance - 100) / 40) * GlowFactor. The values you are inputting is the GlowFactor; this equates to the size at around 170m: (e - 1) * 40 + 100 = 168.73127313836180941441149885411.
In practice, just adjust to suit. :)