Log in or register to post comments

Scale the object by fingers

May 29, 2012 - 4:00am #1

Dear all,

How can i scale (Zoom In - Zoom Out) the 3D object that appear on the marker
by 2 fingers?

Re: Scale the object by fingers

May 29, 2012 - 4:49am #2

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIGestureRecognizer_Class/Reference/Reference.html

...and here for a complete tutorial on how to use it:

http://www.raywenderlich.com/6567/uigesturerecognizer-tutorial-in-ios-5-pinches-pans-and-more

Once you have the information from the gesture you need to pass it in so that the code in EAGLView can act upon it. In there you basically need to do a glScale() to the appropriate scale prior to rendering the object/teapot

HTH

N

Log in or register to post comments