ARKit – Render objects further away than 1000 meters

℡╲_俬逩灬. 提交于 2019-12-11 04:08:19

问题


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?


回答1:


In ARKit_2.0/SceneKit_2018, 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.

Hope this helps.



来源:https://stackoverflow.com/questions/52886638/arkit-render-objects-further-away-than-1000-meters

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