staff0rd Posted June 29, 2016 Share Posted June 29, 2016 Phaser extends DisplayObject.updateTransform to allow the passing of a parent object. This allows objects (that specifically override updateTransform) to be group-moved and -positioned independent of the group that controls their render (z) order. Is anything similar available in PIXI? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2016 Share Posted June 29, 2016 The thing is, rendering order can change often, while transform grouping is more static. All 3d engines base their render tree on update order, not the render order. Why do you need that? Did you checkout pixi-display like I told you before? staff0rd 1 Quote Link to comment Share on other sites More sharing options...
staff0rd Posted June 29, 2016 Author Share Posted June 29, 2016 I have containers that are tweened, so their children's positions are updated with them. However, I have some children within those containers that need to be tweened with the parent, but displayed in front of all containers - not just its parent. Dropping in v4 to my v3 project resulted in a blank screen with no errors, so I have not attempted it yet. Does v4 offer the functionality above? EDIT - Oh i see that pixi-display is what may add the functionality I want... Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2016 Share Posted June 29, 2016 V4 does not offer any kind of z-ordering, but pixi-display can re-order elements without changing render tree according to their "displayGroups". I use it in projects that will soon go into production. Please look at example, its easy enough. As for your black screen bug, can you tell me which features are you using from this list? 1. filters 2. masks 3. renderTexture 4. new Texture(frame,crop,trim) Quote Link to comment Share on other sites More sharing options...
staff0rd Posted June 29, 2016 Author Share Posted June 29, 2016 Ah, I had not seen the example before. Looks like this is the functionality I'm after and I'll have to look at getting v4 going. I'm using generateTexture and a mask. I could isolate the mask out... Quote Link to comment Share on other sites More sharing options...
staff0rd Posted June 29, 2016 Author Share Posted June 29, 2016 Actually, the blank screen was from rc2. At first glance v4 seems to be running fine directly from the dev branch. I'll give pixi-display a shot now. Quote Link to comment Share on other sites More sharing options...
staff0rd Posted June 29, 2016 Author Share Posted June 29, 2016 @ivan.popelyshev after pulling in that library and extending my typescript definitions to support it, I added a couple of DisplayGroups and this problem was solved by what seemed like magic. Very nice - thanks a lot. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2016 Share Posted June 29, 2016 2 hours ago, staff0rd said: @ivan.popelyshev after pulling in that library and extending my typescript definitions to support it, I added a couple of DisplayGroups and this problem was solved by what seemed like magic. Very nice - thanks a lot. If you use masks inside generateTexture, you'll have to wait for new build or ask me for it - I just fixed a bug there Quote Link to comment Share on other sites More sharing options...
staff0rd Posted June 29, 2016 Author Share Posted June 29, 2016 @ivan.popelyshev I was using them separately, and, any issues i had with v4 went away after I used the pixijs dev branch rather than the rc2 release. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2016 Share Posted June 29, 2016 Nice. If you will have problems with generateTexture with masks inside - ask me, I just fixed that and can give you new build 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.