FROM : Colin Cornaby
DATE : Tue Jan 29 22:44:30 2008
CATransform3D would be the correct way to do what you want. Simply
create your transform with CATransform3DMakeRotation, and apply it to
your layer by setting your layer's transform property.
The only issue I've run into is that the transform doesn't look 3D.
I.E. it doesn't have that nice perspective look that the dock has.
Instead, the image just has a squashed look. If anyone has any
solution or flag that needs to be thrown to accomplish a nice
perspective transform, I'd be interested in knowing about it....
On Jan 29, 2008, at 11:10 AM, Mac Man wrote:
> I am trying to rotate an image along the z-axis, to get a
> perspective change
> like the Dock appears in Leopard. If I have a rectangular image, is
> there
> an easy way to rotate it to achieve this? I thought that I might
> find some
> luck with CATransform3D, but the documentation I've encountered
> didn't do
> much to help, and I couldn't find any clear examples of how to do
> this. If
> it can be done without Core Animation, that would work as well. Any
> insight
> and help would be greatly appreciated!
> Thanks,
> Devon
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/colin.<email_removed>
>
> This email sent to colin.<email_removed>
DATE : Tue Jan 29 22:44:30 2008
CATransform3D would be the correct way to do what you want. Simply
create your transform with CATransform3DMakeRotation, and apply it to
your layer by setting your layer's transform property.
The only issue I've run into is that the transform doesn't look 3D.
I.E. it doesn't have that nice perspective look that the dock has.
Instead, the image just has a squashed look. If anyone has any
solution or flag that needs to be thrown to accomplish a nice
perspective transform, I'd be interested in knowing about it....
On Jan 29, 2008, at 11:10 AM, Mac Man wrote:
> I am trying to rotate an image along the z-axis, to get a
> perspective change
> like the Dock appears in Leopard. If I have a rectangular image, is
> there
> an easy way to rotate it to achieve this? I thought that I might
> find some
> luck with CATransform3D, but the documentation I've encountered
> didn't do
> much to help, and I couldn't find any clear examples of how to do
> this. If
> it can be done without Core Animation, that would work as well. Any
> insight
> and help would be greatly appreciated!
> Thanks,
> Devon
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/colin.<email_removed>
>
> This email sent to colin.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Mac Man | Jan 29, 20:10 | |
| Colin Cornaby | Jan 29, 22:44 | |
| Ricky Sharp | Jan 29, 23:12 | |
| douglas a. welton | Jan 30, 02:21 |






Cocoa mail archive

