Zarbuz / FileToVoxCore

FileToVoxCore is a library that allows you to read and write MagicaVoxel (.vox) file easily
MIT License
4 stars 3 forks source link

Smaller model .vox files always come out as size 128,128,128 #2

Closed BenMcLean closed 1 year ago

BenMcLean commented 1 year ago

I'm trying to use FileToVoxCore to write .vox files, but the sizes always come out to 128,128,128 with my model rotated strangely. What gives?

I'm following the MagicaVoxel convention, which is Z+up, right-handed, so X+ means east/right, Y+ means forwards/north and Z+ means up.

My code is here: https://github.com/BenMcLean/Voxel2Pixel/blob/de02cb19277114141ee59ff9a98f77847956bdae/Voxel2Pixel/Model/VoxModel.cs#L33-L56