YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
13 stars 5 forks source link

In-Game: Hard Drop Shadow with an offset on a tile layer stops drawing the shadow once its tile goes off-screen #5811

Closed FieldCodeFarmer closed 2 weeks ago

FieldCodeFarmer commented 3 weeks ago

Description

I used 16 automap in the room, hard drop shadow on the tiles and offset 64, 64. As a result, the part beyond the screen is not drawn. image image

https://github.com/YoYoGames/GameMaker-Bugs/assets/98365859/cd106177-03da-4b72-b254-42f54d225650

bug.zip

Expected Change

No response

Steps To Reproduce

  1. Start GameMaker
  2. create room
  3. create tile and draw any
  4. use [filters & effects] [hard drop shadow]
  5. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.4.0 (Monthly)

Which platform(s) are you seeing the problem on?

Windows

Contact Us Package Attached?

Sample Project Added?

JonnoRobson commented 2 weeks ago

I'm going to close this issue for now as the issue described is not something that is solvable in the context of the Hard Drop Shadow filter. The filter is applied in screen space, once the layer it is on has been drawn to the screen. This means anything that is not drawn to the screen cannot produce a drop shadow. If you need off screen objects to produce a drop shadow you'll need to look into other methods that draw the drop shadow during the drawing of the layer rather than as a post processing filter.