Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for control using combination of touch & motion as in Facebook #2

Open
coderGo93 opened this issue Mar 10, 2017 · 3 comments
Open

Comments

@coderGo93
Copy link

I couldn't change location/position of motion, i.e, I'm trying that UIPanGesture when is ended, change to motion automatically, but the location must be the same as location(x,y,z) before that UIPanGesture has ended, just like Facebook.
But when is ended, the motion changes automatically but the position always resets depends of the orientation.

Sorry for my english

@scihant
Copy link
Owner

scihant commented Mar 11, 2017

That's the intended behavior. When you enable motion control, the orientation of the camera is determined solely by the motion data according to some fixed reference point. Since the reference point is the same, keeping the device in the same orientation always results in the exact FoV of the camera. In short, you can't mix pan and motion as in the Facebook app. The reason I implemented it that way is to keep the correspondence between the physical orientation of the device and the FoV consistent.

With all these said, I understand that not everyone would care about a fixed reference point, and prefer the Facebook way. That's why I might add that feature in a future release.

@scihant scihant changed the title How to change location while in motion Allow using both pan and motion controls at the same time Mar 11, 2017
@scihant scihant changed the title Allow using both pan and motion controls at the same time Support for control using combination of touch & motion as in Facebook Mar 11, 2017
@coderGo93
Copy link
Author

I don't understand. I'm learning how to use SceneKit for 360 photos
Are you saying I need to change values of xFov and yFov?

@scihant
Copy link
Owner

scihant commented Mar 13, 2017

No, I'm saying that this library automatically sets the FoV according to the orientation of the device, regardless of how or when you modified the FoV before. As soon as you enable motion controls, it will immediately change the FoV to where it should be according to a fixed reference point. Therefore it's not possible to use touch controls without disabling the motion controls, or changing how the library works.

Repository owner locked and limited conversation to collaborators Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants