Pixi.js: PIXI v4 cacheAsBitmap issue

Created on 31 Aug 2016  路  7Comments  路  Source: pixijs/pixi.js

Not related to https://github.com/pixijs/pixi.js/issues/2831 although I have experienced that as well.

I'll see if I can create a fiddle for this later on today, but what I _think_ it is:

var container1 = new PIXI.Container();

var container2 = new PIXI.Container();
container2.addChild(someSprite1);
container2.addChild(someSprite2);
container2.cacheAsBitmap = true;
container1.addChild(container2);

container1.alpha = 0;

After this container2 doesn't seem to display no matter what the alpha is of container1.

馃暦 Bug

Most helpful comment

@paladizm Thanks for the fiddles. I never got round to writing them today.

All 7 comments

Cheers for this! A fiddle would be ace if you have a moment. 馃憤

My patch had fix for worldAlpha too, i just forgot to tell you about that. Its really easy to test, I think: before getLocalBounds you have to change parent worldAlpha for one moment, or change parent ot element.

I ran into this as well. Here are some fiddles,

v4:
https://jsfiddle.net/5b7whd4v/1/

v3:
https://jsfiddle.net/z0rkhf0s/1/

@paladizm hero! Fiddles make me happy :D

@paladizm Thanks for the fiddles. I never got round to writing them today.

Fixed in dev branch. Thanks all 馃憤

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

winterNebs picture winterNebs  路  43Comments

doebi picture doebi  路  30Comments

andrevenancio picture andrevenancio  路  29Comments

mreinstein picture mreinstein  路  39Comments

arahlf picture arahlf  路  66Comments