From c11729a505cb448446b33c5d7326886b31ed1438 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Mon, 23 May 2022 20:21:36 +0200 Subject: [PATCH] VOXCONVERT: removed --src-palette --- contrib/installer/linux/voxconvert.man.in | 8 +- debian/changelog | 1 + docs/CHANGELOG.md | 1 + docs/voxconvert/Examples.md | 2 +- docs/voxconvert/Usage.md | 3 +- src/tools/voxconvert/VoxConvert.cpp | 106 +++++++++------------- src/tools/voxconvert/VoxConvert.h | 1 - 7 files changed, 47 insertions(+), 75 deletions(-) diff --git a/contrib/installer/linux/voxconvert.man.in b/contrib/installer/linux/voxconvert.man.in index 827ea29ce..b9c037398 100644 --- a/contrib/installer/linux/voxconvert.man.in +++ b/contrib/installer/linux/voxconvert.man.in @@ -25,7 +25,7 @@ Dump the scene graph of the input file. .TP \fB\--export-palette\fR -Export the used palette data into an image. Use in combination with --src-palette. +Export the used palette data into an image. .TP \fB\--export-layers\fR @@ -110,10 +110,6 @@ Apply the given lua script to the output volume. \fB\--split \fR Slices the volumes into pieces of the given size -.TP -\fB\--src-palette|-p\fR -Keep the source palette and don't perform quantization. - .TP \fB\--translate|-t \fR Translate the volumes by x (right), y (up), z (back). @@ -286,7 +282,7 @@ The scripting docs are available at https://mgerhardy.github.io/vengi/LUAScript/ .SS Extract palette png Saves the png in the same dir as the vox file: -\fB@NAME@ --src-palette --export-palette --input infile.vox --output outfile.vox\fP +\fB@NAME@ --export-palette --input infile.vox --output outfile.vox\fP There will be an \fBinfile.png\fP now. diff --git a/debian/changelog b/debian/changelog index ed8ac4d74..36ed8341e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -36,6 +36,7 @@ vengi (0.0.20.0-1) UNRELEASED; urgency=low * VoxConvert: * Extended --dump to also show the key frames and the voxel count + * Removed --src-palette (src palette is always used) -- Martin Gerhardy Sun, 27 Mar 2022 11:59:01 +0200 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index d2f13e1d5..ed25cc559 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -49,6 +49,7 @@ VoxEdit: VoxConvert: - Extended `--dump` to also show the key frames and the voxel count + - Removed `--src-palette` (src palette is always used) ## 0.0.19 (2022-03-27) diff --git a/docs/voxconvert/Examples.md b/docs/voxconvert/Examples.md index 3996725eb..48ede9050 100644 --- a/docs/voxconvert/Examples.md +++ b/docs/voxconvert/Examples.md @@ -76,7 +76,7 @@ See the [scripting](../LUAScript.md) documentation for further details. Saves the png in the same dir as the vox file: -`./vengi-voxconvert --src-palette --export-palette --input infile.vox --output outfile.vox` +`./vengi-voxconvert --export-palette --input infile.vox --output outfile.vox` There will be an `infile.png` now. diff --git a/docs/voxconvert/Usage.md b/docs/voxconvert/Usage.md index fc03ed729..2c2d578ff 100644 --- a/docs/voxconvert/Usage.md +++ b/docs/voxconvert/Usage.md @@ -4,7 +4,7 @@ * `--crop`: reduces the volume sizes to their voxel boundaries. * `--export-layers`: export all the layers of a scene into single files. It is suggested to name the layers properly to get reasonable file names. -* `--export-palette`: will save the included palette as png next to the source file. Use in combination with `--src-palette`. +* `--export-palette`: will save the included palette as png next to the source file. * `--filter `: 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`. See the layers note below. * `--force`: overwrite existing files * `--image-as-heightmap`: import input images as heightmap (default) @@ -22,7 +22,6 @@ * `--scale`: perform lod conversion of the input volume (50% scale per call) * `--script "