• 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: CALayer composition changes with frame position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer composition changes with frame position


  • Subject: Re: CALayer composition changes with frame position
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 22 Mar 2012 17:57:10 +0100

On 3/22/12 5:36 PM, James Bucanek wrote:
My problem is that stationaryLayer is composited differently, sometimes
opaque, sometimes semi-transparent and I cannot explain why.

I've noticed that CA does a lot of image caching during an animation,
and there are sometime differences between the cached image during
animation and the (re)composited image when not being animated.

Yes, but the composition should yield the same result whether animated or not, shouldn't it? Also, there's really no property animation going on (-actionForLayer: isn't fired).

All colors used have an alpha of 1.0. Also, the layers are never re-drawn
during the drag, so it's not a painting issue.

The problem goes away when setting moveableLayer's opacity to 1.0.

Have you tried leaving the moveableLayer's opacity at 1.0 and drawing
its content with an alpha of 0.5?

Yes, but my test case in the video is very very trimmed down. In reality lots of different things are drawn over each other, so that approach doesn't work.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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: 
 >Re: CALayer composition changes with frame position (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: advice for creating these controls
  • Next by Date: How to tell which thread is which in the debugger?
  • Previous by thread: Re: CALayer composition changes with frame position
  • Next by thread: Re: CALayer composition changes with frame position
  • Index(es):
    • Date
    • Thread