将SkeneKit场景捕获为视频 [英] Capture a SkeneKit scene as video

查看:82
本文介绍了将SkeneKit场景捕获为视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将SceneKit与Metal(而非openGL)配合使用;希望允许用户录制他玩游戏的视频.有什么想法可以将场景渲染为视频吗? (无需录制场景音频,这可能会使它更简单)

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)

推荐答案

我认为我应该将其添加为答案:

I thought I'd add it as an answer:

ReplayKit可以很好地完成工作,尽管它确实需要iOS9和支持Metal的设备(A7或更高版本).我从未使用过它,但是从我记得的WWDC 2015来看,它只需要设置几行代码即可.网上有大量的教程.

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.

这篇关于将SkeneKit场景捕获为视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆