Skip to content

Bug: Vertex Count different between v5.4.0 and v6.0.2 of assimp #6367

Open

Description

@dellis1972

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:

  1. Download the attached .fbx file
  2. Run 5.4.0 of assimp info dube_2011.fbx note the data
  3. Run 6.0.2 of assimp info dube_2011.fbx note 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.

data.zip

Activity

  1. added
    Bug
    on Oct 8, 2025
  2. dellis1972 commented on Oct 8, 2025

    @dellis1972
    Author

    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?

  3. added
    FBX
    on Oct 9, 2025
  4. dellis1972 commented on Oct 15, 2025

    @dellis1972
    Author

    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.

  5. kimkulling commented on Oct 17, 2025

    @kimkulling
    Member

    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.

  6. dellis1972 commented on Oct 19, 2025

    @dellis1972
    Author

    @kimkulling I included the .fbx file in the data.zip

  7. tellypresence commented on Oct 22, 2025

    @tellypresence
    Collaborator

    Not sure if it's the same issue but also noticed changes in vertex counts in .3ds model Airplane P51Cripes N290912 (download link) in my own unit tests which hadn't been run in quite a while

  8. rejurime commented on Dec 26, 2025

    @rejurime

    Hi! Any updates on this issue? Thanks!

  9. dellis1972 commented on Mar 18, 2026

    @dellis1972
    Author

    This looks like it might be fixed in v6.0.4 via #6278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFBX

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions