Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flat Rendering into one CGContext with respecting Z-Order #18

Open
FramusRock opened this issue Sep 11, 2014 · 0 comments
Open

Flat Rendering into one CGContext with respecting Z-Order #18

FramusRock opened this issue Sep 11, 2014 · 0 comments
Assignees

Comments

@FramusRock
Copy link

Hey,

First of all this is a very cool project, thank you!

I'm currently trying to render a failry large CALayer-hierarchy (consisting of all kinds of layers, CAShapeLayer, CAReplicatorLayer, CATransformLayer, CATextLayer, etc) into one single CGContext with respectiing z-Order.
I have tested MMLayershots w/o modification on it (besides reducing the quality to 0.25, since it will crash due to the memory overflow you've mentioned in another thread) and it renders every layer in the perfect position, just the z-Order is different from the one on the screen.
I'm using the zTranslation of the CATransform3D t o change the zOrder of my layers.

  1. What could I possibly do to have it render correctly with respecting zOrder?

  2. Can you think of an easy way, how to make it all render in to one single CGContext, instead of one context per image?
    (All my tries to just render it manually, i.e. rendering the root layer and have it render its children failed by either having a wrong z-Order or wrong x/y positions)

I hope you can help me on this and we could possibly enhance MMLayershots with those features!

Best,
Max

@vpdn vpdn self-assigned this Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants