渲染应用程序Rendering applications

可通过创建 Batch 作业和任务来使用渲染应用程序。Rendering applications are used by creating Batch jobs and tasks. 任务命令行属性指定相应的命令行和参数。The task command line property specifies the appropriate command line and parameters. 创建作业任务的最简单方法是使用此文中所述的 Batch Explorer 模板。The easiest way to create the job tasks is to use the Batch Explorer templates as specified in this article. 可以查看这些模板,并根据需要修改创建的版本。The templates can be viewed and modified versions created if necessary.

本文简要介绍如何运行每个渲染应用程序。This article provides a brief description of how to run each rendering application.

使用 Autodesk 3ds Max 进行渲染Rendering with Autodesk 3ds Max

渲染器支持Renderer support

除了 3ds Max 中内置的渲染器以外,还可在渲染 VM 映像中使用以下渲染器,并通过 3ds Max 场景文件来引用这些渲染器:In addition to the renderers built into 3ds Max, the following renderers are available on the rendering VM images and can be referenced by the 3ds Max scene file:

  • Autodesk ArnoldAutodesk Arnold
  • Chaos Group V-RayChaos Group V-Ray

任务命令行Task command line

调用 3dsmaxcmdio.exe 应用程序,在池节点上执行命令行渲染。Invoke the 3dsmaxcmdio.exe application to perform command line rendering on a pool node. 运行任务时,此应用程序即会启动。This application is on the path when the task is run. 3dsmaxcmdio.exe 应用程序的可用参数与 3dsmaxcmd.exe 应用程序相同,具体请参阅 3ds Max 帮助文档(“渲染”|“命令行渲染”部分)。The 3dsmaxcmdio.exe application has the same available parameters as the 3dsmaxcmd.exe application, which is documented in the 3ds Max help documentation (Rendering | Command-Line Rendering section).

例如:For example:

3dsmaxcmdio.exe -v:5 -rfw:0 -start:{0} -end:{0} -bitmapPath:"%AZ_BATCH_JOB_PREP_WORKING_DIR%\sceneassets\images" -outputName:dragon.jpg -w:1280 -h:720 "%AZ_BATCH_JOB_PREP_WORKING_DIR%\scenes\dragon.max"

说明:Notes:

  • 请务必小心操作,以确保能够找到资产文件。Great care must be taken to ensure the asset files are found. 使用“资产跟踪”窗口来确保路径正确且相关,或者在命令行中使用 -bitmapPath 参数。Ensure the paths are correct and relative using the Asset Tracking window, or use the -bitmapPath parameter on the command line.
  • 运行任务时检查 3ds Max 写入的 stdout.txt 文件,查看渲染器是否有问题,例如,找不到资产。See if there are issues with the render, such as inability to find assets, by checking the stdout.txt file written by 3ds Max when the task is run.

Batch Explorer 模板Batch Explorer templates

可以从 Batch Explorer 中的“库”访问池和作业模板。Pool and job templates can be accessed from the Gallery in Batch Explorer. GitHub 上的 Batch Explorer 数据存储库中提供了模板源文件。The template source files are available in the Batch Explorer data repository on GitHub.

使用 Autodesk Maya 进行渲染Rendering with Autodesk Maya

渲染器支持Renderer support

除了 Maya 中内置的渲染器以外,还可在渲染 VM 映像中使用以下渲染器,并通过 3ds Max 场景文件来引用这些渲染器:In addition to the renderers built into Maya, the following renderers are available on the rendering VM images and can be referenced by the 3ds Max scene file:

  • Autodesk ArnoldAutodesk Arnold
  • Chaos Group V-RayChaos Group V-Ray

任务命令行Task command line

renderer.exe 命令行渲染器在任务命令行中使用。The renderer.exe command-line renderer is used in the task command line. Maya 帮助中介绍了命令行渲染器。The command-line renderer is documented in Maya help.

在以下示例中,使用了作业准备任务将场景文件和资产复制到作业准备工作目录,使用了一个输出文件夹来存储渲染图像,并渲染了第 10 帧。In the following example, a job preparation task is used to copy the scene files and assets to the job preparation working directory, an output folder is used to store the rendering image, and frame 10 is rendered.

render -renderer sw -proj "%AZ_BATCH_JOB_PREP_WORKING_DIR%" -verb -rd "%AZ_BATCH_TASK_WORKING_DIR%\output" -s 10 -e 10 -x 1920 -y 1080 "%AZ_BATCH_JOB_PREP_WORKING_DIR%\scene-file.ma"

对于 V-Ray 渲染,Maya 场景文件通常将 V-Ray 指定为渲染器。For V-Ray rendering, the Maya scene file would normally specify V-Ray as the renderer. 也可以在命令行上指定渲染器:It can also be specified on the command line:

render -renderer vray -proj "%AZ_BATCH_JOB_PREP_WORKING_DIR%" -verb -rd "%AZ_BATCH_TASK_WORKING_DIR%\output" -s 10 -e 10 -x 1920 -y 1080 "%AZ_BATCH_JOB_PREP_WORKING_DIR%\scene-file.ma"

对于 Arnold 渲染,Maya 场景文件通常将 Arnold 指定为渲染器。For Arnold rendering, the Maya scene file would normally specify Arnold as the renderer. 也可以在命令行上指定渲染器:It can also be specified on the command line:

render -renderer arnold -proj "%AZ_BATCH_JOB_PREP_WORKING_DIR%" -verb -rd "%AZ_BATCH_TASK_WORKING_DIR%\output" -s 10 -e 10 -x 1920 -y 1080 "%AZ_BATCH_JOB_PREP_WORKING_DIR%\scene-file.ma"

Batch Explorer 模板Batch Explorer templates

可以从 Batch Explorer 中的“库”访问池和作业模板。Pool and job templates can be accessed from the Gallery in Batch Explorer. GitHub 上的 Batch Explorer 数据存储库中提供了模板源文件。The template source files are available in the Batch Explorer data repository on GitHub.

后续步骤Next steps

通过 Batch Explorer 使用 GitHub 上的数据存储库中的池和作业模板。Use the pool and job templates from the data repository in GitHub using Batch Explorer. 如果需要,请创建新模板,或修改提供的某个模板。When required, create new templates or modify one of the supplied templates.