Skip to content

Release 3.0.0

Compare
Choose a tag to compare
@Twinklebear Twinklebear released this 12 May 02:03
· 69 commits to master since this release

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:

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.