Closed thunderysteak closed 4 years ago
Fix implemented. Will cause issues with 3DS Max 2018 by erroring out on texture index due of a bug in 3DS Max. Only option on fixing that with that version of max is selecting "Import as single mesh" during import or running it through an external application to convert the model.
When importing a large OBJ file that came out of a WMO, 3ds Max fails to import it with the "ERROR - invalid normal index" error as it fails to read the model normals. For example, one of the WMOs that fail the import after being exported are
battleforgilneas_alliance_start
and6hu_garrison_inn_v3
.Unfortunately I have no way of getting information of where max errors out on what part of the file, as the OBJ importer doesn't generate any additional information.
Only problem I could see when comparing Blender's and 3DS Max's OBJ output against the tool's OBJ files, is that it appears not to follow the format spec correctly. Instead of grouping geometric vertices, texture coordinates and vertex normals into their own groups per object, it always puts geometric vertices followed by texture coordinates and followed by vertex normals and then repeats the whole thing until it reaches polygonal face elements.
Examples:
How it should look like according to the spec, or rather how various plugins group things together
This is possibly causing 3ds max to fail importing the file