Pryme8 Posted March 2, 2018 Share Posted March 2, 2018 http://www.babylonjs-playground.com/#YSZ7YV#13 Ok first , sometimes the texture does not load for no particular reason and you have to rerun the scene to make it work. Second if I fire a pick event, and then create a UI element it does not take focus away from the camera on the mouse movements. Third, if you attach a UI elements to a transform node all hell breaks loose. : http://www.babylonjs-playground.com/#YSZ7YV#14 Just click on the model to see what I am talking about with the pick events and UI. There are a few other things I've noticed that break, but lets start with this. JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted March 2, 2018 Share Posted March 2, 2018 23 minutes ago, Pryme8 said: Third, if you attach a UI elements to a transform node #3: linkWithMesh(...) only supports AbstractMesh or higher and is by design, as it's using boundingbox. (ie: change anchor to new AbstractMesh(...). JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
JackFalcon Posted March 3, 2018 Share Posted March 3, 2018 nice... Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 5, 2018 Author Share Posted March 5, 2018 On 3/2/2018 at 1:06 PM, Pryme8 said: Second if I fire a pick event, and then create a UI element it does not take focus away from the camera on the mouse movements. Anyone got ideas on this part? Basically the camera keeps moving with all mouse movements until you click again. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 5, 2018 Author Share Posted March 5, 2018 for the time being I fire a click event on the canvas after the creation of the UI element and it fixed the focus issue. http://www.babylonjs-playground.com/#YSZ7YV#15 Line: 329 -> scene.canvas.click(); Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 5, 2018 Author Share Posted March 5, 2018 And I lied, that did not fix it. I gotta figure out how to release the focus of the canvas mouse click event. http://www.babylonjs-playground.com/#YSZ7YV#26 Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 6, 2018 Share Posted March 6, 2018 camera attach and detach control functions any use? https://www.babylonjs-playground.com/#YSZ7YV#30 Pryme8 and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 6, 2018 Author Share Posted March 6, 2018 I was messing around with that but did not get it working like you did good fix! 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.