jo_the_rooster Posted May 11 Posted May 11 Hey everyone, I'm trying to limit the player's visibility on my map by placing a piece of dense fog. The problem is, from the outside the fog looks more like a wall, which doesn't look very nice. I tried messing with the shader but no luck so far. Here's my shader: textures/fogs/silentfog_border { qer_editorimage textures/fogs/fog.tga surfaceparm nonsolid surfaceparm nonopaque surfaceparm fog fogparms ( 0.89 0.89 0.89 ) 200.0 } Anyone know a way to make fog more believable? Thanks in advance.
NAB622 Posted May 11 Posted May 11 I don't believe there is any way around this. I always used corners and hallways to eliminate the visibility of those fog walls. If anyone else has a solution, I'm all ears too!
Lazarus Posted Monday at 01:26 PM Posted Monday at 01:26 PM Depends if your map is only exterior or not. I have seen someone in the old map-center / map-craft community do this trick once where they create a rounding fogcull always arround you, it wont show up as a pure wall, but it always surrounds you. I do believe its map wide though, since its worldspawn, You wont really see edges then. I am trying to find it. He did it i believe with the worldspawn key fog entity. (you can set up a fog keyas far as i know in the worldspawn, it applies then to the whole map). Dont forget to add farclip distance so you can set the fog distance before it is thick like peasoup. This works great on outdoors, but not if there is an interior, since the fog is applied there too. I doubt volumetric shaders allow for gradual (since its already gradual) for a blend of long edge to slow edge... What are you hiding? Droidy365 and jo_the_rooster like this
Lazarus Posted Monday at 06:56 PM Posted Monday at 06:56 PM Okay, got home and played with it, this is when you apply a fog to the worldspawn, i didnt play with the farclip propperty, but it surrounds you with fog as you see. (dont mind the red)
jo_the_rooster Posted Friday at 05:50 PM Author Posted Friday at 05:50 PM On 5/12/2025 at 1:26 PM, Lazarus said: Depends if your map is only exterior or not. I have seen someone in the old map-center / map-craft community do this trick once where they create a rounding fogcull always arround you, it wont show up as a pure wall, but it always surrounds you. I do believe its map wide though, since its worldspawn, You wont really see edges then. I am trying to find it. He did it i believe with the worldspawn key fog entity. (you can set up a fog keyas far as i know in the worldspawn, it applies then to the whole map). Dont forget to add farclip distance so you can set the fog distance before it is thick like peasoup. This works great on outdoors, but not if there is an interior, since the fog is applied there too. I doubt volumetric shaders allow for gradual (since its already gradual) for a blend of long edge to slow edge... What are you hiding? Expand I kinda need the fog to be in one exact place (where the map ends so the player wont see the edge) and the rest of the map i dont want to be as foggy. Guess i'll have to leave it as it is
NAB622 Posted Friday at 08:44 PM Posted Friday at 08:44 PM Sounds like a case for some creative solutions. Something to know, although it's probably out of your scope here.....a sky can be made seamless with the map. Here's a map that uses this technique (I think the source files are included, not sure):
Acrobat Posted Friday at 10:08 PM Posted Friday at 10:08 PM Nab-i deleted my skyportal. that used to be the case but the map is now like 10X larger so i got rid of it at some point. NAB622 likes this
Lazarus Posted Friday at 10:33 PM Posted Friday at 10:33 PM Sounds to me you need horizon blending... NAB622 likes this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now