Re: Explode Subviews

11 views
Skip to first unread message

Zachry Thayer

unread,
Nov 17, 2011, 4:28:54 AM11/17/11
to nscodernigh...@googlegroups.com
Worked on it to use a better algorithm to separate the Layers, need to look at the hierarchy and fix up the transforms to be relative to their parent. Once that's done I'll add some controls to rotate it in 3D space.



On Nov 16, 2011, at 11:51 PM, Zachry Thayer wrote:

Someone on teusday mentioned exploded out subviews in 3D like the apple documents, I through together a quick try, it's ugly, I will need to write another version that collects layers or screen shots them to get the effect right, since it seems a CALayer tries to flatten it's sublayers if it has a transform itself. But heres what I got in a few minutes.

<Screen Shot 2011-11-16 at 11.47.34 PM.png>

Zachry Thayer

unread,
Nov 17, 2011, 2:51:45 AM11/17/11
to nscodernigh...@googlegroups.com
Someone on teusday mentioned exploded out subviews in 3D like the apple documents, I through together a quick try, it's ugly, I will need to write another version that collects layers or screen shots them to get the effect right, since it seems a CALayer tries to flatten it's sublayers if it has a transform itself. But heres what I got in a few minutes.

Zachry Thayer

unread,
Nov 17, 2011, 1:00:07 PM11/17/11
to nscodernigh...@googlegroups.com
Did some more tweaking and updates, just have a weird ordering and relation to parent with subsubviews, once I get those it will be done.

Quick demo video here
http://d.pr/lgQu


On Nov 17, 2011, at 1:28 AM, Zachry Thayer wrote:

> Worked on it to use a better algorithm to separate the Layers, need to look at the hierarchy and fix up the transforms to be relative to their parent. Once that's done I'll add some controls to rotate it in 3D space.
>

> <Screen Shot 2011-11-17 at 1.26.41 AM.png>

Kurt Arnlund

unread,
Nov 17, 2011, 1:40:20 PM11/17/11
to Zachry Thayer, nscodernigh...@googlegroups.com
YES! Very close to what I imagined.

More ideas:

1) Make it triggered by a button.
2) pull the viewing position backward and very very slightly to the left if possible.
3) I think some core animation on the layers could be used to pull them all apart temporarily. Of course any existing animations would need to be stopped and saved off for later restoration, or insert control layers as parents of all existing layers, just to move their without affecting any existing animations. View animations would continue to work in the sideways view.

Kurt

Reply all
Reply to author
Forward
0 new messages