I’m struggling with a camera clipping issue specifically in AR (Needle Go).
The Setup: I have a very large model (approx. 1.3 km in length).
The Issue: On desktop/browser, my Far Clipping Plane settings on the Main Camera work as expected. However, when viewing the scene in AR via Needle Go, the geometry clips at a much shorter distance (around 200m).
Observations: It seems like the AR session ignores my camera’s far clip settings and applies a default, much shorter limit.
Is there a way to override the clipping plane for WebXR/AR sessions in Needle, or is this a hard limit imposed by the device’s AR capabilities?
Hi @M_K do you have a URL for us to try this? Needle Engine does not modify the far clipping plane. That being said your distance is extreme - Is this experience meant to be viewed on-site?
Yes, that’s exactly how it’s supposed to be. The model should blend into a realistic landscape. The XR Rig is also positioned exactly where I need it, since we want to look down into a valley. 0.1 brings my model to the correct AR size.
I checked and we currently apply a fixed zNear of 0.01 (1 cm) and zFar of 1000.0 (1 km) for AR sessions. In the scene link you shared (thanks!), your far plane is set to 100.000 (100 km), thus the flickering when viewing the scene from afar in the browser; I recommend adjusting far to the value you actually need and increasing near a bit as well to a reasonable value (sounds like you won’t get within 1cm of the model).
We’ll take a look if we can align the behaviour of near/far planes in Needle Go better with the way Android WebXR handles it – thanks for the report!
(Just out of curiosity: If your model is created to scale and you place it in AR with default Needle settings (ARSessionRoot scale of 1), we don’t scale anything, so you’ll get exactly the intended real-world size. So if you need to set ARSessionRoot scale to 0.1, it likely means that the model is modelled too large, maybe worth checking)
Hello Matthias, the next update of Needle Go will fix the issue and properly pass the near and farplane along that you configure (just as Android). Thanks again for the report.
The update will probably be available either within this week or in the beginning of the next.
Hi Needles, thank you so much, that was really quick! I can now get back to the project and test the new update. I hope it works well. I’ll give you feedback then.