Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Changing "nearClipPlane" and "farClipPlane " on runtime


Fibrum_dev
 Share

Recommended Posts

Trying to control "nearClipPlane" and "farClipPlane " camera parameters on runtime, but seems like it's being set once on the start by SDK and locked for further changes.

 

Any ideas how to cope with that and make it work correctly with Fog, Terrain etc?

Thanks!

 

Link to comment
Share on other sites

“WaveVR_Render” of SDK creates the both eyes’ cameras based on the original head camera at the very beginning, so it will copy the near and far clips to the eye cameras.

Then during the runtime, even users change the original head camera near/far clips, it will not affect the eye camera. So suggest to change the cameras clips of the eyes, it should work.

 

Link to comment
Share on other sites

Thanks for quick reply, Tony!

 

But we did try to change it on Eye cameras. Unfortunately, it also had no effect at all.

 

What we made to solve it - recalculating camera.projection on LateUpdate. But not sure it's correct and legit decision and it won't generate any overheads for rendering.

Could you please comment on that?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...