assimp / assimp

The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.

Home Page:https://www.assimp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug:FBX failed during ImportScene

slacker-jake opened this issue · comments

Describe the bug
Loading this specific FBX will fail to import the scene: https://drive.google.com/file/d/17FOvYxWD113xmOTk-te6s3Ad0nQoyLp5/view?usp=sharing

To Reproduce
Steps to reproduce the behavior:

  1. Download test FBX
  2. Import using assimp
  3. Will freeze importing scene

Expected behavior
The assimp scene import function should complete successfully

Platform (please complete the following information):

  • OS: Windows 10, 64-bit
  • Unity Trilib plugin

**Notes

  • It seems the model doesn't load fully in Blender but does in Windows 3DViewer
  • Faily big model at 5million polys (takes about 45 seconds to load in 3DViewer on my machine)
    TestModel

Update:
It seems that the aiImportFileEx call does complete after around 25minutes for me.
Opening the same model in CloudCompare takes around 10secs...

The time is spended in calculating the tanget space. There is a search used to fine the nearest neighbours. And this search seems to be using a quadratic algorithm.
As a workaround you can disable the calculation of the tangents.

And we need to optimize / replace the algorithm.