-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cubegen: Add remap_palettes argument to cg.load_vox
When loading a MagicaVoxel file, there are some files where the ordering of the palette entries don't match the MagicaVoxel palette UI. In those cases the file contains an "IMAP" chunk. However, this chunk just shows how to remap the palette and voxel data so it matches the UI. If you don't remap the palettes, everything will load and display correctly, you just don't know which palette entries are which. If you don't need this, it's better to set this argument to false, since remapping the palette and voxel data takes some time.
- Loading branch information
Showing
1 changed file
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters