re_evolutn Posted November 16, 2016 Share Posted November 16, 2016 Hey there, I noticed that the DeviceOrientationCamera start direction is different when the users device is in portrait vs landscape mode. Portrait is correct, where as Landscape is off to the right when compared to other cameras. Is there any way I can sync these two up without moving objects in my scene? The same issue occurs with VRDeviceOrientationFreeCamera. Sidenote: I did see resetToCurrentRotation() in babylon 2.5 but it doesnt resolve this issue. Thanks! Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 17, 2016 Share Posted November 17, 2016 hiya @re_evolutn! I am pretty sure the rotation is accurate, as it is used in production and works. But! I have been known to make mistakes. Often than I would have hoped. The thing with the resetToCurrentRotation is, that it first needs to get some information from the device (the first rotation) in order for it to work correctly. Otherwise, you are resetting nothing to nothing. A quick test would be - calling resetToCurrentRotation() 1 second after the scene already renders. See if it helps, and let me know if it doesn't. Would be great to see some code as well! Quote Link to comment Share on other sites More sharing options...
re_evolutn Posted November 17, 2016 Author Share Posted November 17, 2016 Hey RaananW, strange... i could have sworn that this issue was present in my project a day ago. I just tried to capture some screenshots but the issue seems to have resolved its self. I have re-ordered some code so it was probably my fault. Apologies! cheers, Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 17, 2016 Share Posted November 17, 2016 I love self-resolving issues! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 18, 2016 Share Posted November 18, 2016 ME TOO! 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.