Anyone know how to change the zFar or ARKIT ARCamera? Or get the current value of it.
I have a very large model thats being clipped. I think. In blender I had same issue and fixed it by setting far value on Frustum.
I can create a projection matrix for each camera frame but cant set it.
func session(_ session: ARSession, cameraDidChangeTrackingState camera: ARCamera) {
textManager.showTrackingQualityInfo(for: camera.trackingState, autoHide: true)
let projectionMatrix: matrix_float4x4 = camera.projectionMatrix(withViewportSize: camera.viewport.size,
orientation: .portrait,
zNear: 0.1,
zFar: 5000)
//ERROR - readonly
camera.projectionMatrix = matrix_float4x4
...