OreCruncher / BetterRain

Based on the BetterRain mod from Wirsbo
20 stars 12 forks source link

Fog returns to default when under a roof #61

Closed ItsTheKais closed 8 years ago

ItsTheKais commented 8 years ago

The view from right in front of a building: 2016-02-06_17 18 49

If I take a step back so I'm under the overhanging roof: 2016-02-06_17 18 45

Going in and out of buildings frequently makes the atmosphere a little bit spasmodic, with the fog zooming out and back in and cycling between blue and brown over and over again.

OreCruncher commented 8 years ago

Yes. Right now I do not have a good solution. When you are inside a building you are actually in the "Inside" fake biome that does not have dust, fog, etc. attached to it. What you are experiencing is the fade in/out when transitioning biomes. The reason for the "Inside" biome is so when a player builds a structure, or is in a structure, in a desert biome the fog shouldn't be present on the inside.

(Inside is defined as having 50%+ blocks above the players head in an area. Your overhang plus the buiilding behind you matches the 50% requirement.)

OreCruncher commented 8 years ago

I changed how things work with "inside". As a result:

So, how does this work. When 100% covered by blocks the fog line starts 15 blocks further away. This gets the fog out of the structure, which is what I am wanting. If standing outside under the eave of the building coverage is roughly 50% meaning the fog line is pushed out 7 blocks (i.e. it gets foggier). 0% ceiling coverage means normal fog effect.

This change will be in the next BETA.

EDIT: Should also point out that if you look out a window in a structure the fog will be there preserving the ambiance. It's just rendered a little bit further away.

OreCruncher commented 8 years ago

Posted BETA with this change: http://minecraft.curseforge.com/projects/dynamic-surroundings/files