How do i make fog in the needed place and make players don't be able to see through it?

Hello everyone! So, i’m making a game like lethal company. In original players can see fog in the building which makes players see things on small distance:

How do i achieve that effect? I tried the classic fog, but i want to find a better way to do it. And is there an way to make fog brighter on the light?

5 Likes

Have you tried using the atmosphere instance?

2 Likes

Atmosphere makes fog around player, but as you can see in photo there is steam that makes players see bad
And also atmosphere ruins the graphics i made with lighting (without atmosphere)

4 Likes

I see. Another method is to use particle emitters around the player. It doesn’t sound like the most performance-friendly solution though.

2 Likes

I already wrote that i tried using it, but i wanted to know if there is something better, beacuse player can make low graphics and fog will almost dissapear, but i dont want that

2 Likes

Uuh no you didn’t. You only mentioned the legacy fog and atmosphere.

1 Like

Sorry, my bad. Saying classic fog i meant the roblox fog instance and particles

2 Likes

Or is there any way to make fog don’t become more transparent (beacuse some particles dissapear) when player makes lower graphics?

1 Like

I don’t know how particles work that much, so I can’t help you there.

Lethal Company uses Volumetric Fog. Which Roblox does not have, primarily because it’s quite hardware intensive. Lethal Company gets away with it because of some rendering trickery.

Volumetric fog effectively replicates how fog would act in real life. So lights will have trouble shining through thick fog and just generally making it harder to see.

You can try doing stuff with Atmosphere and some other trickery, but it’ll probably be pretty hard to replicate volumetric fog.

1 Like

Well, atmosphere breaks my graphics frm lethal company, so i can’t use atmosphere. Thanks for replying

2 Likes