IssueRaiser

Support using multiple cameras in a single viewport

<!-- Please fill in *all* the questions below and don't remove any of them. Proposals not following the template below will be closed immediately. --> **Describe the project you are working on:** A first-person shooter, making use of first-person viewmodels that are separate from third-person/worldspace models. **Describe the problem or limitation you are having in your project:** Godot currently only supports rendering one camera per viewport. This makes the following use-cases difficult to implement: - Secondary camera with fixed FOV for consistent viewmodel appearance despite changes to primary camera FOV - 3d "skybox" implementation where distant/background objects are rendered at a smaller scale in a separate scene. **Describe the feature / enhancement and how it helps to overcome the problem or limitation:** Allowing multiple cameras (with different render masks) to render to the same viewport would overcome this problem. For each use case: - A primary camera is used to render the world, with player-changeable FOV. A secondary camera is used to render viewspace objects, such as gun viewmodels, hands, grenades, etc. - A primary camera is used to render near objects; a secondary camera is used to render far objects which are stored in a separate 3d render layer. This is a feature that is present in both Unreal and Unity, and is used for similar reasons. **Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:** Cameras will have a `dep

Posted by Mantissa-23 on May 29, 2020, 12:13 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

ux (Other)

Support using multiple cameras in a single viewport

Mantissa-23May 29, 2020, 12:13 AM

<!-- Please fill in *all* the questions below and don't remove any of them. Proposals not following the template below will be closed immediately. --> **Describe the project you are working on:** A first-person shooter, making use of first-person viewmodels that are separate from third-person/worldspace models. **Describe the problem or limitation you are having in your project:** Godot currently only supports rendering one camera per viewport. This makes the following use-cases difficult to implement: - Secondary camera with fixed FOV for consistent viewmodel appearance despite changes to primary camera FOV - 3d "skybox" implementation where distant/background objects are rendered at a smaller scale in a separate scene. **Describe the feature / enhancement and how it helps to overcome the problem or limitation:** Allowing multiple cameras (with different render masks) to render to the same viewport would overcome this problem. For each use case: - A primary camera is used to render the world, with player-changeable FOV. A secondary camera is used to render viewspace objects, such as gun viewmodels, hands, grenades, etc. - A primary camera is used to render near objects; a secondary camera is used to render far objects which are stored in a separate 3d render layer. This is a feature that is present in both Unreal and Unity, and is used for similar reasons. **Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:** Cameras will have a `dep

Comments (0)

No comments yet. Start the discussion.

Comment on this issue