kensaundm31@Posted: Sat Dec 29, 2007 9:43 am :
I've want to use fog in my map but the 'basicfog' is a little bland. I've read the BloodRayne fog tutorial but I don't want a 'real fog' I just want a basic fog but with a cloudy texture with scrolling.

I copied the 'basicfog' entry in fogs.mtr:

Code:
fogs/mytestfog
{
   fogLight         // tell the engine it is fog and not a light
   noShadows
   {
      map      _fog   // the internal fog image
      colored         // take rgba from entity shaderparms
   }

(and added this from the tutorial:)
   {
         blend filter
         map       lights/cloudscroll.tga
             scroll       time * 0.02, 0
   }

}

Which didn't do anything. So I canabalised more from the tutorial:

fogs/mytestfog
{
   blendlight         
   noShadows

   {
      blend add
      map      textures/lights/squarelight.tga   // the internal fog image
      zeroclamp   // make sure it doesn't bleed over the edges

      //colored         // take rgba from entity shaderparms
   }

   {
         blend filter
         map       lights/cloudscroll.tga
        scroll       time * 0.02, 0
   }

}

Now this made the cloudscrolling work but the fog was replaced with blackness. I used squarelight.tga because I figure it already has an alpha channel, allthough when I looked at it in photoshop it just had 'background' but I figured it was because it had been 'flattened' like I'have read in a few tutorials.

Also in doomedit the picture window in 'light editor' was black.

Can someone please tell me how to have a standard fog with a cloudy texture that scrolls.