Xonotic Forums

Full Version: How to add fog in Xonotic map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, how to place fog in a map? I can't find func_fog or fog texture.
You will need to hover over worldspawn and press "N" for the menu
ONLY WORLDSPAWN, NO OTHER
(11-03-2020, 02:27 PM)Kotangens Wrote: [ -> ]You will need to hover over worldspawn and press "N" for the menu
ONLY WORLDSPAWN, NO OTHER

Uhhh..it was so easy..thank you!!

EDIT:

Since my fog brush was covering all the entities I had to apply a shader also, otherwise I was getting this error:


Code:
no entities in open -- no filling 
MAP LEAKED


This is my fog shader script:


Code:
textures/fogs/fog
{
    qer_editorimage textures/fogs/fog.tga
    surfaceparm trans
    surfaceparm nonsolid
    surfaceparm nodrop
    surfaceparm fog
}


and this is my key in the worldspawn brush:

fog 0.2 0.1 0.1 0.1 0.9
Do fog-brushes actually work? My last information is that xon doesn't support them. Only the global shadow.
The only fog supported by DarkPlaces engine is global fog. It means that it does not support anything related to brush/shader fog.

Global fog is set in Worldspawn entity or in mapname.mapinfo file:

fog <density> <red> <green> <blue> [<alpha> <mindist> <maxdist> <top> <fade-height>]


    density - how much fog to add per distance, this is virtual value. 1 means very strong fog.
    red - red component of fog color
    green - green component of fog color
    blue - blue component of fog color
    alpha - fog effect opacity (default is 1)
    mindist - distance to start applying fog at
    maxdist - maximal distance apply fog at
    top - origin of height plane at worldspace (game units)
    height - fog height fade in game units