• 赚钱入口【需求资源】限时招募流量主、渠道主,站长合作;【合作模式】CPS长期分成,一次推广永久有收益。主动打款,不扣量;

How to disable camera feed while keeping LiDAR debug mesh?

iOS cps12345 1个月前 (12-06) 36次浏览 0个评论

I’m running an iOS14 ARSession on a LiDAR enabled device, and have it output the mesh overlay that it is dynamically creating over the camera feed.

Is it possible to disable the camera feed for the ARView or ARSession, while still seeing the debug mesh overlay?

Here’s how I’m showing the mesh overlay:

arView.debugOptions.insert(.showSceneUnderstanding)

What I want to see: black screen with colored lines representing mesh vertices and faces.

解决

Yes, it’s possible to disable a camera feed while keeping only LiDAR debug mesh:

@IBOutlet var arView: ARView!

arView.environment.background = .color(.black)

…and if you need to get your camera feed back just use:

arView.environment.background = .cameraFeed()
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址