Weather: rain falls inside under a sloped roof (about a metre past the roof surface) #1145

Open
opened 2026-10-27 12:10:08 +00:00 by sky_line · 2 comments
Owner

Rain falls inside a closed attic, about a metre in from the roof: the streaks appear under the sloped roof and fall onto the floor near the walls and in the middle of the room (screenshot below; dev build 2026-10-27, parcel rain). The same build shows streaks falling through a lower room's walls and floor as well.

What keeps rain out today: the weather occlusion map (#783, RenderVKWeatherOcclusion 1): a top-down depth map around the camera (coarse cascade of about half-metre texels plus the near cascade, RenderVKWeatherNearCascade 1, refreshed every RenderVKWeatherOcclusionInterval = 30 frames or on a cell change). The roof here is a steep, thin, sloped surface, so a streak can be about a metre inside it and still be let through.

Suspects to check:

  • Texel resolution or depth bias at a steep slope: under a 45-60 degree roof, half a metre horizontally is up to a metre vertically, so a coarse texel or a soft edge filter reads 'open sky' for points under the roof.
  • Which point of the streak is tested: the head, the tail, or a point offset along the wind.
  • Whether the roof faces are in the map at all: single-sided or back-face-culled faces seen from above, or alpha-masked faces.

Check with the occlusion debug view if there is one, else dump the map, and compare it with the roof's height in this room.

Test: in this attic (and a room under a pitched roof generally) with steady rain, no streak appears below the roof; rain still falls right up to the eaves outside.

attic rain

Rain falls inside a closed attic, about a metre in from the roof: the streaks appear under the sloped roof and fall onto the floor near the walls and in the middle of the room (screenshot below; dev build 2026-10-27, parcel rain). The same build shows streaks falling through a lower room's walls and floor as well. **What keeps rain out today:** the weather occlusion map (#783, `RenderVKWeatherOcclusion` 1): a top-down depth map around the camera (coarse cascade of about half-metre texels plus the near cascade, `RenderVKWeatherNearCascade` 1, refreshed every `RenderVKWeatherOcclusionInterval` = 30 frames or on a cell change). The roof here is a steep, thin, sloped surface, so a streak can be about a metre inside it and still be let through. **Suspects to check:** - **Texel resolution or depth bias** at a steep slope: under a 45-60 degree roof, half a metre horizontally is up to a metre vertically, so a coarse texel or a soft edge filter reads 'open sky' for points under the roof. - **Which point of the streak is tested:** the head, the tail, or a point offset along the wind. - **Whether the roof faces are in the map at all:** single-sided or back-face-culled faces seen from above, or alpha-masked faces. Check with the occlusion debug view if there is one, else dump the map, and compare it with the roof's height in this room. **Test:** in this attic (and a room under a pitched roof generally) with steady rain, no streak appears below the roof; rain still falls right up to the eaves outside. ![attic rain](https://git.slipstreamviewer.org/attachments/7ae8761f-8144-4d28-ab88-a03db280a25f)
sky_line added this to the Slipstream project 2026-10-27 12:10:08 +00:00
Collaborator

Fixed in main by ae2b972c16.

Fixed in main by ae2b972c16.
Author
Owner

Reopened: 1.4.5 has the first part (rain no longer falls far inside), but rain still reaches inside under a sloped roof in strong wind. Follow-ups on dev: the weather map now draws without the depth bias, and the fine map is centred so a raised room (an attic) stays on it under a strong wind tilt. Testing continues.

Reopened: 1.4.5 has the first part (rain no longer falls far inside), but rain still reaches inside under a sloped roof in strong wind. Follow-ups on dev: the weather map now draws without the depth bias, and the fine map is centred so a raised room (an attic) stays on it under a strong wind tilt. Testing continues.
sky_line reopened this issue 2026-10-27 22:43:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1145
No description provided.