Releases: Twinklebear/tobj
Release 3.0.1
Changes
- Fix bug in
reorder_data()
(#43 ), thanks @virtualritz !
Release 3.0.0
Changes
This release brings API breaking changes to tobj that add a number of optional features that can be valuable for offline rendering. A huge thanks goes to @virtualritz for implementing these features! These features are:
- Merging: Merge vertices with positions at the same spatial location (https://github.com/Twinklebear/tobj/blob/master/src/lib.rs#L355-L371)
- Reordering: Reorder the mesh normal and texcoord indices so that the indices match those used by the positions (this requires const generics, and a beta toolchain of Rust)
The API has also changed to default to not compute a single index, but to instead return separate indices for normals and texture coordinates (as also done in tinyobjloader). Setting the load options single_index
will provide the old behavior where vertex data may be duplicated to create unique vertices (https://github.com/Twinklebear/tobj/blob/master/src/lib.rs#L405-L423). For example, a rasterizer would typically set triangulate and single_index to true in the load options.
This release also resolves #30, which splits the load result into separate items for the OBJ file and the MTL file. This allows materials to fail to load without causing the entire mesh load to fail.
Release 2.0.2
Changes
- Fix bug for some MTL files which had
map_NS
used for the shininess texture. Thanks @Husenap !
Release 2.0.1
Changes
- Fix name parsing for
map_Ns
texture parameters, which would previously incorrectly truncate the first character of the texture map. Thanks @Meiguro !
Release 2.0.0
Changes
-
Fix mistake in MTL normal map parsing. These were incorrectly parsed as
map_Ns
when they should be readingmap_Bump
. Thanks @azymohliad ! -
Added support for material names with spaces. Thanks @CheezBarger !
-
Breaking change: Added an option to not triangulate the faces when loading an OBJ file, passed as an additional bool param to
load_obj
. Resolves #22
Release 1.0
Release 0.1.12
Changes
- Add support for lines geometry with
l
faces. Thanks @tkonolige !
Release 0.1.11
Changes
- Support for obj files exported without a name assigned to the object, thanks @aleksijuvani !
Release 0.1.10
Changes
- Suppress log output from tobj via #14 , this can now be enabled by building with the feature gate "log" . Thanks @Skynoodle !
Release 0.1.9
Changes
- Add support for in line comments after color params in MTL files, closing #13