Specific fog for specific place?

Hi! Is there anyway to put specific fog for specific area? Like this place doesn’t have fog but the other area have fog? Thanks!

Hello, your post is very unclear!

Are you talking about a Place-Instance of a specific area in your game/place?

Oh im sorry. What i mean is specific area in my game.

Try using Region3 and a client-sided “Local Script”, then change whatever you want in there when the player is in that region!

You can find a very easy tutorial for Region3 here:

1 Like

Right now if you’re looking to highlight a specific place with fog but don’t want fog in the “non-foggy” region, there is no native way to do that. It’d require a lot of handiwork from you.

All methods of applying distance obscuring right now, whether you’re using FogEnd or Atmosphere, will apply at a distance according to the camera position. Atmosphere tries to blend fog smartly with your environment but otherwise no, for example, you can’t have an outside area with close fog and also have the inside area have no fog at all. The inside area would also be fogged.

If you’re looking for changing the fog based on the area, the above method would be good (though I personally recommend downcasting since it’s far less computationally expensive). If you’re looking to change fog based on the above example of inside/outside, then you would need to determine the orientation of the viewport and which area is in focus, then accordingly change the distance of the fog.

I have absolutely no clue how to do the latter option above, other than knowing what goes into doing it.

1 Like