Skip to main content

viewport_lib_io/
lib.rs

1#![warn(missing_docs)]
2//! Source-format loaders and neutral decoded data for applications built on
3//! `viewport-lib`.
4//!
5//! This crate owns file-format decoding and source-agnostic data structures.
6//! It does not depend on `viewport-lib` runtime or upload types directly.
7//!
8//! # Coordinate convention
9//!
10//! Decoded scene data is right-handed Z-up. Source formats that store data
11//! in a different frame (e.g. glTF, which is right-handed Y-up) are
12//! reoriented at load. Vertex positions, normals, tangents, mesh
13//! transforms, skeleton inverse-bind matrices, and animation samples are
14//! all rotated once during decoding; downstream consumers do not need to
15//! re-rotate.
16
17/// Error types for `viewport-lib-io`.
18pub mod error;
19/// Source-agnostic decoded data types.
20pub mod types;
21/// Source-format loaders.
22pub mod loaders;
23
24pub use error::IoError;
25pub use types::{
26    AnimationChannel, AnimationClip, AnimationInterpolation, AnimationSampler, AnimationTrack,
27    AnimationTrackValues, AttributeData, AttributeDomain, AttributeValues, CELL_SENTINEL,
28    DecodedDataSet, GaussianSplatSet, HdrImageData, Joint, MAX_JOINTS, MaterialData, PointSet,
29    RasterImageData, SceneData, SceneMesh, ShDegree, Skeleton, SkinWeights, SparseGrid,
30    StructuredVolume, SurfaceMesh, TextureSource, VolumeGridGeometry, VolumeMesh,
31};