Camera Near Clip Plane in VR that is smaller than 1 doesn't work

Hello all! I am building a project in VR where you get to scale yourself on a scale of 1:1000. I have set up everything and things are working fine. However, upon scaling the player down using “Set World To Meters” and doing other physics work, I have a problem in regards to camera near clip plane.

I am encountering an issue where no matter if I open up the console manually and type “r.SetNearClipPlane 0.001” it does not work out at all. Anything smaller than the value of 1 would not work. Tried looking everywhere but haven’t found an answer yet. Other values would work but it doesn’t work below 1.

I also tried in Project Settings, setting the global near clip plane to 0.001 but still nothing.

There is another command “VREd.DefaultVRNearClipPlane” but that wouldn’t do anything either.

I want this to be in runtime. Because the player can change scale using a machine that you interact with that scales you down. (I don’t care if it is snappy I can hide it with a fade to black or smth. I just want it like how in editor we have that.

I want to be able to achieve the r.SetNearClipPlane 0.001 somehow. This is for my VR school project and the proffessor is asking everyone to do this 1:1000 scale.

Thanks.

It’s hardcoded to be minimum of 1 in UnrealEngine.cpp. You can’t set it lower without modding the engine, and for this I would def stay away from as you’re messing with render precision changing the clipping plane.

Personally, I would approach this scaling my world assets rather than scaling the char/physics as moving away from the standard setup can get you into numerical precision error territory pretty easily. I’ve done work on Quest3 scaling vr characters and backed that out eventually as there are several pitfalls to doing this.

Sounds like a cool project! Best of luck!

1 Like