OBJReader only support multitexture when vt are declared right after texture name
The OBJ reader only support multitexture for OBJ written in a specific way: usemtl
must be directly followed by vt
declarations. The OBJ specifications allows the usemtl
command to be placed after vt
declaration, it just needs to be placed before a face declaration (f
). Also, the OBJ specification allows to switch between texture association, for example:
usemtl texture_0
f 1/1 2/2 3/3
usemtl texture_1
f 4/4 5/5 6/6
usemtl texture_0
f 7/7 8/8 9/9
The OBJ reader currently interprets it as three different texture although there's only two.