Topic was automatically imported from the old Question2Answer platform.
Asked By
siamak-s
Imagine we divide screen to four viewports. One of them is root viewport and other threes are viewports which is placed as child of other nodes, and each viewport has a camera as child. These nodes (which have a viewport) maybe placed on another scene and attached to root scene (ex, KinematicBody as player with its own viewport).
From Viewports, node hierarchy effects on what node renders on what viewport. We want to break this constraint and all viewports on all levels of node hierarchy renders all node available from root node. How we can achieve that?
I think this is like split-screen situation. In order to achieve that, you need to assign the same world to your viewports, so they will render the same things. Then I think the camera used will be the one you put under these viewports:
- root (Viewport)
- YourLevel
- Stuff..
- ...
- Viewport1 <-- uses same world as root
- Camera1
- Viewport2 <-- uses same world as root
- Camera2
- Viewport3 <-- uses same world as root
- Camera3
- Viewport4 <-- uses same world as root
- Camera4
I used such setup only once to make a debug view and it worked, but I haven’t investigated more configurations than that.