Skip to content

[HDRP] Add support for the recorder / camera bridge in the graphics compositor - #4599

Merged
sebastienlagarde merged 1 commit into
hd/bugfixfrom
HDRP/compositor_camerabridge
May 28, 2021
Merged

[HDRP] Add support for the recorder / camera bridge in the graphics compositor#4599
sebastienlagarde merged 1 commit into
hd/bugfixfrom
HDRP/compositor_camerabridge

Conversation

@pmavridis

Copy link
Copy Markdown
Contributor

Purpose of this PR

Previously the output camera of the graphics compositor could not be directly captured by the Recorder, because the camera bridge interface was not implemented.

With this PR the recorder and other external scripts that use the camera bridge can directly capture the compositor’s output (without capturing the game view)

[This was requested by an internal team]


Testing status

I have tested this using the Recorder 3.0.0-pre.1 and by capturing the compositor's output camera:
image
both with and without a RenderTarget output. In both cases the image was captured correctly.


Comments to reviewers

This looks easy and safe to backport, so I have added the tags.

@sebastienlagarde
sebastienlagarde marked this pull request as ready for review May 21, 2021 08:59
@sebastienlagarde
sebastienlagarde requested a review from a team May 21, 2021 08:59

@iM0ve iM0ve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also verified using our HDRP FTP project scene.
Before the PR:

  • Was possible to record compositor if the source was Game view
  • Impossible to record if the source was set Targeted Camera. Errors in the console while trying to record.

After the PR

  • Still possible to record Game view
  • Now possible to record when using Targeted Camera. Tested with video and image capture
  • No visual difference in the output, before vs after PR
movie_002.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants