LucasDower / ObjToSchematic

A tool to convert 3D models into Minecraft formats such as .schematic, .litematic, .schem and .nbt
https://objtoschematic.com/
BSD 3-Clause "New" or "Revised" License
372 stars 42 forks source link

Ability to fill voxelized models #34

Open geegaz opened 2 years ago

geegaz commented 2 years ago

I've been using ObjToSchematic in my mapmaking workflow to export models from blender and place them in the world using Amulet. But it causes problems when freely scaling/rotating the schematic in the editor or ingame using worldedit: since the schematic is hollow, it creates holes in the model.

It would be great to be able to export filled schematics, to avoid this issue. Thanks a lot for this incredible tool !

Image of the issue with free rotation in Amulet: image

LucasDower commented 2 years ago

Thanks for the suggestion, this sounds like a good idea, I'll add it to my to-do list.

This'll require a bit of work under-the-hood regarding mesh convexity and determining which blocks should be used to fill the centre.