BVE: fog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • smace
    Senior Member
    • Apr 2003
    • 481
    • .

    #1

    BVE: fog

    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

    #2
    RE: fog

    @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?

    Comment

    • jantorre
      New Member
      • Nov 1999
      • 9
      • Leikanger, Sogn&Fjordane, Norway.

      #3
      RE: fog

      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

      Comment

      • smace
        Senior Member
        • Apr 2003
        • 481
        • .

        #4
        RE: fog

        @fog (0,0,0,0,0) is indeed the stop command and the others seem to work also. Thank you.

        Comment

        • jgulbis
          New Member
          • Apr 2003
          • 18
          • Canada.

          #5
          RE: fog

          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,

          Comment

          • smace
            Senior Member
            • Apr 2003
            • 481
            • .

            #6
            RE: fog

            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?

            Comment

            • Stooopid_person
              1500 Post Veteran
              • Nov 1999
              • 1592
              • Planet Stooopid.

              #7
              RE: fog

              If you put the numbers, the end number is smaller than the start, it will create a kind of wall.

              Comment

              Working...