Releases: gltf-rs/gltf
Releases · gltf-rs/gltf
1.0.0
[1.0.0] - 2022-01-29
Added
- Support for the
KHR_materials_specularextension. - Support for the
KHR_materials_variantsextension. - Support for the
KHR_materials_volumeextension. ExactSizeIteratorimplementation forJointsiterator.
Changed
- The
mesh.primitivesproperty is now always serialized.
Fixed
- Incorrect implementation of
Normalize<u16>andNormalize<f32>foru16.
Version 0.15.0
2020-01-18
Added
- Support for the
KHR_materials_unlitextension, which adds anunlitfield
toMaterial. ExactSizeIteratorimplementations for accessor iterators.
Fixed
- Some lifetimes for accessing fields (e.g.
Node::children) have been relaxed. Accessor::buffer_viewis now optional for the benefit of sparse accessors.
Removed
animation::Interpolation::CatmullRomSpline
Version 0.14.0
2019-10-06
Added
import_slicefunction.CloneandDebugimplementations forMaterial.accessor::util::SparseIterandaccessor::util::SparseIndicesIterwhich
iterate over items and indices in sparse accessors respectively.
Changed
accessor::util::Iteris now an enum; sparse accessors are now read correctly.- The original version of
accessor::util::Iterhas been renamed asItemIter.
Version 0.13.0
2019-07-27
Added
- Support for the
KHR_lights_punctualextension. gltf-roundtripexample.
Changed
- Renamed
validate_minimallyasvalidate. - Removed dependency on
cgmath.
Fixed
- Incorrect version in README instructions.
- Compiler warnings.
Removed
- Trait function
Validate::validate_completelyand its implementations.
Version 0.12.0
2019-04-21
Added
- New image format variants
B8G8R8andB8G8R8A8. - New export example.
Changed
- The crate now builds with Rust 2018 edition.
Extrasare now exposed asRawValue.Indexnow implementsCopy.- Meshes will no longer report a zero byte stride.
- Updated the following dependendies:
- approx
- base64
- cgmath
- image
- lazy_static
- proc_macro2
- quote
- syn
Fixed
- Removed an unused field in
Accessorwhich was a cause of poor performance. - Borrow checker complaint regarding
Glb::from_reader.
Version 0.11.3
2019-02-21
Added
- New function
gltf_json::Index::newfor export. - Support for the
KHR_materials_pbrSpecularGlossinessextension. - Extra
EqandPartialEqimplementations.
Fixed
Accessor::minis no longer serialized ifNone.Extras::_allow_unknown_fieldsis no longer serialized.bufferView.byteOffsetis now optional.- Node translation/rotation/scale values are now optional.
- Removed serialization of some default values.
extras::Voidis no longer serialized.
Version 0.11.2
2018-07-08
Fixed
- JSON chunk padding is now padded with spaces (0x20) rather than zeros.
Noneis no longer serialized.Vecis no longer serialized when empty.
Version 0.11.1
2018-06-10
Added
payloadfield inGltfin order to handle binary glTF directly.Error::Ioenum variant.Gltf::from_reader_without_validationandGltf::from_slice_without_validation.- All functionality from the
gltf-utilscrate, feature gated with the new
utilsfeature. - Most functionality from the
gltf-importercrate, feature gated with the
newimportfeature. enum Urito represent uniform resource locators.
Changed
fn Gltf::from_*now imports binary glTF as well as standard glTF.fn Gltf::from_readernow requiresreaderto implementstd::io::Seek.Buffer::urinow returnsNonein the case of binary glTF payload instead
of the magic string"#bin".- The
POSITIONattribute is now required by all mesh primitives. - Several renames:
glb→binary.Error::Glb→Error::Binary.TrsProperty→Property.InterpolationAlgorithm→Interpolation.Target::path→Target::property.Primitive::position_bounds→Primitive::bounding_box.
- The
namesfeature is now enabled by default, along withutilsand
import. Rationale: Pareto principle.
Fixed
- Data structures in
gltf_jsonnow implementSerialize.
Removed
fn Gltf::from_str-- usefn Gltf::from_sliceinstead.fn Gltf::from_value-- no longer supported.fn gltf::is_binary-- useslice.starts_with("glTF")instead.struct Unvalidated-- replaced withenum Validation.crate gltf-importer-- no longer supported.Node::matrix-- usetransform().matrix()instead.Node::rotation-- usetransform().decomposed()instead.- All hidden
as_jsonfunctions -- no longer supported.
Version 0.10.1
2018-03-05
Fixed
gltf_utils::AccessorIter::newis markedpubagain.
Version 0.10.0
2018-03-04
Added
ChannelIterators.
Changed
- Rework of GLB parser and
AccessorIterin order to reduceunsafecode and
to allow loading of binary glTF data on non-little-endian machines. - More descriptive errors in the
gltfandgltf_importercrates. Gltf::skip_validationis no longer markedunsafe.