Creating Image Processing Presets

Lumberyard contains an existing set of image processing presets. You apply these presets
on your source image file names before you add them in your Lumberyard directory for
processing. Based on
the appended suffix for the file name, Asset Processor converts them into .dds files with specific settings and adds them to the
lumberyard_version\dev\Cache directory.

You can define presets
in
two ways:

(Recommended method) ImageCompiler.cpp and rc.ini

The ImageCompiler.cpp file contains the code that finds a file name suffix match, and points to another
file for the specific settings. The rc.ini file
defines those specific settings for the matched suffix.

AssetProcessorPlatformConfig.ini

The AssetProcessorPlatformConfig.ini file matches file name suffix patterns and then calls functions to process the file
based on its matches.

Creating Presets with ImageCompiler.cpp and rc.ini

The following snippet is from ImageCompiler.cpp, located in the
lumberyard_version\dev\Code\Tools\RC\ResourceCompilerImage directory. Part of this code finds file names appended with
_bump, and then calls the
presetName function
defaultBump, which derives its settings from NormalsFromDisplacement (defined in rc.ini).

Creating Presets with AssetProcessorPlatformConfig.ini

You can also add presets in the AssetProcessorPlatformConfig.ini file, located in the lumberyard_version\dev
directory.

Example

The following snippet from AssetProcessorPlatformConfig.ini shows two rules, both of which match a file that ends in _awesome.tiff. The
image is processed for each rule that it matches. In this example, multiple results
(assets) would be produced for each image.