vengi icon indicating copy to clipboard operation
vengi copied to clipboard

VOXCONVERT: Converted VXMs Rendering Certain Colored Voxels Incorrectly

Open LordKromdar opened this issue 2 years ago • 5 comments

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

image ahsoka1.zip

LordKromdar avatar Feb 22 '22 17:02 LordKromdar

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

LordKromdar avatar Feb 22 '22 19:02 LordKromdar

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

mgerhardy avatar Feb 22 '22 22:02 mgerhardy

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

LordKromdar avatar Feb 22 '22 22:02 LordKromdar

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 avatar Feb 27 '22 20:02 mgerhardy

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

mgerhardy avatar Feb 27 '22 22:02 mgerhardy

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

mgerhardy avatar Sep 28 '22 17:09 mgerhardy