问题
I'm using SceneKit with Metal (not openGL) & would like to allow a user to record a video of him playing the game. Any ideas how can I render the scene to a video? (There's no need to record the scene audio, which might make it more simple)
回答1:
I thought I'd add it as an answer:
ReplayKit should do the job fine, though it does require iOS9 and a device that supports Metal (A7 or later). I've never used it but from what I remember of WWDC 2015 it only required a few lines of code to set up. There's tons of tutorials on it available on the net.
This one seems to include most bits such as starting and stopping recording, as well as excluding interface objects from the video if required.
来源:https://stackoverflow.com/questions/36673968/capture-a-skenekit-scene-as-video