You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're developing a MR shooting game, and we noticed this interesting relationship between Near Clip Plane setting and Depth Occlusion when we're tweaking the Clip Plane distance so we can hold the gun closer to user's face.
We fond that when the Near Clip Plane is set to 10.0 (Unreal default), it behave correctly; once we start to increase the value, it starts to prioritise virtual objects, and when decrease the value it seems to also bring the camera depth distance down and the virtual object starts to be occluded earlier.
The same behavior can be reproduced in Occlusion Sample:
com.oculus.vrshell-20241122-220547-0.mp4
Not a huge issue but would be nice if there's a way to adjust clip plane distance and not mess up Depth occlusion!
We tested in UE53 and UE54, using MetaXR plugin version 65/ 68 / 71 and they all appear to have the same behaviro.
The text was updated successfully, but these errors were encountered:
As you can see above the GNearClippingPlane variable controls the near clipping plane. I'm not sure if r.SetNearClipPlane also updates this variable or not. But if it doesn't then that could be the issue. As a work-around you could try hard-coding the near clip value you want in here to see if it resolves the problem for you.
Hi all,
We're developing a MR shooting game, and we noticed this interesting relationship between Near Clip Plane setting and Depth Occlusion when we're tweaking the Clip Plane distance so we can hold the gun closer to user's face.
We fond that when the Near Clip Plane is set to 10.0 (Unreal default), it behave correctly; once we start to increase the value, it starts to prioritise virtual objects, and when decrease the value it seems to also bring the camera depth distance down and the virtual object starts to be occluded earlier.
The same behavior can be reproduced in Occlusion Sample:
com.oculus.vrshell-20241122-220547-0.mp4
Not a huge issue but would be nice if there's a way to adjust clip plane distance and not mess up Depth occlusion!
We tested in UE53 and UE54, using MetaXR plugin version 65/ 68 / 71 and they all appear to have the same behaviro.
The text was updated successfully, but these errors were encountered: