Sign in to follow this  
LordBarbadass

Container cacheAsBitmap makes a weird diagonal line

Recommended Posts

Hi, I'm new to Pixi and couldn't find anyone with the same problem so here I am.

I have a container full of black squares (drawn with Graphics) to hide parts of the map, like a fog of war. Some have their alpha set to 0 to reveal what's underneath (I know there are a million better ways to do that but MVP first, optimizations later).

The problem is when I set

cacheAsBitmap = true

on the container, a weird diagonal line appears.

1649158312_Screenshot_2018-12-06RougeSnake.png.65fb07b1f210fafc166e5b1ef420995b.png

This container can be very big and doesn't change much so it makes sense to cache it. Is there something I'm missing or is this a bug?

I am literally doing nothing else to it, it'a at 0,0 of the parent container (the stage) and just contains Graphics objects.

I'll try to reproduce the issue in a Codepen, thanks to anyone who can help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.