Ner Posted July 26, 2016 Share Posted July 26, 2016 I read this http://doc.babylonjs.com/overviews/Canvas2D_ZOrder. When I use BABYLON.Rectangle2D , zOrder works. But in BABYLON.Sprite2D , zOrder doesn't work. How to solve it ?? Quote Link to comment Share on other sites More sharing options...
Nockawa Posted July 26, 2016 Share Posted July 26, 2016 9 hours ago, Ner said: I read this http://doc.babylonjs.com/overviews/Canvas2D_ZOrder. When I use BABYLON.Rectangle2D , zOrder works. But in BABYLON.Sprite2D , zOrder doesn't work. How to solve it ?? Hello Ner, do you have a playground that reproduce the issue? Thanks Quote Link to comment Share on other sites More sharing options...
Nockawa Posted July 26, 2016 Share Posted July 26, 2016 I've created a Trello Card to keep a track of your issue, bugs are pilling right now because I just went back from a 4 weeks break, but I'm starting the coding again. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted July 26, 2016 Share Posted July 26, 2016 I've just made a test and the Sprite2D zOrder is behaving the same way as a Rectangle2D. However what is weird is when there's transparency mixing is opaque stuff. So my next question is: do you mix opaque and transparent stuffs? A better explanation of what you tried would help me to identify the issue. Thanks. Quote Link to comment Share on other sites More sharing options...
Ner Posted July 27, 2016 Author Share Posted July 27, 2016 7 hours ago, Nockawa said: I've just made a test and the Sprite2D zOrder is behaving the same way as a Rectangle2D. However what is weird is when there's transparency mixing is opaque stuff. So my next question is: do you mix opaque and transparent stuffs? A better explanation of what you tried would help me to identify the issue. Thanks. http://www.babylonjs-playground.com/#TBGCY#1 Quote Link to comment Share on other sites More sharing options...
Nockawa Posted July 27, 2016 Share Posted July 27, 2016 I saw you also reply in the main thread, let's keep discussing about this matter here only, I already have hard time to remember everything! Yeah, that's what I though, zOrder is not the direct cause of this, I don't sort/hide propertly the three render mode (opaque, alphatest and transparent) because well, I'm kinda stupid and the current state is somewhat unfinished. Anyway, I have your point and now I think I know how to deal with it. One more Trello Card for me, I've work to do! Quote Link to comment Share on other sites More sharing options...
Ner Posted July 27, 2016 Author Share Posted July 27, 2016 Quote Link to comment Share on other sites More sharing options...
Nockawa Posted July 27, 2016 Share Posted July 27, 2016 Ok, bug solved, that was an "old" bug and I thought it was fixed already, weird... I'll tell you when the PG will be updated or check back in 3-5hours. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted July 27, 2016 Share Posted July 27, 2016 5 hours ago, Nockawa said: I saw you also reply in the main thread, let's keep discussing about this matter here only, I already have hard time to remember everything! Yeah, that's what I though, zOrder is not the direct cause of this, I don't sort/hide propertly the three render mode (opaque, alphatest and transparent) because well, I'm kinda stupid and the current state is somewhat unfinished. Anyway, I have your point and now I think I know how to deal with it. One more Trello Card for me, I've work to do! Ok @Ner, I've made the change in the documentation and submit the PR. Quote Link to comment Share on other sites More sharing options...
Ner Posted July 27, 2016 Author Share Posted July 27, 2016 You are always nice! Nockawa 1 Quote Link to comment Share on other sites More sharing options...
MasterK Posted August 2, 2016 Share Posted August 2, 2016 @Nockawa http://www.babylonjs-playground.com/#DSJDT Can you explain this? Quote Link to comment Share on other sites More sharing options...
Nockawa Posted August 2, 2016 Share Posted August 2, 2016 4 hours ago, MasterK said: @Nockawa http://www.babylonjs-playground.com/#DSJDT Can you explain this? zOrder is not a valid member for creation of a Rectangle2d, so the zOrder is attributes automatically and the two value you use make things switch http://www.babylonjs-playground.com/#DSJDT#1 this one with zOrder set after the creation, I believe works as expected Quote Link to comment Share on other sites More sharing options...
MasterK Posted August 2, 2016 Share Posted August 2, 2016 2 minutes ago, Nockawa said: zOrder is not a valid member for creation of a Rectangle2d, so the zOrder is attributes automatically and the two value you use make things switch http://www.babylonjs-playground.com/#DSJDT#1 this one with zOrder set after the creation, I believe works as expected Ok. i'll pay attention to use it. 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.