jellix Posted July 29, 2016 Share Posted July 29, 2016 Hi, I think that I could need custom camera metrics but in the documentation I don't find much about that. You can assign a CameraRigMode and that could have rigParameters (that I also can'f find any infos about). Are there any playground examples or further infos to that topic? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 29, 2016 Share Posted July 29, 2016 Hi Here are the default values: https://github.com/BabylonJS/Babylon.js/blob/9019f5d151943212e9602c1a6ed5b13800ed6ab2/src/Cameras/VR/babylon.vrCameraMetrics.ts#L50 And then if you want to play with values: var vrCameraMetrices = BABYLON.VRCameraMetrics.GetDefault(); //do the changes you want to here: vrCameraMetrics.interpupillaryDistance = 0.06; var cam = new BABYLON.WebVRFreeCamera("myCameraRocks!", BABYLON.Vector3.Zero(), scene, true, vrCameraMetrics) Quote Link to comment Share on other sites More sharing options...
jellix Posted August 1, 2016 Author Share Posted August 1, 2016 thanks a lot! Quote Link to comment Share on other sites More sharing options...
jellix Posted August 1, 2016 Author Share Posted August 1, 2016 Just a question: The constructor of a VRCamera doesn't accept an additional condition after the "true" (for compensation). Quote Link to comment Share on other sites More sharing options...
jellix Posted August 1, 2016 Author Share Posted August 1, 2016 Solved it by giving the information afterwards: this.camVR = new BABYLON.VRDeviceOrientationFreeCamera("camVR", new BABYLON.Vector3(0, 150, -200), scene, true); this.camVR.setCameraRigMode(BABYLON.Camera.RIG_MODE_VR, { vrCameraMetrics: vrCameraMetrics }); Thanks! Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 1, 2016 Share Posted August 1, 2016 Hi jellix, in 2.5 it does, this change was commited a few days ago. Try the latest nightly build. Quote Link to comment Share on other sites More sharing options...
jellix Posted August 1, 2016 Author Share Posted August 1, 2016 @RaananW okay, I see. So the next update has some things on board that I already like a lot ;-) GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 4, 2016 Share Posted August 4, 2016 And you can start using Babylonjs 2.5 (even in alpha version it is pretty stable:)) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.