Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Some problem of import the Assimp import library?

I want to make the show room or game can runtime loading the FBX 3D scan model (include the skeleton) inside the game.

I am a new hand of the UE4, I saw so many post about the loading the FBX model in Unreal4 runtime.

I saw some people use the free 3D import library : Assimp in UE4 , can make the runtime loading the FBX model,

so I try that too.

But in the moment I import the Assimp library, when I build the project in Visual studio, the window had pop up the window say that The program can't start because assimpd.dll is missing from your computer. Try reinstalling the program to fix this problem.

This is my _Build.cs :

 using System.IO;
 using UnrealBuildTool;
 public class FBX_imp2 : ModuleRules
     private string ModulePath
         get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }
     private string ThirdPartyPath
         get { return Path.GetFullPath(Path.Combine(ModulePath, "C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/")); }
     public FBX_imp2(TargetInfo Target)
         PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
        PublicIncludePaths.Add("C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/assimp");
        //PublicIncludePaths.Add("C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/assimp/Compiler");
        PublicAdditionalLibraries.Add("C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/lib/assimpd.lib");
     public bool LoadASSIMP(TargetInfo Target)
         bool isLibrarySupported = false;
         if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
             isLibrarySupported = true;
             string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "x64" : "x86";
             string LibrariesPath = Path.Combine(ThirdPartyPath,"lib");
             PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "assimpd" + ".lib"));
         if (isLibrarySupported)
             // Include path
             PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "assimp"));
         Definitions.Add(string.Format("WITH_ASSIMP_BINDING={0}", isLibrarySupported ? 1 : 0));
         return isLibrarySupported;

And I have include the .h file in my .h and .cpp

 #include <C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/assimp/Importer.hpp>      // C++ importer interface
 #include <C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/assimp/scene.h>           // Output data structure
 #include <C:/Users/Sunny Wong/Documents/Unreal Projects/FBX_imp2/ThirdParty/assimp/postprocess.h>     // Post processing flags
 #include <iostream>

sorry for my poor english, thank you everyone~~~.

Product Version: UE 4.10
more ▼

asked Jun 17 '16 at 08:54 AM in C++ Programming

avatar image

8 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You should paste the dll file into Game/Binaries/Win64

more ▼

answered Jul 18 '16 at 07:40 PM

avatar image

26 2 5 5

avatar image SunnyHaHa Aug 15 '16 at 10:14 AM

Thank you very much.

avatar image manuaganu Mar 09 '17 at 11:51 AM

Is it working now ?

Actually I also want runtime 3d model loading.Is there any other proper way ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question