SUMMARY
This article describes how to render an image in multiple tiles using Katana in Batch Mode, and how to subsequently stitch the separate tiles together to form one complete image.
MORE INFORMATION
When an image is rendered in tiles, it is divided horizontally and vertically into smaller images referred to as tiles. These tiles are written out as separate files and then assembled into the final image.
In Katana, an image can be tile rendered by rendering each tile in Batch Mode from the command line, using the --tile-render
option.
Once all tiles have been rendered, the --tile-stitch
command is used to assemble them, followed by the --tile-clean
command to delete the rendered separate tiles and leave only the final image.
The following is an example of terminal / command prompt commands used to render 2x2 tiles for an image, then stitch them together, and clean up the process:
Linux
First, navigate to the directory where you have Katana installed using the cd command, for example:
cd /opt/foundry/katana
Then, run the following commands to render the 2x2 tiles for the image and stitch them together.
katana --batch --katana-file=/tmp/clean.katana --render-node=Render -t 1 --tile-render=0,0,2,2 katana --batch --katana-file=/tmp/clean. katana --render-node=Render -t 1 --tile-render=0,1,2,2 katana --batch --katana-file=/tmp/clean. katana --render-node=Render -t 1 --tile-render=1,0,2,2 katana --batch --katana-file=/tmp/clean. katana --render-node=Render -t 1 --tile-render=1,1,2,2
katana --batch --katana-file=/tmp/clean.katana --render-node=Render -t 1 --tile-render=0,0,2,2 --tile-stitch --tile-clean
Windows
First, navigate to the directory where you have Katana installed using the cd command, for example:
cd C:\Program Files\Katana6.0v2\bin
Then, run the following commands to render the 2x2 tiles for the image and stitch them together.
katanaBin.exe --batch --katana-file=C:\temp\clean.katana --render-node=Render -t 1 --tile-render=0,0,2,2
katanaBin.exe --batch --katana-file=C:\temp\clean.katana --render-node=Render -t 1 --tile-render=0,1,2,2
katanaBin.exe --batch --katana-file=C:\temp\clean.katana --render-node=Render -t 1 --tile-render=1,0,2,2
katanaBin.exe --batch --katana-file=C:\temp\clean.katana --render-node=Render -t 1 --tile-render=1,1,2,2
katanaBin.exe --batch --katana-file=C:\temp\clean.katana --render-node=Render -t 1 --tile-render=0,0,2,2 --tile-stitch --tile-clean
NOTE: It is possible to run the --tile-stitch
command without using --tile-clean
, however ---tile-clean
will currently only work if it is preceded by --tile-stitch
.
For more information on the syntax of these batch render options, please see the Katana User Guide on Batch Mode.
We're sorry to hear that
Please tell us why