# OpenXR Disable nearclip enforcement?

**URL:** <https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334>\
**Category:** Unity Development\
**Tags:** development, unity\
**Created:** [April 1, 2024, 4:11pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334 "2024-04-01T16:11:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shijin](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shijin](https://forum.magicleap.cloud/u/shijin)\
**Post date:** [April 1, 2024, 4:11pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/1 "2024-04-01T16:11:05Z")

</div>

How do I disable the near clip enforcement ? The project I am working on has guns and aiming down sights isn't gonna work well with the minimum enforced near clip distance of .25... I tried to set the RenderSettings.enforceNearClip to false, but that didn't do anything 😕

I am working with OpenXR btw...

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [April 1, 2024, 6:04pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/2 "2024-04-01T18:04:47Z")

</div>

The device prevents users from settings the clipping plane too close to prevent eye strain or discomfort when viewing content. That said, if you share more information about your use case I can provide your feedback to the voice of customer team.

Here is more information about the clipping plane and display zone on the Magic Leap 2: [Display Zone Overview | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/features/display-zone/display-zone-concept/)

And here is more information about the strain that can be caused when looking at objects that are too close to the user: [Vergence-Accomodation Conflict | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/features/display-zone/vergence-accomodation-conflict/)

---

<div class="post-metadata">

**Author:** ![shijin](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shijin](https://forum.magicleap.cloud/u/shijin)\
**Post date:** [April 1, 2024, 7:00pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/3 "2024-04-01T19:00:55Z")

</div>

Thanks for the reply 🙂

I did read through all the documentation, I must say, it makes absolutely no sense to lock developers out of setting the near plane distance for our application. You could warn us about the potential issues of using a lower value than recommended, but the choice should be with the developer. This is pretty much make or break for a lot of potential projects that I could think of.

In my case, I am making a virtual gun range, How exactly is the user supposed to aim through the sights with a near clip distance of .25 ? The user most likely wouldn't be focusing on the sights, rather just looking through the sights, so the discomfort might not even be that much. Even if there was any discomfort, it is well traded for the functionality. Please allow us to decide for our own apps 🙂

---

<div class="post-metadata">

**Author:** ![shijin](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shijin](https://forum.magicleap.cloud/u/shijin)\
**Post date:** [April 1, 2024, 7:06pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/4 "2024-04-01T19:06:48Z")

</div>

Also, I have a similar app installed on my device which allows me to bring the gun close to my eyes. So, there are apps out there that already does this..

---

<div class="post-metadata">

**Author:** ![shijin](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shijin](https://forum.magicleap.cloud/u/shijin)\
**Post date:** [April 2, 2024, 10:30pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/5 "2024-04-02T22:30:30Z")

</div>

@kbabilinski Would it be possible in some way to remedy this ? The app that I am building wouldn't work without this... and again, other apps on magic leap already allows the near clip to be way less than .25...

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [April 5, 2024, 7:33pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/6 "2024-04-05T19:33:29Z")

</div>

Thank you for that information. We constantly investigate ways to support the use cases of our customers, so your description has been very helpful. I have shared your feedback to our voice of customer team.

Regarding a solution, unfortunately we do not have any workaround at this time but if this changes we will highlight it in the release notes and developer newsletter.

Do you mind sharing which application does not enforce the near clip policy?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [April 20, 2024, 7:33pm UTC](https://forum.magicleap.cloud/t/openxr-disable-nearclip-enforcement/3334/7 "2024-04-20T19:33:38Z")

</div>

Closed on April 20, 2024, 7:33pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
