Fast transition between two graphics
Hi, I have two full screen graphics that I'd like to transition between, using a 'push' effect, so that one appears to visually push the other off the side of the screen. The window I actually need to use this for cannot use layer backed views, due to a few still open bugs. So now I'm experimenting with using an overlay window with layer backed views, loading the images into the views, showing the window, and drawing the animation by then translating the two views at the same time. Is this the fastest way to do this? Thank you! -Chilton Webb ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fast transition between two graphics
On 30/09/2009, at 4:16 AM, Chilton Webb wrote: So now I'm experimenting with using an overlay window with layer backed views, loading the images into the views, showing the window, and drawing the animation by then translating the two views at the same time. Is this the fastest way to do this? You could do it this way, although normally for something like this I'd use Core Image. Make two CIImages and use an animated transition CIFilter. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fast transition between two graphics
Hi Rob! Thank you for writing. I suppose the only way I'll know for sure is to test this with both. On Sep 29, 2009, at 7:24 PM, Rob Keniger wrote: You could do it this way, although normally for something like this I'd use Core Image. Make two CIImages and use an animated transition CIFilter. I will take a shot at this. My concern is that I've seen CoreImage transitions bog down initially, I guess in their loading phase or something. I have an early model G5 that I use for testing the low end of the Leopard range (and it still looks strange to say G5 and Low End in the same sentence). On that machine, apps that use CoreImage tend to have a visual stutter initially, and I'm not sure if that's a CI thing or an app specific thing. Is there a 'push' effect for CI though? That said, CoreImage would theoretically work with Tiger as well, and providing backwards compatibility is something I'm considering anyway. Hmmm. I'll have to test both. Excellent suggestion! Thank you! -Chilton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fast transition between two graphics
On 30/09/2009, at 10:33 AM, Chilton Webb wrote: I will take a shot at this. My concern is that I've seen CoreImage transitions bog down initially, I guess in their loading phase or something. I have an early model G5 that I use for testing the low end of the Leopard range (and it still looks strange to say G5 and Low End in the same sentence). On that machine, apps that use CoreImage tend to have a visual stutter initially, and I'm not sure if that's a CI thing or an app specific thing. Is there a 'push' effect for CI though? Hmm, actually I don't think there is. There is one if you want to use the private CoreGraphics filters: http://lipidity.com/apple/core-graphics-meet-core-image-demo-app http://lipidity.com/apple/the-ultimate-core-graphics-resource However, it's probably not a good idea for a shipping app. CoreImage uses the GPU, so if the GPU is a bit feeble or you are using really large images then it may have frame rate issues, however Core Animation can have these issues too. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fast transition between two graphics
On Wed, 30 Sep 2009 10:24:47 +1000, Rob Keniger r...@menumachine.com said: On 30/09/2009, at 4:16 AM, Chilton Webb wrote: So now I'm experimenting with using an overlay window with layer backed views, loading the images into the views, showing the window, and drawing the animation by then translating the two views at the same time. Is this the fastest way to do this? You could do it this way, although normally for something like this I'd use Core Image. Make two CIImages and use an animated transition CIFilter. Right, that indeed is precisely the solution I ended up using for JACTVocab 2.0. My implementation is very similar to what the OP described: I'm covering my window with a glass child window where I can use layers, and calling setContent on a layer with an animated transition. (The app gives the user a choice of transitions, and one of them is a push transition.) I discussed my thinking in an earlier thread here as I was developing the animation. At the time, Uli Kusterer suggested it might have been better to swap views and animate *that*. And I might still rewrite it that way. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com