brianzinn Posted October 15, 2017 Share Posted October 15, 2017 I want to show a "viewport" of a target camera in a corner of the canvas that will work in VR. Surely there is a better way, but this PG shows my visual goal:https://www.babylonjs-playground.com/#HJI09Z#1 Basically I have a TargetCamera and I take screenshots and set to source of GUI image. I'm just making sure there is not a well known better way before I get more creative. My goal is for this to work well in VR. I already had it working quite well with this code - but I am trying to move away from a second viewport as I'm assuming that won't work in VR: var viewport = new BABYLON.Viewport(0.79, 0.79, 0.2, 0.2); this.secondCamera.viewport = viewport; scene.activeCameras.push(secondCamera); Quote Link to comment Share on other sites More sharing options...
Arte Posted October 15, 2017 Share Posted October 15, 2017 Hi @brianzinn, Some time ago I created ViewCube in the upper right hand corner. Topic. Is this what you looking for? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted October 15, 2017 Author Share Posted October 15, 2017 Thanks Arte - that's not what I was looking for. More like a viewport that I can put in the scene 3D - was trying there with GUI image in that PG. Think of a teleportation portal where you can see the other side in your scene. I might end up changing the design to not need it, if I can't get good performance. Cheers. Quote Link to comment Share on other sites More sharing options...
Arte Posted October 15, 2017 Share Posted October 15, 2017 brianzinn 1 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.