decai
Topic Author
Posts: 54
Joined: 06 Jul 2016, 18:19

[Ogre] How implement pan and pitch guesture on iOS

27 Dec 2016, 10:55

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?
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Ogre] How implement pan and pitch guesture on iOS

27 Dec 2016, 23:54

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?
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;
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?
 
decai
Topic Author
Posts: 54
Joined: 06 Jul 2016, 18:19

Re: [Ogre] How implement pan and pitch guesture on iOS

29 Dec 2016, 09:20

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?
Yes, we do not multi the scale as the integration sample. After set the right size, it's looks better. Thanks.
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Ogre] How implement pan and pitch guesture on iOS

29 Dec 2016, 16:27

Cool! Did you also solve the gestures issue?
 
decai
Topic Author
Posts: 54
Joined: 06 Jul 2016, 18:19

Re: [Ogre] How implement pan and pitch guesture on iOS

01 Jan 2017, 05:06

We just working on other things, we'll give feedback when we having progress on the gesture issue.
Thanks.
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Ogre] How implement pan and pitch guesture on iOS

03 Jan 2017, 02:14

Cool, thanks for the feedback!

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 22 guests