Hersir Posted June 16, 2017 Share Posted June 16, 2017 Hi, I have animation of camera target (works only if some other property like alpha is animated at the same time) PG. If I switch tabs and wait a bit and come back to playground, alpha animation jumps to last frame as expected but target is moved to correct position but focus of camera stacks at last target positon before tab swicth. probably related to the same issue described here: Quote Link to comment Share on other sites More sharing options...
adam Posted June 16, 2017 Share Posted June 16, 2017 This seems to be working: http://www.babylonjs-playground.com/index.html#PJCV9G#2 I call camera.setTarget in afterRender. Quote Link to comment Share on other sites More sharing options...
Hersir Posted June 16, 2017 Author Share Posted June 16, 2017 Ok so workaround for it right now is to call camera.setTarget in afterRender. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 16, 2017 Share Posted June 16, 2017 http://www.babylonjs-playground.com/index.html#PJCV9G#3 I was working this issue, too (I used beforeRender). I thought maybe camera.update() in renderLoop would work, but no. Strange issue. I made a version 4, too. When in 3.0, it works one way. In 2.5, it acts differently... animating the camera itself as the target travels. hmm. No mention of any ArcCam stuff in What's New list. Anyone know how to search github source for ALL changes to arcCam since 2.5 release? I see a panning inertia change (probably not pertinent), but I'm not good-at github power searching. Could be more changes since 2.5. Besides, 2.5 version of this playground... is not acting correct, either. Camera should not translate (truck-left), I think. Only pan. Help welcome, as always. Quote Link to comment Share on other sites More sharing options...
adam Posted June 17, 2017 Share Posted June 17, 2017 I just submitted a PR that fixes this issue: https://github.com/BabylonJS/Babylon.js/pull/2332 Wingnut and Hersir 2 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 17, 2017 Share Posted June 17, 2017 You're a God, Adam. Nice. Thx for the quick commit from Deltakosh, too. And thanks for the bug-find, Hersir! You guys all ROCK!!! Hersir 1 Quote Link to comment Share on other sites More sharing options...
Hersir Posted June 19, 2017 Author Share Posted June 19, 2017 @adam Thanks for PR 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.