Elvas Tower: Signal GLow - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Signal GLow A feature request Rate Topic: -----

#1 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 22 April 2017 - 02:45 AM

I want to say that can we have a feature of SIGNAL GLOW in NIGHT only.



#2 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,424
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 22 April 2017 - 04:08 AM

See this post.

Regards,
Rob Roeterdink

#3 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 12 August 2017 - 05:56 AM

View Postroeter, on 22 April 2017 - 04:08 AM, said:

See this post.

Regards,
Rob Roeterdink


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 User is offline   Jovet 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 2,250
  • Joined: 14-January 08
  • Gender:Male
  • Location:Omaha, Nebraska.
  • Simulator:MSTS/Open Rails
  • Country:

Posted 13 August 2017 - 01:39 PM

A tip for when posting contents of files: The formatting will be preserved if you include them as a "code" block. It will be easier to interpret and understand. You can select all the "code" text and click the <> button.

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 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 13 August 2017 - 11:40 PM

View PostJovet, on 13 August 2017 - 01:39 PM, said:

A tip for when posting contents of files: The formatting will be preserved if you include them as a "code" block. It will be easier to interpret and understand. You can select all the "code" text and click the <> button.

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 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,424
  • Joined: 25-October 11
  • Gender:Male
  • Country:

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 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 14 August 2017 - 02:48 AM

View Postroeter, on 14 August 2017 - 12:38 AM, said:

	SignalType ( "NF_PPL_HOME_LOW"
		SignalFnType ( SHUNTING )
		SignalLightTex ( "ltex" )
		ORTSDayglow( 4.0 )
		ORTSNightglow( 3.0 )

		SignalLights ( 7
etc...


Regards,
Rob Roeterdink


Thank You.
By the way 4.0 and 3.0 represents intensity or anything?


#8 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,424
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 14 August 2017 - 03:17 PM

View PostSumit Singh, on 14 August 2017 - 02:48 AM, said:

Thank You.
By the way 4.0 and 3.0 represents intensity or anything?

Yes - the higher the value the more intense the light. What value suits you best is a matter of trial and error (and personal preference).

Regards,
Rob Roeterdink

#9 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 15 August 2017 - 01:59 AM

View Postroeter, on 14 August 2017 - 03:17 PM, said:

Yes - the higher the value the more intense the light. What value suits you best is a matter of trial and error (and personal preference).

Regards,
Rob Roeterdink

Yes , working peacefully now.
Looks natural in simulation.
Thank You for the efforts


#10 User is online   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 15 August 2017 - 12:00 PM

View PostSumit Singh, on 14 August 2017 - 02:48 AM, said:

Thank You.
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. :)

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users