渲染动画

While rendering stills will allow you to view and save the image from the render buffer when it is complete, animations are a series of images, or frames, and are typically saved directly to disk as they are rendered.

By default, Blender automatically saves animation frames using the settings defined in the Output panel, while still renders must be saved manually from the render buffer or by using a Compositor File Output node.

This behavior depends on the Output option in the Output properties. When enabled (default), animation renders are written automatically. When disabled, Blender will not save render output from the Output panel and instead relies on alternative output methods such as Compositor File Output nodes. If no valid output method is available, rendering operations will report errors.

渲染帧后,您可能需要编辑剪辑,或者首先使用合成器对图像执行绿屏遮罩,消光,颜色校正,DOF等。然后将该结果送入定序器,在那里切割和混合剪辑并进行最终的覆盖。

最后,您可以从序列中导出渲染结果,并将帧压缩成视频文件。

工作流程

通常,您在动画中执行大量不同帧的中间渲染,以检查时间,光照,放置,材质等。在某些时候,您已准备好对要发布的完整动画进行最终渲染。

制作带有或不带声音的电影或动画时,可以使用两种方法。您应该使用的方法取决于渲染影片所需的CPU时间量。您可以以所需的分辨率渲染 "典型" 帧,然后乘以最终将进入影片的帧数,以达到总渲染时间。

如果总渲染时间是一个小时或更长时间,则需要使用 "帧序列" 方法。例如,如果要为胶片渲染一分钟的视频片段,则会有(每分钟60秒)X(每秒24帧)或每分钟1440帧。如果每帧渲染需要30秒,那么您将能够每分钟渲染两帧,或者需要720分钟(12小时)的渲染时间。

渲染占用所有可用的 CPU 时间;你应该在一夜之间渲染,当不需要计算机时,或者在渲染时将 Blender 设置为低优先级,并处理其他事情(留意内存空间!)。

直接方法

The Direct Approach, which is highly not recommended and not a standard practice, is where you set your output format to an AVI or MOV format, and click Animation to render your scene directly out to a movie file. Blender creates one file that holds all the frames of your animation. This method relies on automatic output saving being enabled. If Save Output is disabled, the render will fail unless an alternative output method is provided.

You can then use Blender's Video Sequencer to add an audio track to the animation and render out to an MPEG format to complete your movie.

帧序列

帧序列是一种更稳定的方法,您可以将输出格式设置为静止格式(如 JPG、PNG 或多层格式)。单击 动画 将场景渲染为一组图像,其中每个图像都是序列中的一个帧。

Blender creates a file for each frame of the animation when Save Output is enabled. If it is disabled, frames will only be written if a Compositor File Output node is configured.

You can then use Blender's Compositor to perform any frame manipulation (post-processing). You can then use Blender's Video Sequencer to load that final image sequence, add an audio track to the animation, and render out to an MPEG format to complete your movie. The Frame Sequence approach is a little more complicated and takes more drive space, but gives you more flexibility.

以下是一些可帮助您选择方法的指南。

直接方法

  • 总渲染时间小于一小时的短片段。

  • 稳定的电源。

  • 其他用途不需要电脑。

帧序列方法

  • 总渲染时间超过一小时。

  • 后期制作工作所需:

    • 颜色/照明调整

    • 绿屏/蒙版更换

    • 分层/合成

    • 最终产品的多种格式和分辨率

  • 压缩/编解码器所需的中间帧/调整。

  • 部件中需要精确的定时(例如,唇音同步到音轨)。

  • 可能需要中断渲染才能使用计算机,并且希望能够从中断处继续渲染。

帧序列工作流程

  1. 首先准备你的动画。

  2. 格式 面板中,选择渲染尺寸、像素宽高比、所需的帧范围,以及帧率(该参数应已设置)。

  3. 在输出面板中,配置输出路径和文件类型。

  4. 如果希望 Blender 自动保存渲染的帧,请确保已启用 保存输出。如果该选项已禁用,请确保已设置合成器文件输出节点

  5. 确认动画范围(帧开始和结束)。

  6. 保存您的 blend 文件。

  7. 动画 按钮,动画完成后,使用文件管理器导航至输出文件夹。如果输出保存设置正确,您将看到已渲染的帧。

  8. 在 Blender 中,打开视频序列器

    Note

    视频序列不支持多层 EXR 文件。要渲染为视频格式,您需跳过以下三个步骤,转而使用合成器中的图像导入节点

  9. 从添加菜单中选择 添加图像。从输出文件夹中选择要包含在动画中的所有帧。它们将作为片段添加到序列编辑器中。

  10. 现在,您可以编辑片段并添加效果或保持原样。您可以添加其他片段,如音频片段。

  11. 浏览动画以检查是否已包含所有帧。

  12. 在 “输出” 面板中,选择所需的容器和编解码器(例如 MPEG H.264)并对其进行配置。视频编解码器在输出选项中进行了描述。

  13. 单击 动画 渲染按钮,Blender 会将序列编辑器输出渲染到影片中。

提示

您的电脑在渲染影片的过程中意外关闭!

除非您的动画在几分钟内渲染,否则最好将动画渲染为单独的图像文件。而不是直接渲染到压缩的影片文件,使用无损格式(比如 PNG)。

如果出现问题,您可以轻松恢复,并且必须重新启动渲染,因为您已渲染的帧仍将位于输出目录中。

只需禁用 覆盖 选项即可开始渲染中断的位置。

然后,您可以使用 Blender 的序列编辑器从单独的帧中制作影片,或使用第三方编码软件。

动画预览

渲染动画序列的子集可能很有用,因为只有部分动画可能有错误。

使用图像格式进行输出,您可以使用 帧步长 选项渲染每个第 N 帧。然后禁用 覆盖 并将 帧步长 设置为 1 重新渲染。