Buzul Posted November 20, 2018 Share Posted November 20, 2018 Hi to all, you beautifull peoples; I'm here with other one crazy question and i need your help.. I working since last week about this issue but i coldn't solved this.. First of all my PG link: https://www.babylonjs-playground.com/#113717#2 Please check corners. I'm using PlanePanels and 3 buttons each corner, and positioning with TransformNode. At the PG working well, it seems no problem in there but when i came at local it's not the same.. As you can see at picture below.. How can i fix this issue i need your ideas and guideners.. Thank in advance.. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 20, 2018 Share Posted November 20, 2018 Hi B! THAT... is weird. I verified it. Retrieved zip of properly-cornered playground, run at home, same issue as picture above. Then, I disabled all the SCRIPT elements in the index.html, and replaced them with pasted-in script elements from the playground app source. Same problem... 3 corners out-of-place. Very strange. Thx for the report. Good puzzle! Sorry for replying without a solution. Quote Link to comment Share on other sites More sharing options...
Buzul Posted November 20, 2018 Author Share Posted November 20, 2018 Hi @Wingnut; Thanks for your reply. Nice to see you again.. I'm waiting a suggestion from masters for the solution. Thank you.. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 20, 2018 Share Posted November 20, 2018 @Buzul it is because the playground register for scene ready but it is not by default. you need to use registerWhenReady instead: https://www.babylonjs-playground.com/#113717#3 Buzul and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 20, 2018 Share Posted November 20, 2018 Wow! You're a GOD, @Sebavan! I gotta remember THAT one. (he meant to say executeWhenReady, btw.) scene.onReadyObservable.add( function(){whatever} ) ... just does not trigger, when the scene is local. unreal. ------------------ scene.executeWhenReady(function(){ scene.onReadyObservable.add( function(){ console.log("oro triggered") kose4.rotation.z = Math.PI/2; kose3.rotation.z = Math.PI; kose2.rotation.z = -Math.PI/2; }) }) ----------------- That works. Weird. Learn learn learn (thx "bavvy"!). Hey, didja know that 'kose' means 'corner', in Turkish talk? Cooooool. Buzul taught me that. Sebavan and Buzul 2 Quote Link to comment Share on other sites More sharing options...
Buzul Posted November 21, 2018 Author Share Posted November 21, 2018 @Sebavan Thank you guys you are legend... I learned one more thing about BJ.. @Wingnut corner = köşe with dots thanks.. Wingnut 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.