Jump to content

Two cameras on same screen, scene above another


Dawadam
 Share

Recommended Posts

:) Cool, S! 

http://playground.babylonjs.com/#13TVWJ#2

There's a 5-viewport demo.  Believe it or not, the 2 blue lines are also cams/viewports.  The "divider line cams" are aimed at a blue plane... positioned far away from the scene.  You can pan the camera around and see the blue plane... far away... out on the lonesome prairie.  :)

Yeah, I know.  Using a short, wide (or tall, narrow) viewport to make a blue divider line... seems pretty dumb... but I think it's cool.

A fullscreen AdvancedDynamicTexture with an added short, wide rectangle control... could also do it, me thinks.  That option wasn't yet invented... when I built this tri-viewport demo long ago.  :)

Someday, maybe we'll see dock-able and float-able viewports... create/delete anytime while playing... drag from floating to docking, or vise versa... using gutters and layoutManagers.  Erf.  HARD!

Robert Ginda (a hero of mine) built the GUI for Mozilla extensions... Venkman (JS Debugger) and Chatzilla (IRC client)... with XUL/JS... long long ago.  He built an "MDI form"-like layoutManager that allowed docking/floating views and arrange-it-yourself drag-drop gutters and stuff.  It even saved that view-layout in prefs.  Beautiful.

Erf again!  I studied it for awhile... got a brain tumor... and ran away to a cabin in the woods for 2 years... to recover.  :D

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...