NPC shadows from high ledges pass through walls (not occluded) and stack inside world shadow with a different colour #32

Closed
opened 2026-11-18 11:38:19 +00:00 by vekien · 1 comment

Version: 2026.11.17-09b0d15 (Windows/amd64)
Server: server.catseyexi.com (Native loader)
Location: Southern San d'Oria (zone 230), below the wall near Home Point #2 (J-9). NPC Cahaurme is standing on top of the wall, ~12.7 yalms away.
System: NVIDIA GeForce RTX 5070 Ti Laptop GPU (driver 32.0.16.1692), D3D12 backend.
Graphics config: shadows Medium (world 4096² ±180y, actor 2048² ±24y, 3x3 taps).
Related: #19 (shadow-in-shadow double darkening), #31 (target circle stretching off ledges, same spot)

Description

An NPC standing high up on top of a wall casts a shadow down onto the plaza floor below, on the far side of the wall (circled). Two problems:

  1. Not occluded by the wall: the NPC's shadow passes through the solid wall/battlement it's standing on and lands on the ground below. The wall itself is already casting a shadow over that area, so the sunlight can't reach the NPC's shadow position through it.
  2. Shadow-in-shadow with a different tone: the NPC's shadow is drawn inside the wall's shadow as a darker blob with a different shadow colour from the surrounding world shadow, the same issue as #19. Shadows don't stack: an area that's already in shadow can't get darker from a second occluder.

Possible cause

The actor shadow map (2048², ±24y) seems to be applied on its own, without considering world occluders between the actor and the receiving surface, and without being combined with the world shadow term:

  • The actor shadow pass only contains actors, so the receiving surface can't tell that the wall blocks the light before it reaches the actor's shadow. Either render static world occluders into the actor shadow map as well, or test the receiver against the world shadow map first and skip actor shadowing for pixels the world already shadows.
  • Combine the two as a single visibility term (min(world, actor)) with one shadow colour, rather than darkening twice / tinting differently.

I had a very similar problem in another FFXI client I've worked on (VanaCore), where shadows ignored walls, and fixed it. Happy to share how that was solved.

Steps to reproduce

  1. Southern San d'Oria near Home Point #2 (J-9), daytime, shadows on.
  2. Stand on the plaza below the wall where Cahaurme stands on top.
  3. Cahaurme's shadow shows on the floor below, through the wall, darker than the wall's shadow.

Log

[shadow] quality Medium: world 4096^2 (+-180y), actor 2048^2 (+-24y), 3x3 taps

Screenshot

npc-shadow-wall

**Version:** 2026.11.17-09b0d15 (Windows/amd64) **Server:** server.catseyexi.com (Native loader) **Location:** Southern San d'Oria (zone 230), below the wall near Home Point #2 (J-9). NPC **Cahaurme** is standing on top of the wall, ~12.7 yalms away. **System:** NVIDIA GeForce RTX 5070 Ti Laptop GPU (driver 32.0.16.1692), D3D12 backend. **Graphics config:** shadows Medium (world 4096² ±180y, actor 2048² ±24y, 3x3 taps). **Related:** #19 (shadow-in-shadow double darkening), #31 (target circle stretching off ledges, same spot) ### Description An NPC standing high up on top of a wall casts a shadow down onto the plaza floor below, on the far side of the wall (circled). Two problems: 1. **Not occluded by the wall:** the NPC's shadow passes through the solid wall/battlement it's standing on and lands on the ground below. The wall itself is already casting a shadow over that area, so the sunlight can't reach the NPC's shadow position through it. 2. **Shadow-in-shadow with a different tone:** the NPC's shadow is drawn *inside* the wall's shadow as a darker blob with a different shadow colour from the surrounding world shadow, the same issue as #19. Shadows don't stack: an area that's already in shadow can't get darker from a second occluder. ### Possible cause The actor shadow map (2048², ±24y) seems to be applied on its own, without considering world occluders between the actor and the receiving surface, and without being combined with the world shadow term: - The actor shadow pass only contains actors, so the receiving surface can't tell that the wall blocks the light before it reaches the actor's shadow. Either render static world occluders into the actor shadow map as well, or test the receiver against the world shadow map first and skip actor shadowing for pixels the world already shadows. - Combine the two as a single visibility term (`min(world, actor)`) with one shadow colour, rather than darkening twice / tinting differently. I had a very similar problem in another FFXI client I've worked on (VanaCore), where shadows ignored walls, and fixed it. Happy to share how that was solved. ### Steps to reproduce 1. Southern San d'Oria near Home Point #2 (J-9), daytime, shadows on. 2. Stand on the plaza below the wall where Cahaurme stands on top. 3. Cahaurme's shadow shows on the floor below, through the wall, darker than the wall's shadow. ### Log ``` [shadow] quality Medium: world 4096^2 (+-180y), actor 2048^2 (+-24y), 3x3 taps ``` ### Screenshot ![npc-shadow-wall](/attachments/cc93aa7c-eb12-420b-8766-113ce7e36188)
Owner

Fixed in 11_18_03

Fixed in 11_18_03
Sign in to join this conversation.
No labels
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
Banggugyangu/Zantetsuken-Releases#32
No description provided.