Open bercium opened 7 years ago
window.worldRenderer.camera.fov = 90;
window.worldRenderer.camera.updateProjectionMatrix()
I'm using the javascript api. The worldRenderer is not defined on window. How to modify the FOV?
@hutchij You can use the javascript api in the embed iframe. But no external api can be used, you can add communication interfaces between the embed iframe and player.
If you want finish change fov value fastly, you can hard code it. change 75 value. https://github.com/googlevr/vrview/blob/2dd890d147f702b9c561694bda5c86575c2a3d44/src/embed/world-renderer.js#L263
Thankyou @ichengde. This is exactly the answer I've been looking everywhere for.
Hi,
is there any easy way to change field of view? For spheres of tight spaces it looks really weird with the default one.
Thank you.