guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.74k stars 219 forks source link

Cannot open .vox file #237

Closed hellocatfood closed 3 years ago

hellocatfood commented 3 years ago

I have this voxel model of a photo which I converted to a .vox file using this script https://github.com/Zarbuz/FileToVox/ cat.zip

The model opens fine in Magicavoxel as seen below Screenshot from 2021-03-22 16-41-32

When I try to import it into Goxel all of the regions are arranged in a weird way. Screenshot from 2021-03-22 16-40-37

Is there any way to fix this?

guillaumechereau commented 3 years ago

Thanks for the report. Must be something wrong in the import code. I'll have a look at it.

guillaumechereau commented 3 years ago

Could you send me the vox file?

hellocatfood commented 3 years ago

Hi. The file is in the first post (listed as cat.zip)

guillaumechereau commented 3 years ago

OK got it. I can reproduce the bug with it.

guillaumechereau commented 3 years ago

I think I got a fix. It seems like I did transpose the rotation matrix of vox format.

image

I am going to push a fix.

hellocatfood commented 3 years ago

Brilliant, thanks for your quick response