Expand description
Load MagicaVoxel .vox
files from Rust.
Re-exports§
pub use palette::DEFAULT_PALETTE;
Modules§
- placeholder
- Data extracted from placeholder.vox for example and testing purposes
Structs§
- Color
- DEFAULT_
PALETTE - The default palette used by MagicaVoxel – this is supplied if no palette
is included in the
.vox
file. - DotVox
Data - Container for
.vox
file data. - Frame
- Represents an animation. The chunk is oriented according to the rotation
(
_r
) is placed at the position (t
) specified. The Rotation is instantaneous and happens at the start of the frame. The animation is interpolated across the sequence of Frames using their positions. - Layer
- Layer information.
- Material
- A material used to render this model.
- Model
- A renderable voxel model.
- Node
Header - Node header.
- Position
- Represents a translation. Used to position a chunk relative to other chunks.
- RawLayer
- Layer information (raw).
- Rotation
- A
Signed Permutation Matrix
encoded in a byte. - Scene
Group - Group node.
- Scene
Shape - Shape node.
- Scene
Transform - Transform node.
- Shape
Model - A model reference in a shape node.
- Size
- The dimensions of a model in voxels.
- Voxel
- A voxel.
Enums§
- Scene
Node - Scene graph nodes for representing a scene in
DotVoxData
.
Functions§
- load
- Loads the supplied MagicaVoxel
.vox
file - load_
bytes - Parses the byte array as a .vox file.
- parse_
layer - parse_
scene_ group - parse_
scene_ shape - parse_
scene_ transform
Type Aliases§
- Dict
- General dictionary.