Repository navigation
Description
Describe the bug
I work on the MonoGame project, we use assimp to handle our 3D model format conversions.
We recently tried to update from v5.4.0 of assimp to v6.0.2 so we could make use of the IgnoreFbxUpDirection feature. However our unit tests failed when one of our sample models got a signifficant change in the number of vertices being exported.
This might be perfectly fine, but on the other hand it might be an issue?
To Reproduce
Steps to reproduce the behavior:
- Download the attached .fbx file
- Run 5.4.0 of
assimp info dube_2011.fbxnote the data - Run 6.0.2 of
assimp info dube_2011.fbxnote the data
Expected behavior
I would expect the number of vertices and faces to remain consistent between the two .
The zip contains the model as well as the output for both info calls.
This is the output
diff -u dude5_4_0.txt ../assimp_6_0_2/dude6_0_2.txt
--- dude5_4_0.txt 2025-10-08 18:15:55
+++ ../assimp_6_0_2/dude6_0_2.txt 2025-10-08 18:15:20
@@ -37,9 +37,9 @@
96.9697 %
98.4848 %
100 %Importing file ... OK
- import took approx. 0.67652 seconds
+ import took approx. 0.68215 seconds
-Memory consumption: 2831161 B
+Memory consumption: 2568309 B
Nodes: 66
Maximum depth 15
Meshes: 5
@@ -48,23 +48,23 @@
Materials: 5
Cameras: 0
Lights: 0
-Vertices: 15649
-Faces: 22507
+Vertices: 13132
+Faces: 22505
Bones: 290
Animation Channels: 54
Primitive Types: triangles
Average faces/mesh 4501
-Average verts/mesh 3129
+Average verts/mesh 2626
Minimum point (-29.311443 -1.899547 -7.662751)
Maximum point (28.699226 72.542290 9.759674)
Center point (-0.306108 35.321373 1.048462)
Meshes: (name) [vertices / bones / faces | primitive_types]
- 0 (him): [4471 / 58 / 7230 | triangle]
- 1 (him): [3494 / 58 / 4449 | triangle]
- 2 (him): [4837 / 58 / 6579 | triangle]
- 3 (him): [2559 / 58 / 3807 | triangle]
- 4 (him): [288 / 58 / 442 | triangle]
+ 0 (him): [3847 / 58 / 7230 | triangle]
+ 1 (him): [2862 / 58 / 4449 | triangle]
+ 2 (him): [3876 / 58 / 6577 | triangle]
+ 3 (him): [2273 / 58 / 3807 | triangle]
+ 4 (him): [274 / 58 / 442 | triangle]
Named Materials:
'character_anim:headM' (prop) [index / bytes | texture semantic]
Platform (please complete the following information):
-
OS: MacOS/Windows/Linux
-
Version 6.0.2
Additional context
Add any other context about the problem here.
Activity
dellis1972 commentedon Oct 8, 2025
I have opened the fbx in the FBX Review and it is reporting 22507 polygons which matches the 5.4.0 version. 6.0.2 is reporting 22505. Could it be some vertex welding setting?
dellis1972 commentedon Oct 15, 2025
does anyone have any tips on how we might go about finding where this issue is? I've been through the history of commits and I cannot see anything obvious. I assume this is somewhere in the fbx importer.
kimkulling commentedon Oct 17, 2025
Maybe a setting for a degenerated triangle, which was not detected correctly? I need to check that model first, before I can understand your issue.
dellis1972 commentedon Oct 19, 2025
@kimkulling I included the .fbx file in the data.zip
tellypresence commentedon Oct 22, 2025
Not sure if it's the same issue but also noticed changes in vertex counts in
.3dsmodelAirplane P51Cripes N290912(download link) in my own unit tests which hadn't been run in quite a whilerejurime commentedon Dec 26, 2025
Hi! Any updates on this issue? Thanks!
dellis1972 commentedon Mar 18, 2026
This looks like it might be fixed in v6.0.4 via #6278