Closed zhang8043 closed 1 year ago
If a model contains multiple materials, do you want to create all materials in the engine in advance?
each material section is a separate mesh in assimp. are you using the sample project in releases tab?
Yes, 5.4.2 EmbeddedTextureImport also has no material
All imported models are of this color
Can you share one of the models so I can test for myself?
Hello, you can use this OBJ model to test
After importing UE
That spider doesn't have embedded textures it has external textures . You have to pack textures inside the model in order to auto import them . if textures are not embedded assimp only gives you a path to textures and you've to import them yourself .
The reasons that I don't add support for auto importing external textures are :
1- I want to keep the code simple to understand for others
2- Unreal has support for multiple platforms and accessing files on other platforms requires third party plugins in some cases.
I recommend glb format if you plan to use embedded textures here is an example:
https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/Corset/glTF-Binary/Corset.glb
ok, thank you
I'm going to see if I can add support for external textures using FImageUtils::ImportFileAsTexture2D(FilePath);
After importing, the material of the model itself is not loaded. Does it lose the original meaning of Assist.