Jump to content

VRDeviceOrientationFreeCamera and FOV change?


AndyBeaulieu
 Share

Recommended Posts

I upgraded a project to BJS v3.0 and am seeing a difference in VRDeviceOrientationFreeCamera which maybe is FOV related? (Basically a lot of culling going on in the new v3.0 version)

If you look at the attached files:

  • babylonjs_VRDeviceOrientationFreeCamera_before.png shows what the VR camera rendered like before v3.0
  • babylonjs_VRDeviceOrientationFreeCamera_after.png shows what the VR camera renders like in v3.0

Notice that the camera is positioned inside a vehicle cab. In the "before" pic we have a nice rendering. But in the "after" pic the top of the vehicle cab and the steering wheel is culled away.

I tried changing .fov on both the main camera and _rigCameras but doesn't seem to make a diff.

                that._cameraList[enumCameraList.cabViewVR].fov = XX;
                that._cameraList[enumCameraList.cabViewVR]._rigCameras[0].fov = XX;
                that._cameraList[enumCameraList.cabViewVR]._rigCameras[1].fov = XX;

I read in a separate thread that maybe VRCameraMetrics.postProcessScaleFactor can be tweaked but I cannot find much detail around that.

Thanks for any ideas!

 

 

babylonjs_VRDeviceOrientationFreeCamera_before.png

babylonjs_VRDeviceOrientationFreeCamera_after.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...