/FrameCapture

A simple frame-by-frame capture tool for Unity to record perfectly smooth, supersampled replays or cinematics.

Primary LanguageC#MIT LicenseMIT

FrameCapture

A simple frame-by-frame capture tool for Unity to record perfectly smooth, supersampled replays or cinematics. Best used in the editor.

Tested with Unity 5.6+.

Instructions

Copy the FrameCapture folder into your project and add the component to the camera you wish to capture. The component will start recording as soon as it's enabled and will stop once disabled. Frames will be saved in your project folder (next to Assets and ProjectSettings) and will be numbered properly (a new folder will be created for each capture session).

Settings:

  • Frame Rate: Sets a desired framerate for the capture (the game timestep will be fixed to 1.0 / frameRate for the duration of the recording, regardless of real time and the time required to render a frame).
  • Samples: The number of samples to use for a relatively-cheap, temporal-like anti-aliasing filter. Higher means better quality. Set to 1 to disable the filter.
  • Supersample: Renders each frame at twice the original resolution and downscale them back. Very expensive, but also very high quality.

Maximum quality can be achieved by pushing Samples to 16 and enabling Supersample.

License

MIT (see LICENSE.txt)