Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
silentslack's avatar
silentslack
Explorer
10 years ago

Camera Field Of View

Hi,

I'm looking to implement a pair of binoculars but having trouble changing the main camera's field of view.  I understand that this is set to a default but I'm hoping to temporarily adjust this variable for a short sequence involving a pair of binoculars and changing the FOV would really work nicely here.

I'm attempting to set new FOV every frame in Update loop but isn't having any effect.  Thanks.

2 Replies

Replies have been turned off for this discussion
  • The main Camera's local pose, IPD, and FOV are immutable when VR is enabled because changing one of those values without changing the others would quickly cause discomfort (nausea). To do binoculars, you could translate and scale the VR camera, add vignettes, or make an additional camera that renders to a target texture with whatever FOV you need. Does one of those approaches work for your use case?
  • I've tried scale and translate and really couldn't get a convincing effect going.  Will attempt the target texture method.  Thanks!