Trigger lightmap baking from the command line

You can start the Stingray engine application from a command-line prompt, and provide parameters on the command line to trigger lightmap baking.

Note: Non-interactive baking is the default baking mode when you launch a baking session from the command line. See Baking with the Stingray baker.

To trigger lightmap baking from the command line

  1. Open a command prompt and change to the following directory:

    C:\Program Files\Autodesk\Stingray\<version>\engine\win64\dev
  2. Enter the following command:

    stingray_win64_dev.exe --toolchain "C:\Program Files\Autodesk\Stingray\<version>" --ini core/stingray_renderer/light_baker/standalone/light_baker --project-root <absolute path of the project's source data> --level <path of the level to bake, relative to the project root> --viewport-provider

Related topics