You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: OBJ fails to load when the .mtl file contains "aniso" or "anisor" #5635
BugGlobal flag to mark a deviation from expected behaviourPBR/PBSRelated to PBR/PBS (Physically Based Rendering/Physically Based Shading)Wavefront-ObjBugs related to the wavefront format
Describe the bug
Trying to import an OBJ file with its .mtl containing "aniso" or "anisor" fails with the message: Cannot parse string "niso" as a real number: does not start with digit or decimal point followed by digit.
I am having the same issue. I have exported my wavefront model from Blender using the PBR Extensions export option for wavefront materials. I have received this error when attempting to load using ASSIMP.
Assimp Scene Invalid: Cannot parse string "niso" as a real number: does not start with digit or decimal point followed by digit.
BugGlobal flag to mark a deviation from expected behaviourPBR/PBSRelated to PBR/PBS (Physically Based Rendering/Physically Based Shading)Wavefront-ObjBugs related to the wavefront format
Activity
kimkulling commentedon Jun 25, 2024
That is right. I have just checked the implementation and the parser is just ignoring ansio.
SharpieLaBeouf commentedon Jul 27, 2024
I am having the same issue. I have exported my wavefront model from Blender using the PBR Extensions export option for wavefront materials. I have received this error when attempting to load using ASSIMP.
Assimp Scene Invalid: Cannot parse string "niso" as a real number: does not start with digit or decimal point followed by digit.
GitHubDragonFly commentedon Aug 3, 2024
@TenHenEggs and @SharpieLaBeouf maybe also check the issue #5554
It might show you possible ways of fixing OBJ + MTL issues.
tellypresence commentedon Apr 15, 2025
@TenHenEggs Is this still a problem?
TenHenEggs commentedon Apr 18, 2025
@tellypresence
On release 5.4.3 bug still happens.
I also managed to compile master ac59884, and it doesn't solve the issue either.
turol commentedon Apr 19, 2025
Link points to .mtl and not the .obj. Can you link to both for ease of downloading?
TenHenEggs commentedon Apr 19, 2025
Sure,
pbr-mat-ext.mtl
pbr-mat-ext.obj
Zip file with both files:
pbr-mat-ext.zip
turol commentedon Apr 19, 2025
I think this is the relevant piece of code:
assimp/code/AssetLib/Obj/ObjFileMtlImporter.cpp
Line 266 in ac59884
Looks like it needs something to skip to the next space instead of just the next character.
dimitre commentedon May 12, 2025
+1 for this one.
tellypresence commentedon May 14, 2025
OBJ import issues tracked via epic #6179
dimitre commentedon May 14, 2025
Assimp now errors when finding this data keys. it would be great if it could ignore, or output a warning instead
5 remaining items
kimkulling commentedon Sep 22, 2025
Closed by #6253
Add BOM skip and fix mtl parsing (#6253)
Feature/pjoe fix fbx export (#6405)
kimkulling commentedon Jan 22, 2026
Closed by #6452
Add BOM skip and fix mtl parsing (#6253)
Feature/pjoe fix fbx export (#6405)
Add BOM skip and fix mtl parsing (assimp#6253)
Feature/pjoe fix fbx export (assimp#6405)