Fibrum_dev Posted May 4, 2018 Share Posted May 4, 2018 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 More sharing options...
Tony PH Lin Posted May 4, 2018 Share Posted May 4, 2018 “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 More sharing options...
Fibrum_dev Posted May 4, 2018 Author Share Posted May 4, 2018 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 More sharing options...
Tony PH Lin Posted May 4, 2018 Share Posted May 4, 2018 From our project experience, using LateUpdate doesn't work. Only we can share is normally we set farClipPlane less than 1000 to avoid extra rendering loss. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.