Render in two separated viewport (one for camera 2d, one for tilemap)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By chtimy

Hello everybody,

I would like to make a rendering in two different parts of my scene as shown in the following tree :

|ColorRect → combine of the viewports
|------|Character (Control)
|------------|Viewport
|-----------------|TilemapA
|-----------------|Sprite
|------------------------|Camera2D
|------|Control2
|------------|Viewport
|----------------- |TilemapB

The aim is following the character with a camera2D walking inside the tilemapA. In the same time, I want to render a specific sub part of the scene, the tilemapB, in another viewport. It’s because I want to apply circular transparency around the player for the elements of the tilemapB over the character.

But it doesn’t work… Do you have a setup to make it in a good way?

Thank you for your help!