[TUTORIAL] Using Assimp with Unreal Engine

I’m having the same issue, did you ever figure it out?

Anybody can say how compile import/export .so file from assimp 5.0 or anybody can send link where i can download .so ?

Just chiming in to say THANK YOU for this guide. People like you make the dev world go 'round. :grinning:

Hi, I followed the guide but I ran into some issues.

  1. I got an error that Assimp/Config.h wasn’t found. It seems like the Include in the Source folder and the include in the generated folder differ; I found the file in the generated folder.

  2. There seem to be Syntax errors in the code acquired from the OP; did Unreal change its dereferencing syntax at some point? Because code like:

processNode(node->mChildren*, scene);

Gives an error, I assume its meant to be:

processNode(*node->mChildren, scene);

?

  1. VS also complained that it expected #include “AssimpInterface.h” to be the first include.

  2. There’s a sequence of code here which seemed to be referencing the i-th element but wasn’t?

	for (unsigned int i = 0; i < mesh->mNumVertices; i++) 
	{
		FVector vertex, normal;
		// process vertex positions, normals and UVs
		vertex.X = mesh->mVertices*.x;
		vertex.Y = mesh->mVertices*.y;
		vertex.Z = mesh->mVertices*.z;

		normal.X = mesh->mNormals*.x;
		normal.Y = mesh->mNormals*.y;
		normal.Z = mesh->mNormals*.z;

		// if the mesh contains tex coords
		if (mesh->mTextureCoords[0]) 
		{
			FVector2D uvs;
			uvs.X = mesh->mTextureCoords[0]*.x;
			uvs.Y = mesh->mTextureCoords[0]*.y;
			_uvs[_meshCurrentlyProcessed].Add(uvs);
		}
		else 
		{
			_uvs[_meshCurrentlyProcessed].Add(FVector2D(0.f, 0.f));
		}
		_vertices[_meshCurrentlyProcessed].Add(vertex);
		_normals[_meshCurrentlyProcessed].Add(normal);
	}

Which is a little strange, I don’t think C++ has this concept for iterating through arrays?