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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.