[Solved] Effects don't apply to tilemaps

Effects dont work on tilemaps

its that simple they dont work

Indeed, there are not, thanks for pointing it out. I’m looking into it

Here are our conclusions:

  • How we implemented tilemaps is optimized to that they can scale without overloading the GPU: a single texture (the atlas image) is loaded and then cut and recomposed as the tilemap
  • Pixi does not allow to apply filters directly on the tilemap. To have filters applied to a single tilemap object, it would require:
    • Rendering the tilemap on an intermediary sprite
    • then applying the filters on the spite.
      The issue with this is that it cancels the previous optimization and loads a big image in memory.

So unless there’s a way to do it in Pixi without sacrificing the optimization, we won’t support effects on tilemap for the time being.
As a workaround, you can put the tilemap in a layer and apply effects on that layer.

Hope that helps!

EDIT:
The “Effects” tab in the object properties of the tilemap objects will be removed in the next version.

2 Likes

What if tilemaps will have “effects support” function? Is it hard to do? Like “Effect support for tilemaps, not recommended. Makes tilemaps more unstable and hard to render.”

Personally, as a user, I’d rather it not be an option.

If you move the tilemap to a separate layer you can apply effects to the layer with the tilemap on it, so experienced users can still apply effects to their tilemap, but inexperienced users can’t accidentally tank the framerate of their game.

2 Likes