Forceflow / cuda_voxelizer

CUDA Voxelizer to convert polygon meshes into annotated voxel grids
MIT License
596 stars 98 forks source link

FR: MagicaVoxel .vox / Minecraft .schematic format #63

Closed inxomnyaa closed 2 years ago

inxomnyaa commented 2 years ago

Would be nice to have this as an option for export

inxomnyaa commented 2 years ago

Hmm, .schematic would also rock

Forceflow commented 2 years ago

Yeah, I'm looking at the following exporters:

https://github.com/aiekick/MagicaVoxel_File_Writer https://github.com/jpaver/opengametools/blob/master/src/ogt_vox.h https://github.com/Zarbuz/FileToVox

If you got any other libraries worth checking out, let me know.

inxomnyaa commented 2 years ago

Original docs: https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox.txt, Here is some well documented comment that shows some missing structures https://github.com/ephtracy/voxel-model/issues/19#issuecomment-392849751 and https://github.com/alexhunsley/numpy-vox-io maybe, it is sadly not working anymore though because the author has not updated the format yet. Over the last days i stumbled upon quite much of the .vox code, so much that i can barely see it anymore 😅

I actually used the FileToVox repo's MeshSampler to convert stuff so far, which yields quite good results in my case image

Forceflow commented 2 years ago

Implemented in the latest release. Thanks for bringing this to my attention. Will add more functionality (color sampling, gradients) in the future.