Jump to content

Problem with fog


Recommended Posts

Posted

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.

shot2025-05-11_15-08-20.jpg.c92e32ef4c79bfdb970fd939efe6fddc.jpgshot2025-05-11_15-08-02.jpg.3a5009cf33a23a7ad14f61e65a81a1f2.jpg

Posted

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!

Posted

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 likes this
Posted

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)image.jpeg.e64886830799ae2b2eded05e1461b694.jpeg

 

 

 

shot2025-05-12_20-59-54.jpg

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...