infestation with fog

Racer1Racer1 Join Date: 2002-11-22 Member: 9615Members
It would be great to see a heavy fog, perhaps 2 feet high -- high enough for skulks to sneak around in (perhaps with crouch?), but low enough that they couldn't just run around and not be seen. I don't know if the game engine would support it, though.

For balance, here are a few options:
- so not present initially - maybe available at second hive as an upgrade
- require a gorge to replenish the fog
- tied to a specific structure

Comments

  • Dank McShwaggerDank McShwagger Join Date: 2009-06-10 Member: 67784Members
    I agree a fog effect around DI would look nice but I don't think it needs to do anything extra to the game play.
  • TigTig Join Date: 2010-05-08 Member: 71674Members, Reinforced - Shadow, WC 2013 - Silver
    disagree. mapper's choice please.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    And then the flamethrower ignites the fog, roasting any hapless skulks who may be hiding.
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    I'm thinking the fog would be too soggy to burn easily.
  • Chris0132Chris0132 Join Date: 2009-07-25 Member: 68262Members
    Fog is kinda an intensive effect however you do it, volumetric fog is expensive, and large scale particle fog is probably even worse.

    Not sure if you could practically get it to work on a placeable structure, because nothing stops you placing tonnes of it and melting the GPU.

    Better as a location specific effect I think.
  • Soylent_greenSoylent_green Join Date: 2002-12-20 Member: 11220Members, Reinforced - Shadow
    edited April 2011
    <!--quoteo(post=1840653:date=Apr 12 2011, 06:58 AM:name=Chris0132)--><div class='quotetop'>QUOTE (Chris0132 @ Apr 12 2011, 06:58 AM) <a href="index.php?act=findpost&pid=1840653"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Fog is kinda an intensive effect however you do it, volumetric fog is expensive, and large scale particle fog is probably even worse.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Linear, constant density fog volumes shouldn't be that terribly expensive unless you have massive overdraw(think crepuscular rays streaming from a grating in the ceiling. so that many slices of fog, each covering much of the screen, gets drawn).

    There may be precision issues(which I believe could be worked around quite easily if they occur), but I think you could just render the fog volume to a floating point buffer(lets call it the "fog buffer") in two steps. First step is to have z-writes off, z-culling on, backface culling on; backfaces don't get rendered. Second pass you have z-writes off, z-culling on and front-face culling on so only back-faces get drawn. The first pass adds fog that extends from the front faces all the way back to the z-value in the z-buffer, the second pass takes fog away. Since the back-faces are always further away on any model in which normals face the correct direction you always get the correct sign on fog; in any closed mesh there are as many backfaces covering any given pixel as there are front faces(any ray that goes into the model must come out, if it goes into the model twice it must come out twice).

    There is a corner case you have to deal with, being inside the fog volume. If the entire fog volume is completely behind you you don't have to render it; but if you could be inside it you should render faces even if they are behind you, using the z-value of the near clip plane or the z-value of the of the fragment, whichever is bigger.

    If you can see all the way to the far z-clip, then the cancellation error might cause unacceptable banding for thin fog volumes. In that case, find a z-value that is just behind the fog volume being rendered; when rendering, select the smallest value between the z-buffer and your z-max value in the pixel shader.

    Since it's linear, you can render the fog volumes in any order you wish and with any fog density or colour you wish without conflict.

    Each infestation patch could then use 1 or 2 fog volumes. 2 fog volumes probably looks a bit nicer. These fog volumes could simply be low-poly oblate spheroids centered on the middle of the infestation patch; the bigger fog volume being less dense and the smaller fog volume being more dense.

    <!--quoteo(post=1840653:date=Apr 12 2011, 06:58 AM:name=Chris0132)--><div class='quotetop'>QUOTE (Chris0132 @ Apr 12 2011, 06:58 AM) <a href="index.php?act=findpost&pid=1840653"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Not sure if you could practically get it to work on a placeable structure, because nothing stops you placing tonnes of it and melting the GPU.<!--QuoteEnd--></div><!--QuoteEEnd-->

    The game prevents you from placing infestation patches ontop of one-another. Distant fog volumes cover less pixels and should require much less bandwidth.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=1840641:date=Apr 12 2011, 03:16 AM:name=Align)--><div class='quotetop'>QUOTE (Align @ Apr 12 2011, 03:16 AM) <a href="index.php?act=findpost&pid=1840641"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I'm thinking the fog would be too soggy to burn easily.<!--QuoteEnd--></div><!--QuoteEEnd-->

    DI exhausts flammable fog, problem solved!
  • rhysjones81rhysjones81 Join Date: 2007-10-05 Member: 62548Members, Reinforced - Shadow
    I think it should just be a very simple basic effect which appears as a room becomes infested, the stronger the infestation the thicker the fog, definately a nice touch, what with all the current Hive effects in the game it will really look fantastic!
  • wulfwulf Join Date: 2008-08-03 Member: 64749Members
    Maybe just have some fog local to the hives? Add some more atmosphere to the already good looking hive
  • SilverwingSilverwing bulletsponge Join Date: 2003-11-23 Member: 23395Members, Constellation
    Hm, a sort of synthesis:

    Hives exude fog, as the hive grows (upgrades) the fog becomes denser and can be upgraded to act as a flame-retardant that extinguished aliens on fire or cuts the burn damage/time in half.

    Perhaps as an alternative upgrade, the fog could have umbra-esque qualities but far less. 1 in 10 perhaps.
Sign In or Register to comment.