How to use Filetovox to generate terrain
Hello, I saw some nice rendering made with MagicaVoxel and decided to give it a try.
I wanted to render the moon surface and thus downloaded Filetovox as well as color and heightmap of the moon, and cropped them to a nice area of 1778 (254* 7).
However, using the Filetovox, it just doesn't work. the code only identify 1 pixel height, so their is basically no map.
Is there any specific file requirements for pngs (ie BW/RGB/8 or 16bits, etc). I tried to generate simple BW gradients. I could get it to generate the map only if I do not select an input color file.
Edit: turned out it was a bug, I contacted the filetovox developer and he updated the software, so problem solved
Posted Jul 11, 2021, 9:28 PM UTC · edited
21
a copy of the log I get in case it helps:
[INFO] FileToVox v1.12.4.0
[INFO] Author: u/Zarbuz. Contact : https://twitter.com/Zarbuz
[INFO] Specified input path: C:\Users\metal\Desktop\MagicaVoxel-0.99.6.3-win64\project\zone01_height.png
[INFO] Specified output path: C:\Users\metal\Desktop\MagicaVoxel-0.99.6.3-win64\project\zone01_height
[INFO] Specified input color file: C:\Users\metal\Desktop\MagicaVoxel-0.99.6.3-win64\project\test - Copie.png
[INFO] Enabled option: heightmap (value=256)
[INFO] Specified output path: C:\Users\metal\Desktop\MagicaVoxel-0.99.6.3-win64\project\zone01_height
[INFO] Check total different colors...
[INFO] Done. (1)
[INFO] Started to write schematic from picture...
[INFO] Picture Width: 1778
[INFO] Picture Height: 1778
[INFO] Done.
[INFO] Vox Width: 0
[INFO] Vox Length: 0
[INFO] Vox Height: 0
[INFO] Total blocks: 0
[INFO] Started to write chunks ...
[INFO] Done.
[INFO] Check total blocks after conversion: 0
[INFO] Done.