Lindenmayer icon indicating copy to clipboard operation
Lindenmayer copied to clipboard

SCNCamera should set zNear and zFar to show full scene

Open XanderXu opened this issue 2 years ago • 0 comments

Describe the bug In Lsystem3DView's generateScene func, add the SCNCamera, but use the default zNear(1m) and zFar(100m).

But it's too small, can't show the full plant, the scene has been clipped, can't see the far part.

Platform (please complete the following information): iOS 14

Additional context set zNear and zFar to camera should be ok

cameraNode.camera?.zNear = 0.1
cameraNode.camera?.zFar = 1000

XanderXu avatar Jul 18 '23 10:07 XanderXu