Split screen

I am implementing a two player mode and one possible approach is via split-screen.

Is there a way to render different proxycollections in different viewports? I don’t want to duplicate all materials and have different tags for the different viewports…

Many thanks!

Here is example from @britzl
https://britzl.github.io/publicexamples/

https://britzl.github.io/publicexamples/camera/index.html

4 Likes

@AGulev thank!

I am not sure I understand the example, but it seems to me that for each camera the engine is rendering the whole (uunique) world using different viewports.

I would like to render the (proxy)collection A in the viewport A and the (proxy)collection B in viewport B. In particular the two collections are instances of the same collection.

You could potentially have your proxied worlds at unique world locations and then use the technique posted above for rendering, that would be a way to avoid extra render tags.

@Pkeod thanks!

Yes, sure. But in this way the engine is rendering each object twice (and the viewports are filtering them).