royibernthal Posted August 30, 2016 Share Posted August 30, 2016 I'm experiencing a bug that I was not yet able to reproduce in an isolated environment. I'm using bjs 2.5 alpha. During the loading of assets I'm creating a ScreenSpaceCanvas2D for the preloader UI in my custom loading screen (shown and hidden via a class implementing ILoadingScreen). I created a Sprite2D bar from an image texture (image was loaded previously), and I change the scaleX of the bar according to the loading progress. The bar is not updated accordingly. The scaleX variable is changed properly but visually it looks like it's stuck on scaleX 0 or 1. The values I pass are fine. The bar Sprite2D is a child of a Group2D. I set the origin of the Sprite2D to (0, 0). The bug persists even after the loading is ended if I choose for testing purposes to not hide the preloader UI. I have no idea if this is related to the loading situation or not, I just gave as many details as possible. I tried reproducing scaling a simple Sprite2D on the playground and it worked as expected. Any idea what might be going on here? @Nockawa Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 31, 2016 Share Posted August 31, 2016 Ping @Nockawa Quote Link to comment Share on other sites More sharing options...
adam Posted August 31, 2016 Share Posted August 31, 2016 I feel bad for Nockawa having to field all these questions. Please create a PG and someone here will try to help. Quote Link to comment Share on other sites More sharing options...
adam Posted August 31, 2016 Share Posted August 31, 2016 23 hours ago, royibernthal said: I tried reproducing scaling a simple Sprite2D on the playground and it worked as expected. Oh Quote Link to comment Share on other sites More sharing options...
adam Posted August 31, 2016 Share Posted August 31, 2016 Are you using the very latest version of BJS? Nockawa has made some recent commits: https://github.com/BabylonJS/Babylon.js/pulls?q=is%3Apr+author%3Anockawa Quote Link to comment Share on other sites More sharing options...
Nockawa Posted August 31, 2016 Share Posted August 31, 2016 @royibernthal please, confirm you use the very latest version of the 2.5 alpha locally, and if you still have issues we can investigate. But it indeed looks like something that was once bugged, but should have been solved. Let me know, thanks. Quote Link to comment Share on other sites More sharing options...
royibernthal Posted August 31, 2016 Author Share Posted August 31, 2016 @Nockawa @adam I am using the latest 2.5 alpha version, just re-downloaded it to make sure. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted August 31, 2016 Share Posted August 31, 2016 and you still have the issue, right? can you share the code so I can test it locally. sometimes there are some texture loading latency that introduce issues. I wish it would be over by now, but well... Quote Link to comment Share on other sites More sharing options...
royibernthal Posted August 31, 2016 Author Share Posted August 31, 2016 I still have the issue yes. I'm waiting for the textures assets to finish loading before attempting to do this, if it matters. It'd be a bit of a problem for me to upload the whole code, would you be willing to do a remote control session in private? Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 1, 2016 Author Share Posted September 1, 2016 @Nockawa I managed to isolate the issue, attached the uploaded project. Babylon Preloader Bar.rar Quote Link to comment Share on other sites More sharing options...
Nockawa Posted September 1, 2016 Share Posted September 1, 2016 Can you test again locally with the version I pushed few hours ago in the official repo? (you have to recompile the source code, the preview file was not updated). Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 1, 2016 Author Share Posted September 1, 2016 1 hour ago, Nockawa said: Can you test again locally with the version I pushed few hours ago in the official repo? (you have to recompile the source code, the preview file was not updated). It didn't solve it. There's no need to even recompile the typescript project just replace babylon.js in the lib dir and it should be fine. (since babylon.d.ts is not being compiled anyway) Quote Link to comment Share on other sites More sharing options...
Nockawa Posted September 1, 2016 Share Posted September 1, 2016 My point was, the babylon.js file is updated nightly by DK, so if you took the file from here: https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview release/babylon.js you won't have the changes I commit today. Maybe I didn't understand what you said. Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 1, 2016 Author Share Posted September 1, 2016 Oh, I was the one who didn't understand what you said, I thought you were having problems compiling my typescript for some reason and were asking me to do it. Would I have to wait for DK to update it or are you saying there's a way for me to see your new commits before that? Quote Link to comment Share on other sites More sharing options...
Nockawa Posted September 2, 2016 Share Posted September 2, 2016 We've updated the "preview release" folder, you can get the new version of babylon.js there: https://github.com/BabylonJS/Babylon.js/tree/master/dist/preview release Tell me if the issue is solved, if it's still not, I'll check right away locally. Thanks Quote Link to comment Share on other sites More sharing options...
royibernthal Posted September 2, 2016 Author Share Posted September 2, 2016 Solved. Thank you Nockawa 1 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.