Great tutorial, very detailed!
I want to add a few things. It’s possible to use Assimp without needing to compile it, if you’re willing to use an older version (3.1.1 instead of the current 4.0.1). The steps are the following (note that I’m consering the 64 bit version, but it’s the same for the 32 bit, just replace the numbers when needed):
-
Download Assimp version 3.1.1 from here: https://sourceforge.net/projects/assimp/files/assimp-3.1/(the binaries version, called “assimp-3.1.1-win-binaries.zip”)
-
Extract the folder somewhere where it’s safe (for instance “C:\assimp-3.1.1-win-binaries”)
-
Go to “assimp-3.1.1-win-binaries\lib64” and copy the “assimp.lib” file to this folder inside your UE4 project: “YourProject/Binaries/Win64/”
-
Open the Build.cs file in your project and add these lines:
PublicIncludePaths.Add("YourPathToAssimpFolder\\assimp-3.1.1-win-binaries\\include");
PublicAdditionalLibraries.Add("YourPathToAssimpFolder\\assimp-3.1.1-win-binaries\\lib64\\assimp.lib");
It should look something this:
public class MyProject : ModuleRules
{
public MyProject(TargetInfo Target)
{
MinFilesUsingPrecompiledHeaderOverride = 1;
bFasterWithoutUnity = true;
PublicDependencyModuleNames.AddRange(new string] { "Core",
"CoreUObject", "Engine", "InputCore",
"HeadMountedDisplay", // For HMD
"SteamVR", "SteamVRController", // For SteamVR functions access
"ProceduralMeshComponent", // For using UProceduralMeshComponent ojbects to create mesh at runtime
"UMG", "Slate", "SlateCore", // For using UMG in C++
"APPFRAMEWORK" }); // For extending UE4 Color Picker to UMG
// This is for Assimp version 3.1.1
PublicIncludePaths.Add("C:\\assimp-3.1.1-win-binaries\\include");
PublicAdditionalLibraries.Add("C:\\assimp-3.1.1-win-binaries\\lib64\\assimp.lib");
}
}
- All done, now you can use Assimp.
Last thing: I want to add a code sample (not made by me) which would be useful too: GitHub - LaP0573/ue4-fbx-importer