• 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
CALayer backgroundFilters can't cope with animated backgrounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer backgroundFilters can't cope with animated backgrounds?


  • Subject: CALayer backgroundFilters can't cope with animated backgrounds?
  • From: "Jonathan del Strother" <email@hidden>
  • Date: Fri, 2 May 2008 14:50:40 +0100

Hi,
I have a CALayer covering my view, with a blur background filter.
Works fine for static cases - everything behind the blur layer is
blurred.
However, for layers that update themselves continuously - eg
QTMovieLayer or QCCompositionLayer - or even just plain layers that
move, I get ugly trails around the edges of the layers behind the
blurring layer, as though it's not properly redrawing anything outside
the bounds of the layer being blurred.

To try and get round this, I subclassed CALayer and tried hooking into
a variety of display methods (drawInContext, display,
setNeedsDisplay), in the hope that I could call setNeedsDisplay on the
blur layer whenever one of the layers being blurred changes, but those
methods don't seem to be called during normal operation (eg when a
QCCompositionLayer renders a new frame, or when a layer changes
position).

See http://pastie.org/190470 - this is a simple QC layer on the left,
and a couple of moving red/green layers.  The QC Layer is permanently
surrounded by that white border, and the moving layers leave a trail
behind them as they move around.

What am I missing?
Jon
_______________________________________________

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

  • Prev by Date: Re: NSFormatter, NSTextfield and bindings
  • Next by Date: Forwarding messages from an application delegate
  • Previous by thread: Re: Unit Test error XCode 3.1 (Beta)
  • Next by thread: Forwarding messages from an application delegate
  • Index(es):
    • Date
    • Thread