Crate dot_vox

Source
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.
DotVoxData
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.
NodeHeader
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.
SceneGroup
Group node.
SceneShape
Shape node.
SceneTransform
Transform node.
ShapeModel
A model reference in a shape node.
Size
The dimensions of a model in voxels.
Voxel
A voxel.

Enums§

SceneNode
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.