• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple Flipbook Animation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Flipbook Animation?


  • Subject: Re: Simple Flipbook Animation?
  • From: Jeshua Lacock <email@hidden>
  • Date: Fri, 31 Oct 2008 11:51:21 -0600


On Oct 31, 2008, at 11:33 AM, Matt Long wrote:

Look at overriding the layer transition. You can use a page curl filter, if that's your desired effect, to transition changes to the layer's content property.

- Create a CATransition object.
- Create a CIFilter that implements a page curl (Check out Apple's Core Image Filters docs and sample code).
- Set the transition object's filter parameter to your CIFilter
- Add the transtion to the layer actions for the key "content"


Then, whenever you set your layer's content parameter to the next image, it will use that transition instead of the default fade. This of course assumes that you know you need to convert your NSImages to CGImageRefs first since the content property cannot be set with an NSImage. Let me know if you need clarification.


Hi Matt,

Thanks for the information.

I guess that is part of my confusion. I don't want any effects or transitions. I just want to play back my frames (like at 30 frames per second)....


Thanks,

Jeshua Lacock
Founder/Programmer
3DTOPO Incorporated
<http://3DTOPO.com>
Phone: 877.240.1364

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Simple Flipbook Animation? (From: Jeshua Lacock <email@hidden>)
 >Re: Simple Flipbook Animation? (From: Matt Long <email@hidden>)

  • Prev by Date: Re: Simple Flipbook Animation?
  • Next by Date: Re: Simple Flipbook Animation?
  • Previous by thread: Re: Simple Flipbook Animation?
  • Next by thread: Re: Simple Flipbook Animation?
  • Index(es):
    • Date
    • Thread