Dawadam Posted September 26, 2018 Share Posted September 26, 2018 Hi, Is it possible and how to display two camera on same screen ? For displaying a scene above another. Thanks Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 26, 2018 Share Posted September 26, 2018 Hi @Dawadam an a welcome from me to the forum. You can read about using viewports to do this at http://doc.babylonjs.com/how_to/how_to_use_multi-views and here is a playground https://www.babylonjs-playground.com/#E9IRIF Quote Link to comment Share on other sites More sharing options...
Sebavan Posted September 26, 2018 Share Posted September 26, 2018 Just in case, here it is with 2 scenes: https://www.babylonjs-playground.com/#E9IRIF#1 Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 26, 2018 Share Posted September 26, 2018 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. Quote Link to comment Share on other sites More sharing options...
Dawadam Posted September 28, 2018 Author Share Posted September 28, 2018 Thank you very much, This forum is very responsive. @Sebavan your example suits me very well. @JohnK also. 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.