[Ogre] How implement pan and pitch guesture on iOS
Hi all,
We're using NoesisGUI with Ogre on iOS.
1. The IView has three function TouchDown,TouchMove and TouchDown, these function has 3 parameters, what's the mean of the third parameter `id` mean?
2. How to implement Pan and pitch gesture like native iOS UI, how to handle multiple touch event?
3. The words display in UI is not clear as native UI. We use iPad Pro for dev. Is there some thing that we didn't handled with content scale or Retina display?
We're using NoesisGUI with Ogre on iOS.
1. The IView has three function TouchDown,TouchMove and TouchDown, these function has 3 parameters, what's the mean of the third parameter `id` mean?
2. How to implement Pan and pitch gesture like native iOS UI, how to handle multiple touch event?
3. The words display in UI is not clear as native UI. We use iPad Pro for dev. Is there some thing that we didn't handled with content scale or Retina display?
Re: [Ogre] How implement pan and pitch guesture on iOS
Hello!
1. The 'id' parameter uniquely identifies the touch. It only makes sense when using multiple touches simultaneously. So for example, if you have two fingers touching the screen you have to give a different ID for each one. That way we can track them correctly. How you assign those IDs is up to you, but you need to be consistent.
2. You need to use manipulations. A manipulation is a high-level concept that provides you all the information to generate high-level events. Please, let me know if you need more information.
3. Are you correctly calculating width and height dimensions?
Make sure to use this Width and Height to initialize both the drawable size of the iOS layer and noesis IView. Is the integration sample included in the SDK working correctly?
1. The 'id' parameter uniquely identifies the touch. It only makes sense when using multiple touches simultaneously. So for example, if you have two fingers touching the screen you have to give a different ID for each one. That way we can track them correctly. How you assign those IDs is up to you, but you need to be consistent.
2. You need to use manipulations. A manipulation is a high-level concept that provides you all the information to generate high-level events. Please, let me know if you need more information.
3. Are you correctly calculating width and height dimensions?
Code: Select all
UIView* view = GetView();
const CGSize Size = view.bounds.size;
const CGFloat ContentScale = [UIScreen mainScreen].scale;
const CGFloat Width = Size.width * ContentScale;
const CGFloat Height = Size.height * ContentScale;
Re: [Ogre] How implement pan and pitch guesture on iOS
Yes, we do not multi the scale as the integration sample. After set the right size, it's looks better. Thanks.Make sure to use this Width and Height to initialize both the drawable size of the iOS layer and noesis IView. Is the integration sample included in the SDK working correctly?
Re: [Ogre] How implement pan and pitch guesture on iOS
Cool! Did you also solve the gestures issue?
Re: [Ogre] How implement pan and pitch guesture on iOS
We just working on other things, we'll give feedback when we having progress on the gesture issue.
Thanks.
Thanks.
Re: [Ogre] How implement pan and pitch guesture on iOS
Cool, thanks for the feedback!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 22 guests