ARKit – 渲染 1000 米以外的物体 [英] ARKit – Render objects further away than 1000 meters

查看:18
本文介绍了ARKit – 渲染 1000 米以外的物体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试渲染比 1000 更远的对象.

let box = SCNBox(width: 500, height: 500, length: 500, chamferRadius: 0)让 boxNode = SCNNode(geometry: box)boxNode.position = SCNVector3(0, 0, -2000)sceneView.scene.rootNode.addChildNode(boxNode)

从这个

您的 ARCamera 不呈现应用程序的 3D 内容.这个着色器的工件是 SceneKit 的渲染引擎问题.所以,您目前与此无关.

I'm trying to render objects further away than 1000.

let box = SCNBox(width: 500, height: 500, length: 500, chamferRadius: 0)
let boxNode = SCNNode(geometry: box)
boxNode.position = SCNVector3(0, 0, -2000)
sceneView.scene.rootNode.addChildNode(boxNode)

From this this answer I know that ARKit directly sets SCNCamera's projectionTransform. So is there anyway I change this projectionTransform in order to render objects further away?

解决方案

In ARKit_3.0/SceneKit_2020, if a distance from ARCamera to 3D model is greater than 1000m SceneKit's shader violently begins flickering and approximately at 1600m model disappears completely.

Your ARCamera doesn't render application's 3D content. This shader's artifact is SceneKit's rendering engine issue. So, you have nothing to do with that at the moment.

这篇关于ARKit – 渲染 1000 米以外的物体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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