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
Voxel with bounds greater than 254x254x254 trigger IndexOutOfRangeException #12
Comments
Huh, I'm not sure why 254x254x254 is specifically so slow, but I know 256x256x256 wasn't supported by older MagicaVoxel .vox formats (they used a byte for size, which maxes out at 255 for any one dimension, or just 127 if it's a signed byte). I wrote IsoVoxel when 126 was the max, and did an at-the-time non-standard extension to handle up to 254 or 255. I have no idea what changed in the file format to allow larger sizes than a byte permits. I'll have to check out any documentation I can find on the current .vox file format; last I recall, ephtracy's format documentation repo was quite out-of-date, and the only other place would be file2vox source. |
Hi I came across your project because I have a lot of vox files I need to render, I have some experience with the Magicavoxel file format. |
Since I last looked at this issue, I wrote SpotVox (GitHub link), but I had no idea how to publicize it to the MagicaVoxel community, so I pretty much left it as is, but working. It should handle most, if not all, of the extended chunks, including most of what materials can do (not all, because only so much makes sense for pixel art), and including multiple models with translations. |
Hi, thanks! |
When attempting to run IsoVoxel with large .vox files created with the latest MagicaVoxel (0.9.6.2-win64) I receive the following error:
I did some testing with other models and it appears that this error appears once I set my voxel model bounds to be > 254x254x254. Additionally, at a bounds size of 254x254x254, the process seems to take a very long time to finished.
I've included 3 test files with this issue, all containing the same test scene just with different model bounds:
The text was updated successfully, but these errors were encountered: