Theocacao
Leopard
Design Element
Comment on "Variations on NanoLife"
by Scott Stevenson — Mar 14
@Patrick Geiller: I've played around with NanoLife and hit problems when using layers in 3d

There's actually a "sphereContainer" sublayer that holds all of the floating orbs. I'm not sure what the exact effect was that you were going for, I changed this line in your copy of the source:

mainLayer.sublayerTransform = transform;

To this:

sphereContainer.sublayerTransform = transform;

And it looks a lot better. I think Core Animation is actually doing exactly what you're asking. The NSView's backing layer had the sublayerTransform applied, so the sphereContainer layer was floating out in space.
Back to "Variations on NanoLife"
Design Element

Copyright © Scott Stevenson 2004-2015