Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse vox version 200 #3

Open
arduino12 opened this issue Dec 1, 2023 · 1 comment
Open

Failed to parse vox version 200 #3

arduino12 opened this issue Dec 1, 2023 · 1 comment

Comments

@arduino12
Copy link

Hi,

@midstreeeam
Thanks for this great module!

I just discovered Magicavoxel and downloaded its new version 0.99.7.1 [5/29/2023].
Parsing the vox files from your repo works out of the box, but parsing an example vox file from the new version fails:

from midvoxio.voxio import  * 

viz_vox('assets/vox/98/cat.vox') # works
viz_vox('C:/Users/User/Downloads/MagicaVoxel-0.99.7.1-win64/vox/chr_knight.vox') # fails

I get the folloing error:
midvoxio.exceptions.ParsingException: Unknown vox version: 200 expected 150

Can you please fix it?

I get the same error with numpy-vox-io as well,
I can only parse the new vox files (version 200) using this code - but there is no numpy nor matplotlib examples :(

My goal is to be able to parse static vox images and animations.

@midstreeeam
Copy link
Owner

Hi, thank you for reaching out.

I've just noted that the .vox format has been updated to version 200. Unfortunately, there hasn't been clear documentation regarding the specifics of this update. In response, I've implemented a minor update to allow the parser to accept version 200. However, this adjustment is quite basic and does not account for potential nuances in the new version. As such, there may be issues when processing .vox files of version 200. I encourage you to report any problems you encounter with this format.

Additionally, please be aware that if you're looking to convert your array back into a .vox file, the current exported version remains at 150.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants