Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug:FBX failed during ImportScene #5544

Open
slacker-jake opened this issue Apr 16, 2024 · 2 comments
Open

Bug:FBX failed during ImportScene #5544

slacker-jake opened this issue Apr 16, 2024 · 2 comments
Labels
Bug Global flag to mark a deviation from expected behaviour FBX Bugs related to the FBX format

Comments

@slacker-jake
Copy link

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
@slacker-jake slacker-jake added the Bug Global flag to mark a deviation from expected behaviour label Apr 16, 2024
@slacker-jake
Copy link
Author

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

@kimkulling kimkulling added the FBX Bugs related to the FBX format label Jun 12, 2024
@kimkulling
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour FBX Bugs related to the FBX format
Projects
None yet
Development

No branches or pull requests

2 participants