Author Topic: A foggy request. Fog illuminated by dynamic lighting?  (Read 761 times)

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
A foggy request. Fog illuminated by dynamic lighting?
« on: March 19, 2016, 04:40:20 pm »


               

Has anyone done animated fog that takes on the color and falloff illumination of tileset lights?  Can it be done for dynamic placeable lights?  I have some fog placeable anim fog that works well, but it self illuminates, and while it looks great in some settings, when you want a dim fog, it does looks wrong glowing as it does.  I know that's asking a lot the this old engine, but...


 


 



               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
A foggy request. Fog illuminated by dynamic lighting?
« Reply #1 on: March 19, 2016, 06:09:18 pm »


               

AFAIK, fog doesn't and can't work like that in NWN.  If I understand what you're requesting, what you want would be "volumetric fog" and something like that would pretty much have to be done with a special shader.  Otherwise, that's more the realm of rendered CGI rather than game art.  However, you could certainly fake it with light halos, but those are going to have to be things you add into a scene by hand or to models.  I think fxpa_dot1.tga or fxpa_flarel.tga attached to a light with the right settings (or possibly emitter settings) would allow it to be "colored" by the light it's attached to and you shouldn't have to deal with self-illumination issues.  I mean, you can probably edit the settings of the existing models and/or TXI's you're already working with to at least get rid of the self-illuminated nature.


 


Moreso, you could probably mix dynamic (light) placeables and scripting to create some pretty nifty-looking dynamic scenes if you wanted.


 


Edit: FWIW, here's Sunjammer's package from the new Vault.



               
               

               
            

Legacy_3RavensMore

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +0/-0
A foggy request. Fog illuminated by dynamic lighting?
« Reply #2 on: March 19, 2016, 07:08:31 pm »


               

That gives me some ideas...thanks. 



               
               

               
            

Legacy_Oseryn

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
A foggy request. Fog illuminated by dynamic lighting?
« Reply #3 on: March 21, 2016, 11:49:51 pm »


               

Thanks for that link to Sunjammer's work. That's pretty useful and I never knew that existed until now.