View Full Version : fog
smace
04-06-2003, 11:06 AM
I am trying to learn the @fog command. I know the format ( in rw) is fog(start,stop,r,g,g), but what do start and stop mean? Does mean the fog begins here at 0 and goes until stop, or is it a measure of how thick the fog is? How do you turn fog off?
Meeshu
04-06-2003, 11:35 AM
@Fog (Start, End, Red, Green and Blue)
First, I have not actually used this command (yet), but my interpretation is:
Start is the distance in meters from the beginning of the route where the fog actually takes effect.
End is the distance in meters from the beginning of the route where the fog no longer has an effect.
Outside the limits of Start and Stop is where the fog is "off".
Does that help?
jantorre
04-06-2003, 01:14 PM
Start: How many metres from the cab the fog starts
End: How many metres from the cab the fog ends
@fog (20,100,140,140,140)
This will give a greyish fog, The fog starts 20 metres ahead, and you can see 100 metres ahead.
The fog will continue until you stop it with a code like this:
@fog (0,0,0,0,0)
or
@fog (0,0)
Not totally shure about that; test it youre self ;-)
Sorry for my bad english
Jan-Tore
smace
04-06-2003, 04:50 PM
@fog (0,0,0,0,0) is indeed the stop command and the others seem to work also. Thank you.
jgulbis
04-06-2003, 05:31 PM
Here's an example of code I used for lighting effects for sun shining into a tunnel exit. The fog appears very gradually and starts to disappear before the tunnel exit just enough for the sky to appear only slightly affected by the fog. Before the train enters the next tunnel, the fog is almost completely gone.
;Gradual onset of fog visible in the distance in tunnel before station
04625, .fog 400;3000;255;255;255,
04650, .fog 300;2000;255;255;255,
04675, .fog 200;1500;255;255;255,
04700, .fog 175;1000;255;255;255,
04725, .fog 150;1000;255;255;255,
;Station
04750, .fog 125;1000;255;255;255, .sta Station;;;0;1;0;0;;2;50;
04775, .fog 100;1000;255;255;255,
04800, .fog 75;1000;255;255;255,
04825, .fog 50;1000;255;255;255,
04850, .fog 25;1000;255;255;255,
04875, .fog 0;1000;255;255;255,
04892, .stop 0;
Station exit / tunnel entrance
04900, .fog 0;800;255;255;255,
04925, .fog 0;600;255;255;255,
04950, .fog 0;400;255;255;255,
04975, .fog 0;300;255;255;255,
05000, .fog 0;400;255;255;255, ;fog starts to disappear in order for the sky to appear normal when exiting the tunnel.
05025, .fog 0;500;255;255;255,
05050, .fog 0;650;255;255;255,
05075, .fog 0;1000;255;255;255,
05100, .fog 0;1500;255;255;255,
;Tunnel exit, fog gradually disappears from front of cab while sky is unaffected.
05125, .fog 0;2000;255;255;255,
05175, .fog 50;1900;255;255;255
05200, .fog 100;1800;255;255;255
05225, .fog 150;1700;255;255;255
05250, .fog 200;1600;255;255;255
;Tunnel entrance, no fog
05275, .fog 0;0;0;0;0,
smace
04-06-2003, 07:35 PM
That is actually the effect I was looking to do.
I ghave your T1 for BVE. Did you ever create a Toronto route to run it on?
Stooopid_person
04-07-2003, 03:53 AM
If you put the numbers, the end number is smaller than the start, it will create a kind of wall.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.