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:
- Download test FBX
- Import using assimp
- 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
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.