Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-18-2011, 04:12 PM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 39
thephatp is on a distinguished road
Question How to perform transition b/w 2 images like Google Street View?

I have the need to "zoom in" on a background image and animation transition to a new image that effectively looks like I just zoomed in to another location. Really, I'll have to load another image, but the effect I'm looking for is exactly like Google's Street View transition.

In Street View, you see somewhere in the distance you want to go to, you click to "zoom" to that area, and the transition is basically:
  • Blur current image
  • Stretch bottom image
  • Load new image behind (looks like the top half of the image view is the new image, and the bottom half of the image view is the old image)
  • Sharpen (un-blur) the new image

I'll be doing this transition using vector artwork creating in Adobe Illustrator, so I can make the original images as big as needed. I just don't know how to perform the actual transition. I want it to appear to the user that they touch inside the image to "zoom to the next hill" but I need to actually load another image with new artwork on it.

Can I do this with one UIImageView? Or will I need two to accomplish the effect? Is it even possible to do like Google's transition?

Any help or guidance is greatly appreciated.
thephatp is offline   Reply With Quote
Old 08-18-2011, 04:36 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by thephatp View Post
I have the need to "zoom in" on a background image and animation transition to a new image that effectively looks like I just zoomed in to another location. Really, I'll have to load another image, but the effect I'm looking for is exactly like Google's Street View transition.

In Street View, you see somewhere in the distance you want to go to, you click to "zoom" to that area, and the transition is basically:
  • Blur current image
  • Stretch bottom image
  • Load new image behind (looks like the top half of the image view is the new image, and the bottom half of the image view is the old image)
  • Sharpen (un-blur) the new image

I'll be doing this transition using vector artwork creating in Adobe Illustrator, so I can make the original images as big as needed. I just don't know how to perform the actual transition. I want it to appear to the user that they touch inside the image to "zoom to the next hill" but I need to actually load another image with new artwork on it.

Can I do this with one UIImageView? Or will I need two to accomplish the effect? Is it even possible to do like Google's transition?

Any help or guidance is greatly appreciated.

Sounds like you'll need more than one image. Does the UIKit render PDF documents as vector images, scaling as needed? And if so, is it fast enough to animate well? If not, you might want to render the PDF to it's largest size, then scale it down using a transform as the starting appearance.

Do some reading on CALayers. In UIKit, all views are backed by a layer, and if you change the transform property of a layer, the system animates the change automatically. I'm not sure about blurring, but you could easily animate scaling, rotation, and changes in opacity using simple layer animations.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 08-30-2011, 03:34 PM   #3 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 39
thephatp is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
Sounds like you'll need more than one image. Does the UIKit render PDF documents as vector images, scaling as needed? And if so, is it fast enough to animate well? If not, you might want to render the PDF to it's largest size, then scale it down using a transform as the starting appearance.

Do some reading on CALayers. In UIKit, all views are backed by a layer, and if you change the transform property of a layer, the system animates the change automatically. I'm not sure about blurring, but you could easily animate scaling, rotation, and changes in opacity using simple layer animations.
Duncan, thank you for the detailed response. I have not done any work with layers, but that sounds like a great place to start. I'll see what I can come up with and report back, though it may be awhile. Thanks for getting me on the right track.
thephatp is offline   Reply With Quote
Reply

Bookmarks

Tags
stretch, transition, uiimageview animation, zoom, zooming

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 391
14 members and 377 guests
7twenty7, chiataytuday, cristofercolmbos, dedeys78, fiftysixty, gmarro, iOS.Lover, jimmyon122, jonathandeknudt, pungs, raymng, stanny, tymex, UMAD
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,669
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dedeys78
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0