Skip to content

Add support for IMAP chunks#54

Merged
PixelDust22 merged 1 commit into
dust-engine:masterfrom
DouglasDwyer:master
Jun 16, 2025
Merged

Add support for IMAP chunks#54
PixelDust22 merged 1 commit into
dust-engine:masterfrom
DouglasDwyer:master

Conversation

@DouglasDwyer
Copy link
Copy Markdown
Contributor

In the MagicaVoxel editor, the order in which palette entries appear doesn't actually correspond to the palette index stored per-voxel. Instead, there is an "index map" indirection table, as described here. When using this crate, I would like to be able to discern the user-displayed index for each palette entry, so I need to be able to read this data. This didn't look like it was already supported, so I have added the ability to read the index map.

For reference, here's another .vox reader implementation that uses the index map to reorder the palette.

@PixelDust22
Copy link
Copy Markdown
Member

This is great! Thank you

@PixelDust22 PixelDust22 merged commit 2537c06 into dust-engine:master Jun 16, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants