Skip to content

Version 0.11.1

Compare
Choose a tag to compare
@alteous alteous released this 27 Jul 20:58
810753a

2018-06-10

Added

  • payload field in Gltf in order to handle binary glTF directly.
  • Error::Io enum variant.
  • Gltf::from_reader_without_validation and Gltf::from_slice_without_validation.
  • All functionality from the gltf-utils crate, feature gated with the new
    utils feature.
  • Most functionality from the gltf-importer crate, feature gated with the
    new import feature.
  • enum Uri to represent uniform resource locators.

Changed

  • fn Gltf::from_* now imports binary glTF as well as standard glTF.
  • fn Gltf::from_reader now requires reader to implement std::io::Seek.
  • Buffer::uri now returns None in the case of binary glTF payload instead
    of the magic string "#bin".
  • The POSITION attribute is now required by all mesh primitives.
  • Several renames:
    • glbbinary.
    • Error::GlbError::Binary.
    • TrsPropertyProperty.
    • InterpolationAlgorithmInterpolation.
    • Target::pathTarget::property.
    • Primitive::position_boundsPrimitive::bounding_box.
  • The names feature is now enabled by default, along with utils and
    import. Rationale: Pareto principle.

Fixed

  • Data structures in gltf_json now implement Serialize.

Removed

  • fn Gltf::from_str -- use fn Gltf::from_slice instead.
  • fn Gltf::from_value -- no longer supported.
  • fn gltf::is_binary -- use slice.starts_with("glTF") instead.
  • struct Unvalidated -- replaced with enum Validation.
  • crate gltf-importer -- no longer supported.
  • Node::matrix -- use transform().matrix() instead.
  • Node::rotation -- use transform().decomposed() instead.
  • All hidden as_json functions -- no longer supported.