Jump to content

Depth system in pixi?


Josepho
 Share

Recommended Posts

  • 1 year later...

Hi to everybody.
I have two containers, how can i sort all object into the two system?

I have a particle system ( a PIXI.SpriteBatch ) and some sprite into the stage.

Every spriteBatch object and every stage sprite have the "z" attribute.
I would sort the sprite ( into the stage ) and the objects ( into the sproteBatch ) based on the "z" attribute.

Link to comment
Share on other sites

  • 7 months later...

There can be 100 different implementations of Z-layer, we can do them as a plugins. Just tell me what kind of z-index you need, do you want to use DEPTH_BUFFER or sort all sprites in scene?

 

 

C'mon, even SFML has this. What's your excuse on this one? 

 

For example, that thing will mess with filters and particles.

Link to comment
Share on other sites

With all due respect. I don't know why z-index is not part of PIXI. C'mon, even SFML has this. What's your excuse on this one?

SFML is also not a 2d library, it is a gl wrapper.

PIXI is not a gl wrapper, it is a 2D library.

Z-index in 2D games is very application specific. We left that to userland.

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...