.\" This man page was written by Martin Gerhardy in May 2020. It is provided .\" under the GNU General Public License 3 or (at your option) any later version. .TH @COMMANDLINE@ "1" "May 2020" "@COMMANDLINE@" .SH NAME @COMMANDLINE@ \- convert, export or modify voxel volumes .SH SYNOPSIS .PP \fB@NAME@\fR [\fIoption\fR] --input infile --output outfile .SH DESCRIPTION \fB@COMMANDLINE@\fP is a command line application that can convert several voxel volume formats into others. Supported formats are e.g. cub (CubeWorld), qb/qbt (Qubicle), vox (MagicaVoxel), vmx (VoxEdit Sandbox), kvx (Build engine), kv6 (SLAB6), binvox and others. It can also export to mesh formats like obj, gltf, stl and ply with a number of options. .SH OPTIONS .TP \fB\--crop\fR Reduces the volume sizes to their voxel boundaries. .TP \fB\--dump\fR Dump the scene graph of the input file. .TP \fB\--export-palette\fR Export the used palette data into an image. .TP \fB\--export-layers\fR Export all the layers of a scene into single files. It is suggested to name the layers properly to get reasonable file names. .TP \fB\--filter \fR Will filter out layers not mentioned in the expression. E.g. 1-2,4 will handle layer 1, 2 and 4. It is the same as 1,2,4. The first layer is 0. .TP \fB\--force|-f\fR Overwrite existing files. .TP \fB\--image-as-heightmap\fR Import input images as heightmaps (default). .TP \fB\--image-as-plane\fR Import input images as planes. .TP \fB\--image-as-volume\fR Import given input image as volume. Uses a depth map to make a volume out of the image. The depth map R channel is using values from 0 (black) to white (255) resulting in voxel heights from 1 to max-height (see --image-as-volume-max-depth). The \fB\--input\fR with e.g. \fBsomeimage.png\fR will pick the depth map next to the image path called \fBsomeimage-dm.png\fR as depth map. .TP \fB\--image-as-volume-max-depth\fR Default is 8 - see --image-as-volume. .TP \fB\--image-as-volume-both-sides\fR Importing image as volume and use the depth map for both sides. .TP \fB\--input|-i \fR Allow to specify input files. .TP \fB\--merge|-m\fR Merge all layers into one. Some destination formats only support one layer - for those formats this is an explicit parameter. If you are going to export to a mesh format like wavefront obj, this option changes the behaviour of the exporter, too. .TP \fB\--mirror \fR Mirror by the given axis (x, y or z). .TP \fB\--output|-o \fR Allow to specify the output file. .TP \fB\--pivot \fR Change the pivot of the volume layers. Not all voxel formats support this. .TP \fB\--resize \fR Resize the volume by the given x (right), y (up) and z (back) values. .TP \fB\--rotate \fR Rotate by 90 degree at the given axis (x, y or z). .TP \fB\--scale|-s\fR Save the target volume with a down-sampled version of the input volume. .TP \fB\--script "