MidVoxIO icon indicating copy to clipboard operation
MidVoxIO copied to clipboard

Voxedit Compatibility

Open Voxai2023 opened this issue 1 year ago • 14 comments

Hi, I am new to work with voxel art project. I am trying to create .vox file from voxel grid and import it into Voxedit for further modification. However, when I import the .vox file that created by write_list_to_vox(). Voxedit will crash immediately. I have tried the sample vox file in this repository (cars.vox and cat.vox). They all can import into Voxedit.

And this is my vox file: dear99.zip

Voxai2023 avatar Nov 12 '24 09:11 Voxai2023

Hi, sorry for the late reply. Which version of vox edit did you use?

midstreeeam avatar Nov 14 '24 04:11 midstreeeam

I am using the latest version.

Voxai2023 avatar Nov 14 '24 08:11 Voxai2023

@Voxai2023 Hi, I did a quick check and found that the newer version of VoxEdit requires .vox files to contain additional information, such as transformations, materials, and group nodes. Currently, the parser only exports .vox files with minimal data (position, voxinfo, and palette), so updating the tool to include these new requirements would take some time, which I may not have available at the moment.

As a workaround, you could try importing your file into MagicaVoxel first, then re-saving it there. MagicaVoxel should automatically add the necessary components for compatibility with VoxEdit.

Hope this helps!

I will leave this issue open, and update the parser when I have time.

midstreeeam avatar Nov 15 '24 00:11 midstreeeam

Thank you for your reply. You helped me identify the source of the problem. It's really useful. I will try to update the parser by myself.

Voxai2023 avatar Nov 22 '24 06:11 Voxai2023

I found a vox file that doesn't contain additional information but can be imported into voxedit. image It only contains the 3 major information. Therefore, I am thinking about the problem is not about missing those additional information. deer_magica.zip

Voxai2023 avatar Nov 22 '24 07:11 Voxai2023

Thanks for your information. I will check it later this week.

midstreeeam avatar Nov 24 '24 16:11 midstreeeam

Today I tried to remove transparent block before writing file but it still not working. image Even I reproduce all the chunk with same data with magica's vox. I still failed to import it to voxedit. image

Voxai2023 avatar Nov 26 '24 09:11 Voxai2023

@Voxai2023 Hi, I checked the vox file you uploaded, I think the problem might still relate to missing required chunks for voxedit. The deer_magica you provided actually contains more chunks (it contains two vox models in two different layer)

Magicvoxel and voxedit are not opensource, so I am not sure how they deal with those chunks. I will work on it by the end of the year.

BTW, you might want to check vengi if you are trying to figure out how to deal with sandbox's format.

midstreeeam avatar Nov 26 '24 16:11 midstreeeam

Thanks for your reply. You are so helpful.

That's weird. Maybe you are reading the wrong file.

I make those voxedit readable vox file without additional data by using older version of magicavox. Here I make a smaller object to observe full_vox. deer_voxedit_readable.zip image You can see only one vox in full_vox.

I found out that the newest version of magicavox will export vox file with a lot of layers and full_vox will contain two vox models. One without transparent cube and one with transparent cube.

Sorry for bothering so much. I really want to make it work with voxedit.

Voxai2023 avatar Nov 27 '24 05:11 Voxai2023

Hey @midstreeeam, how are you? I am still working on voxedit compaitbility. Is there any update with that.

Voxai2023 avatar Mar 14 '25 18:03 Voxai2023

Hey @midstreeeam, how are you? I am still working on voxedit compaitbility. Is there any update with that.

Oh, Sorry to hear that. I had a heavy workload last semester and unfortunately forgot about this issue. It’s back on my list, and I’ll provide an update once I make progress. I hope to find time to address it soon.

midstreeeam avatar Mar 14 '25 20:03 midstreeeam

Thank you, @midstreeeam! I’m grateful that it’s back on your list, and I’ll patiently wait for any updates. Thanks again!

Voxai2023 avatar Mar 17 '25 04:03 Voxai2023

Hi, @Voxai2023 , I don't know if you still need to fix this voxedit compatibility problem. But I currently don't have a windows machine which means it would be hard for me to test magicalvoxel and voxedit.

I just use AI to generate a very simple vox parser that seems working on voxedit (but I didn't test it), I think maybe you can check it. It is in the test branch. https://github.com/midstreeeam/MidVoxIO/tree/test

Nowadays maybe we don't need this kind of small tools anymore, as AI can code such a script in 5 min

midstreeeam avatar Jun 27 '25 03:06 midstreeeam

Hi, @midstreeeam, sorry for the late reply. We solved the problem by making a full length palette. This is the problem of voxedit side. The error happens if palette has length less than 255.

Thank you for dedicating your time to solving our issues and for creating such a wonderful project! Would you mind sharing more details about how you developed the AI script? Learning about your approach would be really helpful, especially since we’re interested in exporting different file formats (like the VXM format for VoxEdit).

Voxai2023 avatar Aug 25 '25 07:08 Voxai2023