• 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: CA: Are nested 3D transforms supported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CA: Are nested 3D transforms supported?


  • Subject: Re: CA: Are nested 3D transforms supported?
  • From: John Harper <email@hidden>
  • Date: Tue, 22 Jul 2008 20:33:54 -0700


On Jul 22, 2008, at 3:07 PM, Jens Alfke wrote:

When I implement this, I get the wrong results. It looks like the pieces do get rotated, but then they're projected flat onto the board layer, so when the board tilts back it's clear that it's still flat but with distorted pieces drawn on it.

As far as I can tell I'm doing everything correctly. Now I'm worried that there's some undocumented limitation in CA itself that prevents a layer from lying in a different 3D plane than its superlayer. Is that so? Any way to work around it?

It's unfortunate that this is undocumented, but it is the intended behavior—layers are projected into their parent's plane when rendered. This is because many of the features of the CA compositing model are inherently 2D (filters, drop shadows, etc) so the only way to make them work is for each layer to be a place in 3D space.


Typically the way one works around this is to make all layers that have to live in the same 3D space be children of the same parent layer, the one with the sublayerTransform defining the perspective and viewing transform.

	John


_______________________________________________

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: 
 >CA: Are nested 3D transforms supported? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: A quick one: Passing a reference/pointer to NSString
  • Next by Date: Re: Problem on clearing points and paths on a NSView
  • Previous by thread: CA: Are nested 3D transforms supported?
  • Next by thread: Re: Basic question on /Library/Application Support
  • Index(es):
    • Date
    • Thread