Giedrius Posted April 25, 2019 Share Posted April 25, 2019 Hi all, We are drawing ~10k interactive sprite circles. We are grouping them in separate PIXI.Containers (sectors). Inside those we do another grouping, this time we use particleContainers to speed up with sprites inside. The problem is - when I try to calculate local bounds of sector container which is certainly filled with particle containers and with sprites - it returns width = 1, height = 1. Can it be the case because of particleContainers? Thanks! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 25, 2019 Share Posted April 25, 2019 Yep, updateTransform() is blocked for particleContainer children, and its not possible to determine bounds because of that. https://github.com/pixijs/pixi.js/blob/dev/packages/particles/src/ParticleContainer.js#L187 Its not a miracle container, its a thing that throws out many features in favor of faster rendering. Its strange that calculateBounds() isnt blocked there, it should be. Giedrius 1 Quote Link to comment Share on other sites More sharing options...
Giedrius Posted April 25, 2019 Author Share Posted April 25, 2019 Thanks, Ivan, is it true, that childs of particle container can't have their own childs? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 25, 2019 Share Posted April 25, 2019 yep, that also wont work. Though, I have implementations like ParticleContainer that allow children. But I cant share it, its too difficult to use because of other limitations Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.