irajsb / UE4_Assimp

Assimp mesh importer for Unreal Engine
MIT License
136 stars 29 forks source link

UE5.2 Failed to Import fbx Related issues #34

Closed 9000miles closed 9 months ago

9000miles commented 9 months ago

Describe the bug

  1. UE5.2 asynchronous import function ImportScenesAsync will crash, and do not know how to call this function in the blueprint, can only copy from your example project

  2. After packaging projects need AIMesh. CPP UAIMesh: : GetStaticMesh () function must add MeshDescriptionsParams. BFastBuild = true; Otherwise, it will crash, but the effect of loading after adding is wrong, and the whole model will become dark after the camera is close

To Reproduce Steps to reproduce the behavior:

Screenshots If applicable, add screenshots to help explain your problem. image

Sample file for testing Provide an optional sample file for testing . image

irajsb commented 9 months ago

https://github.com/irajsb/UE4_Assimp/releases/tag/MajorBugFix I downloaded this and migrated to 5.2 and it works for me for that exact file image

9000miles commented 9 months ago

5.2. After packaging, you must add MeshDescriptionsParams.bFastBuild = true to AIMesh.cpp UAIMesh: : GetStaticMesh (). After adding it, it looks like my screenshot; If you don't add build Development will crash because of this; When you build Shipping, the default internal process sets bFastBuild to true, which doesn't crash, but the result is something like my screenshot

https://github.com/irajsb/UE4_Assimp/releases/tag/MajorBugFix I downloaded this and migrated to 5.2 and it works for me for that exact file image

irajsb commented 9 months ago

You can try using the other method which is using procedural mesh component . so instead of using static mesh spawn a procedural mesh component and get mesh data using GetMeshDataForProceduralMesh and connect it to procedural mesh component