Search code examples
iosscenekitmetal

SceneKit Draw Infinite Grid View in XZ Plane similar to XCode Scene Editor


I tried using the SCNFloor and Material, but it draws with limited width and length.

Is there any way I can generate an infinite grid.


Solution

  • Probably this could be the issue: Have you checked the zFar value of your SCNCamera? the Default is: 100m (this means everything that's more fare away is clipped by the renderer) - you might want to set it to a really high value and also disable the automaticallyAdjustZRange property (what should be the default). Hope I could help you.