问题
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 than1000m
SceneKit's shader violently begins flickering and approximately at1600m
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