From 20dc02d8dbe0ce40415d94c4e1796c9d89af2677 Mon Sep 17 00:00:00 2001 From: yannk Date: Tue, 28 Dec 2021 16:55:03 +0100 Subject: [PATCH] Adding information about json file content --- README.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index edf7f2b..2965a1a 100644 --- a/README.md +++ b/README.md @@ -10,42 +10,51 @@ The file `global-config.mk` contains configuration informations about paths to s Simply write either the absolute or the relative path from your Makefile script situation for any information needed. -## Sbsar files generation part +#### Sbsar files generation part You need to define a sbs source folder where the script will check for new content in the `SBS_DIR` variables content. You must write down also the place where the script will write the generated sbsar. -## Executables used +#### Executables used These are the adress of the substance automation toolkit binaries. Note you can use former variables defined sooner in the file, like it is done in the `--includes` section of MAKESBSAR. -## Texturesets files +#### Texturesets files This files will be used only internally by the script to check the texturesets it handles. -# Texture names possible +#### Texture names possible This variable is needed to recognize the files created as bitmaps from the substance source, it must include all the identifiers used in all the graphs, separated by a pipe and no space. It is used as regexp rule in the script. -## Png files folders +#### Png files folders Theses are the places where the script will generate the final png files. It will be the main repository used as reference to fill hereafter all the targets needed in any package needed. -## Blender related +#### Blender related You have to define also a blender file directory where you will store the files used to generate previews of texturesets. They will be handled vie the `material_list.json` file indicated in the following section. They will have to be organized a special way to function, see later. The `BLENDEREXEC` variable is the path to the binary used to generate the preview. It must be compatible with the version used to save the renders files. -## Logo file +#### Logo file Indicate any logo you would need as watermark in any of the content. -# Destination preview folder +#### Destination preview folder Where you will save the renders of the previews of each textureset generated by Blender. -# Material list +#### Material list The path to the json file used to manage all the metadata linked to texturesets and proper management of the content generated by the script. It must comply to a specific organisation and content to work properly. + +### Configuration of the json file + +- « `name` » is the mundane texture name +- « `description` » is the description of the texture +- « `type` » is the subfolder name in `BLENDFILES_FOLDER` in the `local-config.mk` file the blender files used to generate the rpeviews are stored +- « `destination_1024` » is the folders names list where to copy the generated textrues files in 1024x1024, it can be left with an empty field if non-relevant. +- « `destination_512` » is the folders names list where to copy the generated textrues files in 512x512, it can be left with an empty field if non-relevant. +- « `destination_256` » is the folders names list where to copy the generated textrues files in 256x256, it can be left with an empty field if non-relevant.