Jump to content

Changing "nearClipPlane" and "farClipPlane " on runtime


Fibrum_dev

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...