Jump to content

GUI "Viewport"


Recommended Posts

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:
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;


Link to comment
Share on other sites

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.

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.

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.


  • Recently Browsing   0 members

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