Investigate ways of doing split-screen cameras
See original GitHub issueIn order to do this, the entire in memory canvas needs to be up for grabs for rendering. Then you take the pixels in the specific camera frustum and compose the multiple frustums together.
engine.currentScene.cameras = [camera1, camera2];
// get individual frustums
var frustum1: ex.Texture = camera1.getFrustum();
var frustum2: ex.Texture = camera2.getFrustum();
// compose cameras
var composer = new CameraComposer();
engine.currentScene.cameraComposer = composer;
This will break all off screen culling logic 😕
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Testing eCamm's split screen feature - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >Sequence & Custom Split How-To (NVR Interface) - YouTube
How do you arrange your cameras on screen? How do you change their viewing area sizes to better fit your monitor or TV?...
Read more >How to mix to video sources into a split screen (two inputs ...
I want to build a circuit for my car (It has two cameras, front and rear) that shows me the front and rear...
Read more >How to get a split screen feed. Try with SmartThin...
I want a tablet on my wall with all my cameras live view on 24/7. Of course they need to have the charger...
Read more >Split screen cameras display black screens [4.7 Preview 6]
Setting it up the same way in 4.6 resulted in no issues. Ben_Halliday February 11, 2015, 10:32pm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Proposal:
We shouldn’t confine this feature to just ‘split-screen’ scenarios, we should allow different types of camera displays, in a ‘Multi-camera’ system.
In the above screenshot, you can see 2 players, with their own camera in a rectangle. On top of each player, they both have a mini-map, which is a separate camera that separately displays the map from each player’s own position. On the bottom, a smaller version of the other player’s view can be seen, for co-op style game play.
Obviously this is just an example, but I believe that allowing very custom/dynamic camera rendering would allow developers to do anything they can imagine (maybe?).
@eonarheim fyi
@JumpLink nothing recent, there is some work going on to refactor the WebGL renderer to allow easier post processing to render targets that might be eventually useful in creating multiple cameras.
I’ll slot this into our v1 roadmap, but no promises on a timeline. This potentially will require some plumbing changes in Excalibur to allow multiple cameras, running the draw routines per camera, and compositing the results together.
Tentatively I’ve placed this on v0.27.0 #1161