Zarbuz / FileToVox

Tool for convert files into Magicavoxel file
MIT License
437 stars 46 forks source link

Turn off color quantization #43

Closed rvorias closed 2 years ago

rvorias commented 2 years ago

Hi,

I'm importing a bunch of png that represent slices of a .vox model. All the pngs combined have a specific set of e.g. 20 colors. However, the colors are getting quantized and some colors are getting squashed.

Is there an option to turn off color quantization?

Zarbuz commented 2 years ago

You can force to use the same palette that the existing palette in your different .vox

rvorias commented 2 years ago

I tried adding a palette with --palette and also some stuff with --cm but it didn't work. Right now I just changed this: https://github.com/Zarbuz/FileToVox/blob/c4a622151dc7152bc01c0da998a51816e6e9fbe7/SchematicToVoxCore/Quantizer/QuantizerBase.cs#L29 To:

return image;

And it works.