vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.12k stars 91 forks source link

VOXCONVERT: Converted VXMs Rendering Certain Colored Voxels Incorrectly #117

Closed LordKromdar closed 2 years ago

LordKromdar commented 2 years ago

Certain colors are displaying strangely in converted VXMs. Original vox, palette, and converted VXM attached in zip.

image ahsoka1.zip

LordKromdar commented 2 years ago

Problem is solved by using a different palette, but using the original palette in most files results in these voxel bars

mgerhardy commented 2 years ago

Can you please post the exact commandline you used to convert the model? Did you try --src-palette?

LordKromdar commented 2 years ago

vengi-voxconvert.exe --src-palette --export-palette --force --merge --flip x --input original.vox --output converted.vxm

mgerhardy commented 2 years ago

Most related to the fact that VXM models are using the last palette entry for empty voxels - while we are using the first one (more or less - we are using the voxel type Air with palette index 0)

mgerhardy commented 2 years ago

a551ed5a4c53560551de8e183f2764d36f76c86d <-- this commit should have fixed the issue - apparently not..

mgerhardy commented 2 years ago

This is hopefully fixed now. If not, please re-open