【发布时间】:2018-03-11 10:46:02
【问题描述】:
我正在为我的 AR 应用程序提供屏幕截图功能,我注意到我拍摄的屏幕截图(通过 sceneView.snapshot())比我从相机看到的要暗得多。我正在使用 Apple 的 ARKit 示例代码,这似乎正在影响它:
camera.wantsHDR = true
camera.wantsExposureAdaptation = true
camera.exposureOffset = -1
camera.minimumExposure = -1
camera.maximumExposure = 3
当我删除曝光设置时,快照工作正常。有什么方法可以确保快照考虑了这些曝光设置?
【问题讨论】:
-
我不是 100% 确定这一点(因为我对 ARKit 所做的很少)但我认为有一个变量
sceneView.automaticallyUpdatesLighting = true试试看是否有帮助 -
你已经读过这篇文章了吗?也解释了sceneView的光照blog.markdaws.net/…
标签: swift scenekit augmented-reality arkit