Capture a SkeneKit scene as video

浪子不回头ぞ 提交于 2019-12-11 00:47:54

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!