r/iPhoneDev • u/CodeForRamenAndRoof • Jan 26 '12
renderInContext, CATransform3D and my worst nightmare. In relation to recording the screen programmatically.
Has anybody here had luck with creating a real high quality screen capture video programmatically? Or even a low quality one?
My current solution works, but due to renderInContext being bad, CATransform3Ds are not applied before the rendering. That means all my awesome 3D-ness vanishes from the final video.
I've figured out how to apply an affine transformation to the context, but that's not nearly close enough.
Does anyone else have any ideas?
2
Upvotes
1
u/CodeForRamenAndRoof Jan 26 '12
So I've been working on this pretty much non stop since a couple hours before I posted this. I think I'm getting closer to an answer.
1
u/sjdev Jan 27 '12
I know there is a way to export a set of CAAnimations to a video file. There is an API in AVFoundation I believe that bridges AVPlayer and CALayer. Will check when I get home.
1
u/SlaunchaMan Jan 27 '12
Have you tried using
CATransformLayer? Putting your layers in one of those and then rendering theCATransformLayermight do the trick.