MrVR Posted February 17, 2017 Share Posted February 17, 2017 Hi Guys I was wondering if is posible to have two vew ports in the two sides of the VR camera. @MackeyK24 let me know if you know the answer please let myCamera: BABYLON.FreeCamera = new BABYLON.VRDeviceOrientationFreeCamera("FreeCamera", new BABYLON.Vector3(0, 0, 0), this.scene); this.scene.activeCamera.position, this.scene); myCamera.attachControl(this.engine.getRenderingCanvas()); this.scene.activeCameras.push(myCamera); this.scene.activeCameras.push(this.scene.activeCamera); this.scene.activeCamera.viewport = new BABYLON.Viewport(0, 0, 0.5, 1.0); myCamera.viewport = new BABYLON.Viewport(0.2, 0, 0.2,0.5); I only get this in one side of the left lens do I have to create a third one , I need to have a camera view port inside my vr camera if any body knows how to do it it would be appreciated. thanks 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.